I need help asap thanks Fatal error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
icezero
Forum Newbie
Posts: 2
Joined: Thu Jun 17, 2010 11:06 am

I need help asap thanks Fatal error

Post by icezero »

hello every one i hope u can help i installed addons on my shoppingcart and it stuffed up and i would really like to know what i have to do to fix thanks
Fatal error: Call to undefined method ISC_ADDON::loadaddonvars() in /web/www.wesite.com.au/addons/ysm/addon.ysm.php on line 107
reg
User avatar
flying_circus
Forum Regular
Posts: 732
Joined: Wed Mar 05, 2008 10:23 pm
Location: Sunriver, OR

Re: I need help asap thanks Fatal error

Post by flying_circus »

The error is telling you what is wrong.

Fatal error: Call to undefined method ISC_ADDON::loadaddonvars() in /web/www.wesite.com.au/addons/ysm/addon.ysm.php on line 107

Look at file: /web/www.wesite.com.au/addons/ysm/addon.ysm.php
Look at line: 107

You're making a call to method loadaddonvars(), which as the error implies, does not exist within class ISC_ADDON
icezero
Forum Newbie
Posts: 2
Joined: Thu Jun 17, 2010 11:06 am

Re: I need help asap thanks Fatal error

Post by icezero »

i have had a look but it makes no sense to me at all and i cant log back in to disable these addons it is a interspire shopping cart

/**
* Init
* Initialize any other addon-specific code that needs to run
*/
function init()
{
$this->SetHelpText(GetLang('YSMHelpText'));
$this->_SetVariables();
$this->ShowSaveAndCancelButtons(false);
parent::loadaddonvars(); <<<(line107)

// Has content match been ticked?
if(isset($_POST["contentmatch"])) {
$this->_contentmatch = true;
}

// What's the maximum CPC?
if(isset($_POST["maxcpc"])) {
$this->_maxcpc = FormatPrice($_POST["maxcpc"], false, false, true);
}
}
Post Reply