ragman Posted October 20, 2015 Share Posted October 20, 2015 Hello community Okay I have hit a snag. The site we are developing started running into a slew of PHP errors. I have quashed most of them but I have a set that is driving me bonkers. I am willing to wager that at this point it is something painfully simple and I am just tunnel visioned from the larger issues I have already fixed. Maybe a new set of eyes will spot it. Translation: HELP I didnt see a post on formatting for help requests so I will include what I think is relevant. If I am missing anything please let me know and Ill get it or correct it asap. Ill organize this post as follows: Errors Received Key Notes Remedies Attempted Configuration Information Errors Received: The error notices are occurring only on all individual product pages. Every other page works as it should. Example: http://72.249.170.12/index.php?id_product=8331&controller=product Below is the persistent errors for product every page (4 in total). ( ! ) Notice: Use of undefined constant _PS_PRICE_COMPUTE_PRECISION_ - assumed '_PS_PRICE_COMPUTE_PRECISION_' in /var/www/html/modules/socialsharing/socialsharing.php on line 170 Call Stack # Time Memory Function Location 1 0.0001 235480 {main}( ) ../index.php:0 2 0.0701 4545056 DispatcherCore->dispatch( ) ../index.php:28 3 0.0721 4698400 ControllerCore->run( ) ../Dispatcher.php:373 4 0.1324 7407848 ProductControllerCore->initContent( ) ../Controller.php:180 5 0.1324 7408208 FrontControllerCore->initContent( ) ../ProductController.php:176 6 0.1324 7408256 HookCore::exec( ) ../FrontController.php:447 7 0.1428 7757344 SocialSharing->hookDisplayHeader( ) ../Hook.php:507 ( ! ) Warning: round() expects parameter 2 to be long, string given in /var/www/html/classes/Tools.php on line 1592 Call Stack # Time Memory Function Location 1 0.0001 235480 {main}( ) ../index.php:0 2 0.0701 4545056 DispatcherCore->dispatch( ) ../index.php:28 3 0.0721 4698400 ControllerCore->run( ) ../Dispatcher.php:373 4 0.1324 7407848 ProductControllerCore->initContent( ) ../Controller.php:180 5 0.1324 7408208 FrontControllerCore->initContent( ) ../ProductController.php:176 6 0.1324 7408256 HookCore::exec( ) ../FrontController.php:447 7 0.1428 7757344 SocialSharing->hookDisplayHeader( ) ../Hook.php:507 8 0.1471 7782528 ToolsCore::ps_round( ) ../socialsharing.php:170 9 0.1471 7782576 round ( ) ../Tools.php:1592 ( ! ) Notice: Use of undefined constant _PS_PRICE_COMPUTE_PRECISION_ - assumed '_PS_PRICE_COMPUTE_PRECISION_' in /var/www/html/modules/socialsharing/socialsharing.php on line 171 Call Stack # Time Memory Function Location 1 0.0001 235480 {main}( ) ../index.php:0 2 0.0701 4545056 DispatcherCore->dispatch( ) ../index.php:28 3 0.0721 4698400 ControllerCore->run( ) ../Dispatcher.php:373 4 0.1324 7407848 ProductControllerCore->initContent( ) ../Controller.php:180 5 0.1324 7408208 FrontControllerCore->initContent( ) ../ProductController.php:176 6 0.1324 7408256 HookCore::exec( ) ../FrontController.php:447 7 0.1428 7757344 SocialSharing->hookDisplayHeader( ) ../Hook.php:507 ( ! ) Warning: round() expects parameter 2 to be long, string given in /var/www/html/classes/Tools.php on line 1592 Call Stack # Time Memory Function Location 1 0.0001 235480 {main}( ) ../index.php:0 2 0.0701 4545056 DispatcherCore->dispatch( ) ../index.php:28 3 0.0721 4698400 ControllerCore->run( ) ../Dispatcher.php:373 4 0.1324 7407848 ProductControllerCore->initContent( ) ../Controller.php:180 5 0.1324 7408208 FrontControllerCore->initContent( ) ../ProductController.php:176 6 0.1324 7408256 HookCore::exec( ) ../FrontController.php:447 7 0.1428 7757344 SocialSharing->hookDisplayHeader( ) ../Hook.php:507 8 0.1481 7782832 ToolsCore::ps_round( ) ../socialsharing.php:171 9 0.1481 7782880 round ( ) ../Tools.php:1592 Key notes: This was not always occurring. Was all fine on Friday and came in on Monday to these errors. Remedies Attempted: Restoring the theme to a time when the issue was not there. Turning off caches, 3rd party mods, etc Clearing cache Configuration Information: CONFIGURATION INFORMATIONThis information must be provided when you report an issue on our bug tracker or forum. SERVER INFORMATIONServer information Linux #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 Server software version Apache/2.4.7 (Ubuntu) PHP version 5.5.9-1ubuntu4.11 Memory limit 512M Max execution time 3600 DATABASE INFORMATIONMySQL version 5.5.43-0ubuntu0.14.04.1 MySQL engine InnoDB Tables prefix ps_ STORE INFORMATIONPrestaShop version 1.6.0.7 Shop URL http://72.249.170.12/ Current theme in use default-bootstrap MAIL CONFIGURATIONMail method You are using your own SMTP parameters. SMTP server: smtp. SMTP user: Not defined SMTP password: Not defined Encryption off SMTP port 25 YOUR INFORMATIONYour web browser Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36 CHECK YOUR CONFIGURATIONRequired parameters Please fix the following error(s) Optional parameters OK Link to comment Share on other sites More sharing options...
tuk66 Posted October 20, 2015 Share Posted October 20, 2015 I suggest to upgrade to the latest version (1.6.1.1). Your version is quite outdated. I hope it helps. 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