muse4eva Posted July 16, 2009 Report Share Posted July 16, 2009 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 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted July 17, 2009 Administrators Report Share Posted July 17, 2009 Hey, Which version? And what PHP version? Quote Link to comment Share on other sites More sharing options...
muse4eva Posted July 18, 2009 Author Report Share Posted July 18, 2009 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 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted July 19, 2009 Administrators Report Share Posted July 19, 2009 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? Quote Link to comment Share on other sites More sharing options...
muse4eva Posted July 19, 2009 Author Report Share Posted July 19, 2009 Yes, it was from the downloads page. with PHP 4 and PHP5, you can change it from one to another, so does this mean that you need to have PHP5? I wouldnt know if it is angelfire, but i can give you a link to my hosting provider. http://www.tripod.lycos.co.uk/ Cheers Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted July 19, 2009 Administrators Report Share Posted July 19, 2009 You need to have PHP 5 yes, it seems as though Tripod would support it. Switch it to PHP 5 though Quote Link to comment Share on other sites More sharing options...
muse4eva Posted July 29, 2009 Author Report Share Posted July 29, 2009 Hi, I have switched it over to PHP 5, but still getting the error, what could be causing this? muse4eva Quote Link to comment Share on other sites More sharing options...
muse4eva Posted August 1, 2009 Author Report Share Posted August 1, 2009 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 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 1, 2009 Administrators Report Share Posted August 1, 2009 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 Quote Link to comment Share on other sites More sharing options...
muse4eva Posted August 1, 2009 Author Report Share Posted August 1, 2009 Where do i set the name, username and password? Sorry for bugging you. Quote Link to comment Share on other sites More sharing options...
muse4eva Posted August 1, 2009 Author Report Share Posted August 1, 2009 Just bee looking at the files i uploaded, using the WebFTP, and clicking the temp, which is the installer i think, it came up with this. How do i write the permissions? muse4eva Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 1, 2009 Administrators Report Share Posted August 1, 2009 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 Quote Link to comment Share on other sites More sharing options...
muse4eva Posted August 1, 2009 Author Report Share Posted August 1, 2009 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 Quote Link to comment Share on other sites More sharing options...
muse4eva Posted August 2, 2009 Author Report Share Posted August 2, 2009 please can someone help me :'( Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 3, 2009 Administrators Report Share Posted August 3, 2009 Which error are you getting? Did you set the local.config.php file to writeable also? Quote Link to comment Share on other sites More sharing options...
muse4eva Posted August 3, 2009 Author Report Share Posted August 3, 2009 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. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 3, 2009 Administrators Report Share Posted August 3, 2009 What version are you trying? Quote Link to comment Share on other sites More sharing options...
Allan_ Posted August 3, 2009 Report Share Posted August 3, 2009 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”? Quote Link to comment Share on other sites More sharing options...
muse4eva Posted August 3, 2009 Author Report Share Posted August 3, 2009 I am using PHP 5 and i am trying the full version, do i need to try the beta? Quote Link to comment Share on other sites More sharing options...
muse4eva Posted August 3, 2009 Author Report Share Posted August 3, 2009 I am currently uploading the beta version to the web host using filezilla. If this doesnt work, can someone do it for me? Cheers Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 4, 2009 Administrators Report Share Posted August 4, 2009 Hey, don't use the beta. Use the version from http://www.phpvms.net/downloads The full version. Allan, you'll have to contact your host about that error. Something is not configured on their server properly Quote Link to comment Share on other sites More sharing options...
muse4eva Posted August 4, 2009 Author Report Share Posted August 4, 2009 I have been using that one, but no luck, can you sort this out before i throw my computer out the window muse4eva Quote Link to comment Share on other sites More sharing options...
muse4eva Posted August 4, 2009 Author Report Share Posted August 4, 2009 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. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 4, 2009 Administrators Report Share Posted August 4, 2009 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? Quote Link to comment Share on other sites More sharing options...
muse4eva Posted August 4, 2009 Author Report Share Posted August 4, 2009 How do i access the install screen? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 4, 2009 Administrators Report Share Posted August 4, 2009 goto the /install/install.php file Quote Link to comment Share on other sites More sharing options...
muse4eva Posted August 4, 2009 Author Report Share Posted August 4, 2009 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'); ?> Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 4, 2009 Administrators Report Share Posted August 4, 2009 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)) Quote Link to comment Share on other sites More sharing options...
muse4eva Posted August 5, 2009 Author Report Share Posted August 5, 2009 Can you take a look for me then if i give you my login details? muse4eva Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 5, 2009 Administrators Report Share Posted August 5, 2009 Yeah, PM them to me Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.