i was doing nothing and suddently i got this error message, trying to open control panel of camber template:
Warning: Invalid argument supplied for foreach() in /Applications/XAMPP/xamppfiles/htdocs/libraries/joomla/database/database/mysqli.php on line 391
Warning: array_key_exists() expects parameter 2 to be array, null given in /Applications/XAMPP/xamppfiles/htdocs/administrator/components/com_gantry/models/template.php on line 212
Warning: Invalid argument supplied for foreach() in /Applications/XAMPP/xamppfiles/htdocs/libraries/joomla/database/database/mysqli.php on line 391
Warning: Invalid argument supplied for foreach() in /Applications/XAMPP/xamppfiles/htdocs/libraries/joomla/database/database/mysqli.php on line 391
Details
Fatal error: Call to a member function getLabel() on a non-object in /Applications/XAMPP/xamppfiles/htdocs/administrator/components/com_gantry/views/template/tmpl/edit.php on line 126
can anybody tell what does it mean and WHY is it so instable, because it happens so often.
Hi, the first error is coming from the Joomla core. I did a google for it and came across a link that explained it here:
www.martynwalker.com/2011/08/21/invalid-...-mysqliphp-line-391/
- maybe you just need to clean out your tmp folder? Try that and see if it helps the situation.
The difficult we do immediately, the impossible takes a little longer.
Hi, it should work. You will need to make changes to the configuration.php file to reflect the changed server paths as they will be different than what you have on your local. The tmp path, the log path, also if the database user / password / host settings are different on your online site you'll need to update those as well. The configuration file is the only one you'll need to make changes to.
I always build my sites on local, then upload them, and once the configuration file is right it works every time for me. Hope that helps.
The difficult we do immediately, the impossible takes a little longer.
public $ftp_host = '62.149.180.123';
public $ftp_port = '21';
public $ftp_user = 'Sql581468';
public $ftp_pass = 'c6d2b68e';
public $ftp_root = '
www.mysite.com
';
Hi, the infinite loop error means that the database info isn't correct. Are you sure your database host isn't "localhost"? You'll need to check with your hosting company to find the correct paths and database information, it's different from host to host, I can't tell you what it is.
One method to find this info might be to use Fantastico or any installer that your host might have to install a copy of Joomla on your hosting account, then you can get the info you need out the configuration file that is installed.
The difficult we do immediately, the impossible takes a little longer.