Fatal error: Call to undefined method FrontEndUsers::current

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
flatcap1
Forum Members
Forum Members
Posts: 24
Joined: Tue Aug 16, 2011 3:13 pm

Fatal error: Call to undefined method FrontEndUsers::current

Post 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?
realrock
Forum Members
Forum Members
Posts: 227
Joined: Tue Sep 04, 2007 8:14 pm

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

Post 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?
User avatar
flatcap1
Forum Members
Forum Members
Posts: 24
Joined: Tue Aug 16, 2011 3:13 pm

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

Post 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
Post Reply

Return to “CMSMS Core”