1

After updating my Joomla site from version 3.9 to 3.10, everything is working except the responsivizer component where I am getting this error in the backend:

Call to a member function setState() on bool

I enabled debug mode and found that error is happening in this line of setstate:

F:\www\4nov\administrator\components\com_responsivizer\controllers\cpanel.php:27

My PHP version is 7.4 before and after upgrading.

I checked on PHP 7.4 in Joomla 3.9.x with a backup and there was no error.

It seems that the issue is exclusive to Joomla 3.10.

function display($cachable = false, $urlparams = false) {
    $defaultModel = $this->getModel();
    $defaultModel->setState('option', $this->option);
    
    // Dependency injection setter on view/model for ResponsivizerRegistry instance
    $view = $this->getView();
    $registry = new ResponsivizerRegistry();
    $view->set('registry', $registry);
    $HTTPClient = new ResponsivizerHttp();
    $view->set('httpclient', $HTTPClient);
    
    // No operations
    parent::display ($cachable); 
}
3
  • What version of Responsivizer do you have installed? Commented Nov 12, 2022 at 12:54
  • Well thats an old version only as not having funds to buy in renewal. It was last bought in 3 yrs back and that same version went will on to php 7,4 and joomla 3.9, but after update to j3.10 - facing this. i presume by correcting this errror will be able to get same working Commented Nov 12, 2022 at 13:18
  • $this->getModel() returns false. You might try to use $this->getModel("model_name") but I don't have this extension so I don't know what model_name to assume and what was set to be default. Commented Nov 18, 2022 at 0:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.