Jump to content

Set of PHP errors on product pages only (Need a new set of eyes)


Recommended Posts

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:
 
  1. This was not always occurring.  Was all fine on Friday and came in on Monday to these errors.
  2.  
 
 
Remedies Attempted:
  1. Restoring the theme to a time when the issue was not there.
  2. Turning off caches, 3rd party mods, etc
  3. Clearing cache

Configuration Information:

 CONFIGURATION INFORMATION

This information must be provided when you report an issue on our bug tracker or forum.

 SERVER INFORMATION

Server 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 INFORMATION

MySQL version 5.5.43-0ubuntu0.14.04.1

MySQL engine InnoDB

Tables prefix ps_

 STORE INFORMATION

PrestaShop version 1.6.0.7

Shop URL http://72.249.170.12/

Current theme in use default-bootstrap

 MAIL CONFIGURATION

Mail 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 INFORMATION

Your 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 CONFIGURATION

Required parameters Please fix the following error(s)

Optional parameters OK

 
 
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...