fatal error undefined method stdClass::replaceMootools()

Discussion in 'PHP' started by saturn100, Jul 6, 2014.

  1. #1
    I posted this is the jomla section but wanted to post here too in case anyone has any ideas
    I had to uninstall a theme in joomla and when I went to reinstall it I had this error message

    undefined method stdClass::replaceMootools()I

    line 54 is this

    $template->replaceMootools();

    and some other lines around it include

    // set mootools javascript lib
    if ($this->params->get('load_mootools')) {
    $template->replaceMootools();
    }


    Anyone have any ideas what the problem is
    It was working but now nothing
     
    saturn100, Jul 6, 2014 IP
  2. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #2
    Where is $template created? It sounds like $template is an object of stdClass. It could've been that the variable was reset somewhere. Without the full code it is hard to tell.
     
    ThePHPMaster, Jul 6, 2014 IP