Jump to content

errors in JavaScript - categories not shown in products page in admin panel


neylz

Recommended Posts

Hello,

 

I am facing a problem in the admin panel, my categories won't show .... and my ajax cart doesnt' work properly as well so i had to desactivate it... this is the problem my host provider supplied me after looking at it but with my poor knowledge unfortunately i don't know how to fix it..

 

Please see the picture attached to see the problem ..

 

 

"

30-Mar-2013 13:57:06] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Category.php on line 1026

[30-Mar-2013 13:57:07] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Category.php on line 534

[30-Mar-2013 13:57:07] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/controllers/front/CategoryController.php on line 200

[30-Mar-2013 13:57:07] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Tab.php on line 259

[30-Mar-2013 13:59:48] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Category.php on line 1026

[30-Mar-2013 13:59:48] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Category.php on line 534

[30-Mar-2013 13:59:48] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/controllers/front/CategoryController.php on line 200

[30-Mar-2013 13:59:48] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Tab.php on line 259

[30-Mar-2013 13:59:50] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Tab.php on line 259

[30-Mar-2013 14:00:34] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/controllers/front/ProductController.php on line 336

[30-Mar-2013 14:00:34] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/controllers/front/ProductController.php on line 468

[30-Mar-2013 14:00:42] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/classes/Tab.php on line 259

[30-Mar-2013 14:10:31] PHP Fatal error: Uncaught exception 'JSMin_UnterminatedStringException' with message 'JSMin: Unterminated String at byte 168: 'Mascara is a cosmetic used as makeup to make eyelashes darker and longer. ' in /home/w2beauty/public_html/tools/js_minify/jsmin.php:192

Stack trace:

#0 /home/w2beauty/public_html/tools/js_minify/jsmin.php(143): JSMin->action(1)

#1 /home/w2beauty/public_html/tools/js_minify/jsmin.php(83): JSMin->min()

#2 /home/w2beauty/public_html/classes/Media.php(134): JSMin::minify('// ?? var AddS...')

#3 /home/w2beauty/public_html/classes/Media.php(121): MediaCore::packJS('// ?? var AddS...')

#4 /home/w2beauty/public_html/classes/Media.php(104): MediaCore::packJSinHTMLpregCallback(Array)

#5 /home/w2beauty/public_html/config/smarty.config.inc.php(148): MediaCore::packJSinHTML('/\s*(<script\b[...', Array, '<link rel="styl...')

#6 /home/w2beauty/public_html/tools/smarty/sysplugins/smarty_internal_filter_handler.php(60): smartyPackJSinHTML('<link rel="styl...')

#7 /home/w2beauty/public_html/tools/smarty/sysplugins/sm in /home/w2beauty/public_html/tools/js_minify/jsmin.php on line 192

[30-Mar-2013 16:03:03] PHP Fatal error: Uncaught exception 'JSMin_UnterminatedStringException' with message 'JSMin: Unterminated String at byte 186: 'Blusher is a color makeup cosmetic used to put on cheeks for looking more lively and lovely.' in /home/w2beauty/public_html/tools/js_minify/jsmin.php:192

Stack trace:

#0 /home/w2beauty/public_html/tools/js_minify/jsmin.php(143): JSMin->action(1)

#1 /home/w2beauty/public_html/tools/js_minify/jsmin.php(83): JSMin->min()

#2 /home/w2beauty/public_html/classes/Media.php(134): JSMin::minify('// ?? var AddS...')

#3 /home/w2beauty/public_html/classes/Media.php(121): MediaCore::packJS('// ?? var AddS...')

#4 /home/w2beauty/public_html/classes/Media.php(104): MediaCore::packJSinHTMLpregCallback(Array)

#5 /home/w2beauty/public_html/config/smarty.config.inc.php(148): MediaCore::packJSinHTML('/\s*(<script\b[...', Array, '<link rel="styl...')

#6 /home/w2beauty/public_html/tools/smarty/sysplugins/smarty_internal_filter_handler.php(60): smartyPackJSinHTML('<link rel="styl...')

#7 /home/w2beauty/public_html/tools/sm in /home/w2beauty/public_html/tools/js_minify/jsmin.php on line 192

[30-Mar-2013 16:24:54] PHP Fatal error: Uncaught exception 'JSMin_UnterminatedStringException' with message 'JSMin: Unterminated String at byte 168: 'Mascara is a cosmetic used as makeup to make eyelashes darker and longer. ' in /home/w2beauty/public_html/tools/js_minify/jsmin.php:192

Stack trace:

#0 /home/w2beauty/public_html/tools/js_minify/jsmin.php(143): JSMin->action(1)

#1 /home/w2beauty/public_html/tools/js_minify/jsmin.php(83): JSMin->min()

#2 /home/w2beauty/public_html/classes/Media.php(134): JSMin::minify('// ?? var AddS...')

#3 /home/w2beauty/public_html/classes/Media.php(121): MediaCore::packJS('// ?? var AddS...')

#4 /home/w2beauty/public_html/classes/Media.php(104): MediaCore::packJSinHTMLpregCallback(Array)

#5 /home/w2beauty/public_html/config/smarty.config.inc.php(148): MediaCore::packJSinHTML('/\s*(<script\b[...', Array, '<link rel="styl...')

#6 /home/w2beauty/public_html/tools/smarty/sysplugins/smarty_internal_filter_handler.php(60): smartyPackJSinHTML('<link rel="styl...')

#7 /home/w2beauty/public_html/tools/smarty/sysplugins/sm in /home/w2beauty/public_html/tools/js_minify/jsmin.php on line 192

[30-Mar-2013 17:23:36] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:23:50] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:24:01] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:24:10] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:24:22] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:24:33] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:24:44] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:24:53] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:04] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:14] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:24] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:32] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:39] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:47] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

[30-Mar-2013 17:25:55] PHP Warning: Invalid argument supplied for foreach() in /home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php on line 437

 

 

There are two things to note in the logs:

The name of the script throwing the error and the line number.

 

This script:

/home/w2beauty/public_html/modules/jirafe/vendor/jirafe-php-client/src/Jirafe/Platform/Prestashop14.php

Has an error on line 437.

The error is:

Invalid argument supplied for foreach()

Here is a recent post for this error in the presta support forums:

http://www.prestashop.com/forums/topic/199137-jirafe-bug/

 

This script:

/home/w2beauty/public_html/tools/smarty/sysplugins/sm in /home/w2beauty/public_html/tools/js_minify/jsmin.php

Has an error on line 192

This is a fatal error, which means the script dies:

PHP Fatal error: Uncaught exception 'JSMin_UnterminatedStringException' with message 'JSMin: Unterminated String at byte 168: 'Mascara is a cosmetic used as makeup to make eyelashes darker and longer.

Here is a forum post on this error:

http://www.prestashop.com/forums/topic/217054-orderstep1-server-error/

 

You will need to contact presta support for the code issues or contract a programmer. "

 

 

Despite having the links etc, i tried to do what is said on those links but nothing changed, I really need your help please !

 

I can send you my credentials if needed to have a look at the shop/server

 

 

 

Best regards and big thanks for anyone who would stop by and help !

post-469290-0-16279000-1364704194_thumb.jpg

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