Call To A Member Function Addstyledeclaration() On Null After Stellar Update - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Call To A Member Function Addstyledeclaration() On Null After Stellar Update

J

john@gs

Template 3 years ago

Hello,

After updating the Stellar template to version 2.0.0 and updating Sp Page Builder to it's latest 3.8.8 version, all page builder pages get the following error:

Call To A Member Function Addstyledeclaration() On Null

Kind regards, John

0
2 Answers
Ariba
Ariba
Accepted Answer
Support Agent 3 years ago #82476

Hello

Thank you for your query.

Please try the following:

You have to edit the index.php file from your template:

  • Open the templates index.php file in HTML editor or in File editor from cPanel.
  • Find line with: $doc->addStyledeclaration and replace with $this->addStyledeclaration
  • Find line with: $doc->addScriptdeclaration and replace with: $this->addScriptdeclaration
  • Save changes and upload a changed file.

As you may see the only difference is "$this" instead of old and incorrect "$doc".

https://www.joomshaper.com/documentation/helix-framework/helix-ultimate-2/troubleshooting-faq#call-to-a-member-function-addstyledeclaration-on-null

1
Andrzej Wachałowicz
Andrzej Wachałowicz
Accepted Answer
2 years ago #126635

This helped me a lot. Thanks.

0