Jump to content

Recommended Posts

Posted

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

Posted

Hi,

Thanks for the quick reply.

The version i downloaded was the full version. And also, i use PHP4, but it also supports PHP5. Lycos say it is compatible with MySQL, but i dont know.

muse4eva

  • Administrators
Posted

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?

  • 2 weeks later...
Posted

Could it be because the database was created incorrectly? If so, that is because im not that good at creating databases, so can someone please help me with creating one correctly?

muse4eva

  • Administrators
Posted

Try recreating the database. For that, all you should need is to set a name, username, and password. The installer will do the rest.

Try also deleting all the files, and re-uploading from scratch

  • Administrators
Posted

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

Posted

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

Posted

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.

Posted

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”?

Posted

Hi Nabeel,

Looking at the error code, a section of it says "htdocs/core/classes/DB.class.php on line 280". Could you possibly look at the php coding on it and see if it is all correct because that is the problem.

Thanks.

  • Administrators
Posted

The only reason that would happen if there's no connection to the database.

On the install screen, did you click the "Check Database Connection", what does it say?

Posted

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');

?>

  • Administrators
Posted

Why won't it let you open with the browser?

If your local.config.php file completely empty and writable? (Should be a file size of 0 (zero))

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...