Jump to content

Problem Installing.


muse4eva

Recommended Posts

I have a problem installing, i have tried to re-upload the files. here is what it says

Fatal error: Call to a member function get_results() on a non-object in /www/************/htdocs/core/classes/DB.class.php on line 280

Would the fact that the web host is Lycos be making it go wrong, i have tried contacting them, but there is no email that you can talk to them with.

Cheers

muse4eva

Link to comment
Share on other sites

  • Administrators

From the downloads page?

It can't be compatible at the same time with PHP 4 and PHP 5. You should check in their help section on databases and how to enable PHP 5

Is this Angelfire? Can you send me a link to your hosting provider?

Link to comment
Share on other sites

  • 2 weeks later...
  • Administrators

So what you have to do is create a file called local.config.php in the core folder. Make sure it's blank (no spaces or anything).

To make a folder writeable, I'm not sure how you would do it in WebFTP, but you have to set the permissions to 777 or 775 (depending on your host).

I would use WinSCP or Filezilla to access by FTP and upload files that way. If you search it, there's a thread which explains exactly how to do it

Link to comment
Share on other sites

Hi Nabeel,

Thanks for the quick reply, i have created the file local.config.php in the core folder and made the folder writable, but still getting the error when i try to run the installer. If you can, can you please take a look at it for me and fix the problem for me if i give you the login details to members.lycos.co.uk?

Cheers

Link to comment
Share on other sites

The error that i am getting is the same one as i try to run the installer,

Fatal error: Call to a member function get_results() on a non-object in /www/************/htdocs/core/classes/DB.class.php on line 280

I have set the local.config.php file to writeable on all of sections that you can set it as, owner permissions, group permissions, public permissions.

Link to comment
Share on other sites

Hi, I'm having a problem installing the Phpvms. I downloaded the file "phpvms.beta", the host site "http://vvarig.webcindario.com/install/install.php" to send the manual. When I open the site it enters the part of installation. Compile all data and "Database Server" I do "localhost". When I squeeze in "next step" appears this message "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)". What does that mean? What do I do to correct? I think this is the "MySQL". Are, where to find the "MySQL"?

I live here in Brazil and speak Portuguese. This text was translated by Google into English, because I do not know write in English. If you have any errors in spelling forgive me.

Original text in Portuguese:

Oi, eu estou com um problema ao instalar o Phpvms.  Eu baixei o arquivo “phpvms.beta”, hospedei no site “http://vvarig.webcindario.com/install/install.php” como manda o manual. Quando eu abro o site ele entra na parte de instalação. Preencho todos os dados e em “Database Server” eu como coloco ” localhost”. Quando eu aperto em “next step” aparece esta mensagem “Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)”. O que significa isso? O que eu faço para corrigi? Acho que isto tem a ver com o “MySQL”. Estão, onde conseguir o “MySQL”?

Link to comment
Share on other sites

Its not letting me open the install.php file with my browser, so i have copied out the code as it says.

<?php

/**

* phpVMS - Virtual Airline Administration Software

* Copyright © 2008 Nabeel Shahzad

* For more information, visit www.phpvms.net

* Forums: http://www.phpvms.net/forum'>http://www.phpvms.net/forum

* Documentation: http://www.phpvms.net/docs'>http://www.phpvms.net/docs

*

* phpVMS is licenced under the following license:

*  Creative Commons Attribution Non-commercial Share Alike (by-nc-sa)

*  View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/

*

* @author Nabeel Shahzad

* @copyright Copyright © 2008, Nabeel Shahzad

* @link http://www.phpvms.net

* @license http://creativecommons.org/licenses/by-nc-sa/3.0/

*/

error_reporting(E_ALL ^ E_NOTICE);

define('ADMIN_PANEL', true);

define('INSTALLER_VERSION', '1.2.700');

include dirname(__FILE__).'/loader.inc.php';

if($_POST['action'] == 'submitdb')

{

//dbname] => [dbpass] => [dbuser] => [dbtype] => mysql [tableprefix] => phpvms_ [siteurl] => www.phpvms.net/test/ [action] => submitdb [

if($_POST['DBASE_NAME'] == '' || $_POST['DBASE_USER'] == '' || $_POST['DBASE_TYPE'] == ''

|| $_POST['DBASE_SERVER'] == '' || $_POST['SITE_URL'] == '')

{

Template::Set('message', 'You must fill out all the required fields');

}

else

{

if(!Installer::AddTables())

{

Template::Set('message', Installer::$error);

}

else

{

if(!Installer::WriteConfig())

{

Template::Set('message', Installer::$error);

}

else

{

header("Location: install.php?page=sitesetup");

}

}

}

}

Template::Show('header.tpl');

echo '<h3 align="left">phpVMS Installer</h3>';

// Controller

switch($_GET['page'])

{

case 'dbsetup':

case '':

if(!Installer::CheckServer())

{

Template::Show('s0_config_check.tpl');

}

else

{

Template::Show('s1_db_setup.tpl');

}

break;

case 'sitesetup':

Template::Show('s2_site_setup.tpl');

break;

case 'complete':

if($_POST['action'] == 'submitsetup')

{

if($_POST['SITE_NAME'] == '' || $_POST['firstname'] == '' || $_POST['lastname'] == ''

|| $_POST['email'] == '' ||  $_POST['password'] == '' || $_POST['vaname'] == ''

|| $_POST['vacode'] == '')

{

Template::Set('message', 'You must fill out all of the fields');

Template::Show('s2_site_setup.tpl');

break;

}

if(!Installer::SiteSetup())

{

Template::Set('message', Installer::$error);

Template::Show('s2_site_setup.tpl');

}

else

{

Installer::RegisterInstall(INSTALLER_VERSION);

echo '<p>Your site is all setup! You can login to the admin panel <a href="'.SITE_URL.'/admin">here</a></p>';

}

}

break;

}

Template::Show('footer.tpl');

?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...