SRD001 Posted October 7, 2007 Share Posted October 7, 2007 Hi, Yesterday I had the error: Error 1054 - Unknown column 'p.products_id' in 'on clause'.,when loading the page /catalog/index.php. There was a fix here to replace the index.php file. That cured that error, yet introduced another: Fatal error: Call to a member function on a non-object in /home/te/tes/test.doig.com.au/public/www/catalog/index.php on line 33 I gather "Call to a member function on a non-object" is a common error, yet finding a common solution has not been easy. Line 33 of this new index.php file is: $directory_array = $template->get_template_part($code_page_directory, '/^header_php/'); It's been suggested elsewhere that the script may be having trouble accessing the MySQL database. The configuration file is fine. However, the /catalog/admin also displays: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/te/tes/test.doig.com.au/public/www/catalog/admin/includes/functions/database.php on line 19Unable to connect to database server! Tips? Link to comment Share on other sites More sharing options...
Nullachtfuffzehn Posted October 7, 2007 Share Posted October 7, 2007 The first error is caused by a non defined object $template. Don't know if you have deleted any line while fixing the other bug. There should be a line $template = new $something; either in application_top.php or at the very top of your index.php. What goes to the second error, you may check the /admin/includes/configure.php for the correct settings. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.