Fatal error: Call to undefined method FrontEndUsers::current
Posted: Mon Aug 22, 2011 11:39 pm
CMS Version: 1.9.4.2
Current PHP Version: 5.3.1
mySQL: 5.1.41
Apache: 2.2.17
CMS Version: 1.9.4.2
OS: Windows Vista 32bit Service Pack 2
Ecommerce Modules Installed
CGSimpleSmarty: 1.4.8
CGExtensions: 1.26.6
FrontEndUsers: 1.15
CustomContent: 1.7.3
CGEcommerceBase: 1.3.4
Products: 2.13.3
Cart: 1.8.1
CGPaymentGatewayBase: 1.0.11
Orders: 1.13
PaypalGateway: 2.3.5
I have followed "CMSMS Quick E-Commerce How-To" guide and I sometimes get the following error:
Fatal error: Call to undefined method FrontEndUsers::current() in D:\...\wwwroot\lib\classes\class.CmsRegularTaskHandler.php on line 86
I have to edit class.CmsRegularTaskHandler.php and remove the following lines of code:
$tasks = $one->current()->get_tasks();
if( $tasks )
{
if( !is_array($tasks) )
{
$tmp = array($tasks);
$tasks = $tmp;
}
foreach( $tasks as $onetask )
{
if( is_object($onetask) && $onetask instanceof CmsRegularTask )
{
self::$_tasks->append($onetask);
}
}
}
Refresh the browser and then add the lines of code back in.
What's causing this error?
Current PHP Version: 5.3.1
mySQL: 5.1.41
Apache: 2.2.17
CMS Version: 1.9.4.2
OS: Windows Vista 32bit Service Pack 2
Ecommerce Modules Installed
CGSimpleSmarty: 1.4.8
CGExtensions: 1.26.6
FrontEndUsers: 1.15
CustomContent: 1.7.3
CGEcommerceBase: 1.3.4
Products: 2.13.3
Cart: 1.8.1
CGPaymentGatewayBase: 1.0.11
Orders: 1.13
PaypalGateway: 2.3.5
I have followed "CMSMS Quick E-Commerce How-To" guide and I sometimes get the following error:
Fatal error: Call to undefined method FrontEndUsers::current() in D:\...\wwwroot\lib\classes\class.CmsRegularTaskHandler.php on line 86
I have to edit class.CmsRegularTaskHandler.php and remove the following lines of code:
$tasks = $one->current()->get_tasks();
if( $tasks )
{
if( !is_array($tasks) )
{
$tmp = array($tasks);
$tasks = $tmp;
}
foreach( $tasks as $onetask )
{
if( is_object($onetask) && $onetask instanceof CmsRegularTask )
{
self::$_tasks->append($onetask);
}
}
}
Refresh the browser and then add the lines of code back in.
What's causing this error?