Jump to content

Just Installed but errors


Recommended Posts

Hello, I just installed PrestaShop and found many coding errors ?

 

Can you pls tell me how to fix these? 

 
 
We have enabled display_errors in php settings for this site.
 
Plus we have enabled dev mode in prestashop as it show in this manual:
 
In /var/www/vhosts/laabadeal.com/httpdocs/config/defines.inc.php
we have set true instead false
define('_PS_MODE_DEV_', true);
 
And now complete error is shown in the browser:
Fatal error: Call to undefined method AdminCustomersController::addMetaTitle() in /var/www/vhosts/laabadeal.com/httpdocs/controllers/admin/AdminCustomersController.php on line 246
 
 
 
Plus we have found errors in the administrator area of the customers site:
 
Warning on line 61 in file /var/www/vhosts/laabadeal.com/httpdocs/controllers/admin/AdminDashboardController.php
[2] array_pop() expects parameter 1 to be array, null given
 
Notice on line 375 in file /var/www/vhosts/laabadeal.com/httpdocs/cache/smarty/compile/0c/b3/f7/0cb3f7fe266647a14f4c96ce2664913be52a9534.file.header.tpl.php
[8] Undefined index: quick_access_current_link_name
 
Notice on line 375 in file /var/www/vhosts/laabadeal.com/httpdocs/cache/smarty/compile/0c/b3/f7/0cb3f7fe266647a14f4c96ce2664913be52a9534.file.header.tpl.php
[8] Trying to get property of non-object
 
Notice on line 377 in file /var/www/vhosts/laabadeal.com/httpdocs/cache/smarty/compile/0c/b3/f7/0cb3f7fe266647a14f4c96ce2664913be52a9534.file.header.tpl.php
[8] Undefined index: quick_access_current_link_icon
 
Notice on line 377 in file /var/www/vhosts/laabadeal.com/httpdocs/cache/smarty/compile/0c/b3/f7/0cb3f7fe266647a14f4c96ce2664913be52a9534.file.header.tpl.php
[8] Trying to get property of non-object
 
 
And of source on the top of http://laabadeal.com/en/ site:
 
Strict Standards: Declaration of FrontControllerCore::addCSS() should be compatible with ControllerCore::addCSS($css_uri, $css_media_type = 'all', $offset = NULL, $check_path = true) in /var/www/vhosts/laabadeal.com/httpdocs/override/classes/controller/FrontController.php on line 1319 Strict Standards: Declaration of FrontControllerCore::removeCSS() should be compatible with ControllerCore::removeCSS($css_uri, $css_media_type = 'all', $check_path = true) in /var/www/vhosts/laabadeal.com/httpdocs/override/classes/controller/FrontController.php on line 1319 Strict Standards: Declaration of FrontControllerCore::addJS() should be compatible with ControllerCore::addJS($js_uri, $check_path = true) in /var/www/vhosts/laabadeal.com/httpdocs/override/classes/controller/FrontController.php on line 1319 Strict Standards: Declaration of FrontControllerCore::removeJS() should be compatible with ControllerCore::removeJS($js_uri, $check_path = true) in /var/www/vhosts/laabadeal.com/httpdocs/override/classes/controller/FrontController.php on line 1319
 
Link to comment
Share on other sites

Is this after a clean install? What is your server software? What version of PrestaShop is this? Where did you download prestashop?

 

These issues sound like a corrupt download to me, get the latest version from the frontpage and do a clean install.

Link to comment
Share on other sites

Some coding errors are "warnings". These are warnings, but not big issues. Some warnings appear only on some versions of PHP - it's has been like this for ages. I thought you were referring to actually errors on the screen without display_errors set to true.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...