Page 1 of 1

Fatal error: Call to undefined method FrontEndUsers::current

Posted: Mon Aug 22, 2011 11:39 pm
by flatcap1
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?

Re: Fatal error: Call to undefined method FrontEndUsers::cur

Posted: Tue Aug 30, 2011 11:45 am
by realrock
Same problem here. If you remove the Front-End-Users directorty the website will work again...

I have this problem since the update of the Front-End-Users module to version 1.15.

Anyone any idea?

Re: Fatal error: Call to undefined method FrontEndUsers [sol

Posted: Fri Sep 09, 2011 2:34 pm
by flatcap1
My site is stable now.

Just checked versions and FrontEndUsers is now at 1.15.1 and CGEcommerceBase is at 1.3.5

I guess this fixed it