Fatal error: Cannot access empty property in registry.php

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

Fatal error: Cannot access empty property in registry.php

Postby admin » Wed Sep 03, 2014 4:04 pm

(this information is not related to OPC itself)

Blank page on your site is a php fatal error. To see what the actual error says, please enable error reporting like this:

0. See if OPC can read your error log (in 80 percent it cannot):
Image

If not, continue with this:

1. Enable error reporting in joomla:
Image
2. see if you see the error instead of the blank screen
3. enable error reporting (debuggin) in virtuemart:
Image
4. if your server does not support using error reporting and all your site gets down due to enabling it (on a PLESK server), you may need to edit configuration.php file manually to make it work again:
Code: Select all
public $error_reporting = 'none';

5. once you know what the error says, you can reverse this process (disable error reporting).
6. OPC has a feature


Actual fatal error (concerns any 3rd party extension using any virtuemart version)


hello friends, i just got around a fatal error on ALL virtuemart versions:

Fatal error: Cannot access empty property in /libraries/joomla/registry/registry.php on line 336


1. when loading virtuemart from non-vm section such as auth plugin (option=com_users)
2. where view is defined exactly as view= (empty)
3. VM gives the above FATAL ERROR

$view = JRequest::getWord('view','virtuemart');
$app->setUserState( 'com_virtuemart.'.$view.'.filter_order',$this->_selectedOrdering);

\administrator\components\com_virtuemart\helpers\vmmodel.php


problem:
$view = JRequest::getWord('view','virtuemart');

CAN RETURN EMPTY !!!

and thus causing the fatal error by using:

$app->setUserState( 'com_virtuemart..filter_order', ...

a possible fix (change code to):
Code: Select all
$view = JRequest::getWord('view');
if (empty($view)) $view = 'virtuemart';
$app->setUserState( 'com_virtuemart.'.$view.'.filter_order',$this->_selectedOrdering);


Best Regards, Stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Return to One Page Checkout for Virtuemart 2

cron