Quick fix for Jigoshop 1.9+ on servers with PHP below 5.3.

May 132014
 
 Posted by on 13/05/2014 How-To's Tagged with: ,  Add comments
Problems and fixes for Jigoshop 1.9.5 in this article: https://drafie-design.nl/another-fix-for-jigoshop/

If you upgrade Jigoshop to the latest version on servers which still use PHP under 5.3., your shop will stop to work and will receive this error:

Parse error: syntax error, unexpected T_STRING in /home/(username)/(domain name)/wp-content/plugins/jigoshop/plugins/jigoshop-web-optimization-system/jigoshop-web-optimization.php on line 32

Of course, the best is to ask your hosting company to upgrade PHP at least to 5.3. version, as this is now the minimum requirement for Jigoshop, but if this is not possible go by ftp at wp-content/plugins/jigoshop/plugins/jigoshop-web-optimization-system and edit jigoshop-web-optimization.php.

Comment the line which create the problem:

 so, it will look as:

Can download the file from here and replace the original one from wp-content/plugins/jigoshop/plugins/jigoshop-web-optimization-systemChanged jigoshop-web-optimization.php

You will not benefit of the new feature for minifying CSS and JS of Jigoshop, but your shop will be functional again, at least until your host will upgrade the PHP on the server.

https://drafie-design.nl/quick-fix-for-jigoshop-1-9-on-servers-with-php-below-5-3/trackback/Trackback URI:  

Ciprian

Experienced web developer and graphic designer. Former consultant for Suffusion theme and former moderator on Suffusion Support forum. I teach others while learning myself.

Google+ Profile

    Google+ Page

 Leave a Reply

(Your comment will be published. To contact me privately, use the contact form.)

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  3 Responses to “Quick fix for Jigoshop 1.9+ on servers with PHP below 5.3.”

Comments (2) Pingbacks (1)
  1. […] see about what I’m talking. In the morning I received a comment which said that my solution for Jigoshop 1.9.+ don’t works for 1.9.5. I was wondering why… in the changelog for this update was […]