sunnyb0y Posted May 8, 2020 Share Posted May 8, 2020 (edited) Hello, Wondering if anyone might be able to help... My client's site is running an old modified PrestaShop 1.5.4.1 website on php 5.2 (I know... Advised numerous times to update without uptake). We previously had a number of custom reports and a few features developed which complicates things and is the reason we have not updated the site - increasing Prestashop or PHP version will break some of the reports and features. Updating is now on the cards to do at some stage in the future which is excellent but the most pressing thing is an issue that has just started 2 days ago with the add to cart behaviour which has stopped the site from functioning properly. When a customer is not logged in to the my account section: In Firefox, the javascript add to cart pop-up appears, but the cart in the header does not get updated - nothing shows in the cart. In Chrome, the add to cart appears to work as expected except after logging in When a customer is logged in to the my account section: In Firefox, the javascript add to cart pop-up appears, but the cart in the header does not get updated - nothing shows in the cart. In Chrome, the javascript add to cart pop-up appears, but the cart in the header does not get updated - nothing shows in the cart. Any existing items in the cart from before the login show again in the my account section... (not sure if relevant but that is under https, the product pages of the site are under http (how 1.5.X works) In both browser in the my account section the padlock in the website header is open and it says "hi nick" (as if logged in), but changing to the other pages (which are http) the padlock in the website header is closed and there is no username (as if not logged in) I have temporarily turned off Geolocation so you can test: edit: turned back on after non response There are a whole heaps of errors from the last 2 days in the cPanel log - here are some examples: 2020-05-06 14:27:47.714003 [INFO] [72066] [54.36.149.100:28266:HTTP2-1#APVH_USERNAME1.DOMAIN.com:443] File not found [/home/USERNAME2/public_html/DOMAIN.com.au/403.shtml] 2020-05-06 14:27:47.713950 [INFO] [72066] [54.36.149.100:28266:HTTP2-1#APVH_USERNAME1.DOMAIN.com:443] Auto Index is disabled for [/home/USERNAME2/public_html/DOMAIN.com.au/], access denied 2020-05-06 14:27:46.302616 [INFO] [72066] [54.36.148.64:27104:HTTP2-1#APVH_USERNAME1.DOMAIN.com:443] File not found [/home/USERNAME2/public_html/DOMAIN.com.au/index.php] 2020-05-06 14:27:46.302535 [INFO] [72066] [54.36.148.64:27104:HTTP2-1#APVH_USERNAME1.DOMAIN.com:443] File not found [/home/USERNAME2/public_html/DOMAIN.com.au/robots.txt] 2020-05-06 03:15:16.041069 [INFO] [59849] [64.225.2.67:57394#APVH_USERNAME1.DOMAIN.com:443] File not found [/home/USERNAME2/public_html/DOMAIN.com.au/403.shtml] 2020-05-06 03:15:16.041020 [INFO] [59849] [64.225.2.67:57394#APVH_USERNAME1.DOMAIN.com:443] Auto Index is disabled for [/home/USERNAME2/public_html/DOMAIN.com.au/], access denied And a whole heap of errors from the last 2 days in the root directory - here are some examples: [06-May-2020 21:19:43] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 68 [06-May-2020 21:19:43] PHP Notice: Undefined index: currencyRate in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 70 [06-May-2020 21:19:43] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 70 [06-May-2020 21:19:43] PHP Notice: Undefined index: currencyFormat in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 72 [06-May-2020 21:19:43] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 72 [06-May-2020 21:19:43] PHP Notice: Undefined index: currencyBlank in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 74 [06-May-2020 21:19:43] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 74 [06-May-2020 21:19:43] PHP Notice: Undefined index: display_qties in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 78 [06-May-2020 21:19:43] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 78 [06-May-2020 21:19:43] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [06-May-2020 21:19:43] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [06-May-2020 21:19:43] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [06-May-2020 21:19:43] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [06-May-2020 21:19:43] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [06-May-2020 21:19:43] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [06-May-2020 21:19:43] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [06-May-2020 21:19:43] PHP Notice: Undefined index: currencySign in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 68 [06-May-2020 21:19:43] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 68 [06-May-2020 21:19:43] PHP Notice: Undefined index: currencyRate in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 70 [06-May-2020 21:19:43] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 70 [06-May-2020 21:19:43] PHP Notice: Undefined index: currencyFormat in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 72 [06-May-2020 21:19:43] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 72 [06-May-2020 21:19:43] PHP Notice: Undefined index: currencyBlank in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 74 [06-May-2020 21:19:43] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 74 [06-May-2020 21:19:43] PHP Notice: Undefined index: display_qties in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 78 [06-May-2020 21:19:43] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 78 [06-May-2020 21:19:43] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [07-May-2020 21:44:36] PHP Notice: Undefined index: currencySign in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 68 [07-May-2020 21:44:36] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 68 [07-May-2020 21:44:36] PHP Notice: Undefined index: currencyRate in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 70 [07-May-2020 21:44:36] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 70 [07-May-2020 21:44:36] PHP Notice: Undefined index: currencyFormat in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 72 [07-May-2020 21:44:36] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 72 [07-May-2020 21:44:36] PHP Notice: Undefined index: currencyBlank in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 74 [07-May-2020 21:44:36] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 74 [07-May-2020 21:44:36] PHP Notice: Undefined index: display_qties in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 78 [07-May-2020 21:44:36] PHP Notice: Trying to get property of non-object in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 78 [07-May-2020 21:44:36] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [07-May-2020 21:44:36] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [07-May-2020 21:44:36] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [07-May-2020 21:44:36] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [07-May-2020 21:44:36] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [07-May-2020 21:44:36] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [07-May-2020 21:44:36] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [07-May-2020 21:44:36] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [07-May-2020 21:44:36] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 [07-May-2020 21:44:36] PHP Notice: Undefined index: added_to_cart in /home/USERNAME/public_html/cache/smarty/compile/48/f5/3d/48f53d602026d4e90cb519ca66cdd50ec1aea530.file.product-list.tpl.php on line 365 Attached is the product-list.tpl file mentioned in the errors above... also the shopping-cart.tpl and the header.tpl. Not sure if these are relevant. edit: removed after non response There is also an update available to the PayPal module. Also not sure if that is relevant to this issue... I don't know if that could create add to cart issue. We have not made any changes to the site. My gut feel is that its a security or some other setting on the server. We have chatted to the web host but they can''t identfy the issue and said they have not done any server changes. Any ideas on what we can do as a quick fix? Many thanks in advance. Edited May 12, 2020 by sunnyb0y (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now