News:

Support the VirtueMart project and become a member

Main Menu

Products module : 500 error

Started by okgrowin, March 24, 2015, 21:59:26 PM

Previous topic - Next topic

okgrowin

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 ]

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

okgrowin


GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Thomas Kuschel

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

Milbo

Thank you is added since 26.March.

the solution is


if (!class_exists('shopFunctionsF'))
require(JPATH_VM_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php');
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/