VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: okgrowin on March 24, 2015, 21:59:26 PM

Title: Products module : 500 error
Post by: okgrowin on March 24, 2015, 21:59:26 PM
I think this is an existing issue, maybe you already know about it but thought i would detail it since i didn't find a good topic explaining it.

Problem: joomla front end articles( including home ) give error 500 or appear blank
PHP Fatal error:  Class 'shopFunctionsF' not found in /server/public_html/modules/mod_virtuemart_product/mod_virtuemart_product.php on line 80

Cause: products module (featured, latest, etc) is on the joomla article. Products module doesn't find any products to load (if using featured, no featured products or no featured products are published).

Work around: Unpublish products module if you have nothing to display. Or change products module configuration so it will find something to display.

OS Linux b
PHP 5.4.38
MySQLi 5.5.42-37.1-log
vm 3.0.6.2
joomla 3.4.1 Stable [ Ember ]
Title: Re: Products module : 500 error
Post by: GJC Web Design on March 24, 2015, 22:00:49 PM
please mention which versions
Title: Re: Products module : 500 error
Post by: okgrowin on March 24, 2015, 22:05:09 PM
kk added more info
Title: Re: Products module : 500 error
Post by: GJC Web Design on March 24, 2015, 23:09:13 PM
thanks
Title: Re: Products module : 500 error
Post by: Thomas Kuschel on March 30, 2015, 16:26:02 PM
Same problem here,
to reproduce the error, you have to log-in. Without any cookies, the site works, but after logging-in, the error appears, page is white only.
log:
[Mon Mar 30 16:19:36.891409 2015] [:error] [pid 17745] [client 10.101.17.93:59438] PHP Fatal error:  Class 'shopFunctionsF' not found in /home/tkuschel/workspace/joomla/j3/modules/mod_virtuemart_product/mod_virtuemart_product.php on line 80
[Mon Mar 30 16:19:36.891465 2015] [:error] [pid 17745] [client 10.101.17.93:59438] PHP Stack trace:
[Mon Mar 30 16:19:36.891478 2015] [:error] [pid 17745] [client 10.101.17.93:59438] PHP   1. {main}() /home/tkuschel/workspace/joomla/j3/index.php:0
[Mon Mar 30 16:19:36.891486 2015] [:error] [pid 17745] [client 10.101.17.93:59438] PHP   2. JApplicationCms->execute() /home/tkuschel/workspace/joomla/j3/index.php:40
[Mon Mar 30 16:19:36.891494 2015] [:error] [pid 17745] [client 10.101.17.93:59438] PHP   3. JApplicationSite->render() /home/tkuschel/workspace/joomla/j3/libraries/cms/application/cms.php:258
[Mon Mar 30 16:19:36.891507 2015] [:error] [pid 17745] [client 10.101.17.93:59438] PHP   4. JApplicationCms->render() /home/tkuschel/workspace/joomla/j3/libraries/cms/application/site.php:729
[Mon Mar 30 16:19:36.891513 2015] [:error] [pid 17745] [client 10.101.17.93:59438] PHP   5. JDocumentHTML->render() /home/tkuschel/workspace/joomla/j3/libraries/cms/application/cms.php:1059
[Mon Mar 30 16:19:36.891516 2015] [:error] [pid 17745] [client 10.101.17.93:59438] PHP   6. JDocumentHTML->_renderTemplate() /home/tkuschel/workspace/joomla/j3/libraries/joomla/document/html/html.php:477
[Mon Mar 30 16:19:36.891526 2015] [:error] [pid 17745] [client 10.101.17.93:59438] PHP   7. JDocumentHTML->getBuffer() /home/tkuschel/workspace/joomla/j3/libraries/joomla/document/html/html.php:697
[Mon Mar 30 16:19:36.891534 2015] [:error] [pid 17745] [client 10.101.17.93:59438] PHP   8. JDocumentRendererModules->render() /home/tkuschel/workspace/joomla/j3/libraries/joomla/document/html/html.php:411
[Mon Mar 30 16:19:36.891542 2015] [:error] [pid 17745] [client 10.101.17.93:59438] PHP   9. JDocumentRendererModule->render() /home/tkuschel/workspace/joomla/j3/libraries/joomla/document/html/renderer/modules.php:43
[Mon Mar 30 16:19:36.891551 2015] [:error] [pid 17745] [client 10.101.17.93:59438] PHP  10. JModuleHelper::renderModule() /home/tkuschel/workspace/joomla/j3/libraries/joomla/document/html/renderer/module.php:103
[Mon Mar 30 16:19:36.891559 2015] [:error] [pid 17745] [client 10.101.17.93:59438] PHP  11. include() /home/tkuschel/workspace/joomla/j3/libraries/cms/module/helper.php:190

console:
Uncaught ReferenceError: Virtuemart is not defined
www-test.office.loytec.com/:7 Uncaught ReferenceError: jQuery is not defined
http://www-test.office.loytec.com/ Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Maybe this helps too,
BR
Thomas.

Debian 3.11.8-1 (2013-11-13) i686
mysql 5.5.33-1
php 5.5.6-1, apache2.4.6
joomla 3.4.1 / vm 3.0.6.2
Title: Re: Products module : 500 error
Post by: Milbo on March 30, 2015, 23:50:38 PM
Thank you is added since 26.March.

the solution is


if (!class_exists('shopFunctionsF'))
require(JPATH_VM_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php');