Jump to content

I get this error in multishops when install Transformer 4.0 (themplate).


RockStar360

Recommended Posts

Hi people.

 

Prestashop 1.7 works fine whit multishop, but after i installed Transformer 4 template, the first shop i applied the template wors fine, but the others, get an error 500.

 

If i activate debug sql i get this;

 

Whoops, looks like something went wrong. 1/1 ContextErrorException in Tools.php line 2704: User Warning: Function <b>getAssetUriFromLegacyDeprecatedMethod()</b> is deprecated in <b>/home/niponadmin/public_html/classes/controller/FrontController.php</b> on line <b>1127</b><br />
  1. in Tools.php line 2704
  2. at ErrorHandler->handleError('512', 'Function <b>getAssetUriFromLegacyDeprecatedMethod()</b> is deprecated in <b>/home/niponadmin/public_html/classes/controller/FrontController.php</b> on line <b>1127</b><br />', '/home/niponadmin/public_html/classes/Tools.php', '2704', array('error' => 'Function <b>getAssetUriFromLegacyDeprecatedMethod()</b> is deprecated in <b>/home/niponadmin/public_html/classes/controller/FrontController.php</b> on line <b>1127</b><br />', 'message' => 'Backward compatibility for this method couldn't be handled. Use $this->registerJavascript() instead', 'class' => 'FrontControllerCore'))
  3. at trigger_error('Function <b>getAssetUriFromLegacyDeprecatedMethod()</b> is deprecated in <b>/home/niponadmin/public_html/classes/controller/FrontController.php</b> on line <b>1127</b><br />', '512') in Tools.php line 2704
  4. at ToolsCore::throwDeprecated('Function <b>getAssetUriFromLegacyDeprecatedMethod()</b> is deprecated in <b>/home/niponadmin/public_html/classes/controller/FrontController.php</b> on line <b>1127</b><br />', 'Backward compatibility for this method couldn't be handled. Use $this->registerJavascript() instead', 'FrontControllerCore') in Tools.php line 2673
  5. at ToolsCore::displayAsDeprecated('Backward compatibility for this method couldn't be handled. Use $this->registerJavascript() instead') in FrontController.php line 1917
  6. at FrontControllerCore->getAssetUriFromLegacyDeprecatedMethod('/themes/transformer/assets/js/tools/treeManagement.js') in FrontController.php line 1127
  7. at FrontControllerCore->addJS(array('/themes/transformer/assets/js/tools/treeManagement.js')) in stblogarchives.php line 114
  8. at StBlogArchives->hookHeader(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '22')) in Hook.php line 895
  9. at HookCore::coreCallHook(object(StBlogArchives), 'hookHeader', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '22')) in Hook.php line 331
  10. at HookCore::callHookOn(object(StBlogArchives), 'displayHeader', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '22')) in Hook.php line 843
  11. at HookCore::exec('displayHeader') in FrontController.php line 533
  12. at FrontControllerCore->initContent() in IndexController.php line 37
  13. at IndexControllerCore->initContent() in Controller.php line 205
  14. at ControllerCore->run() in Dispatcher.php line 369
  15. at DispatcherCore->dispatch() in index.php line 28

 

Im a bit lost.

 

I apreciat if you can help me.

 

Thank Yoyu!

 

 

 

Link to comment
Share on other sites

  • 6 years later...

You have more of those problems there.
1. you need to change the old hook to a new one

/* OLD $this->registerHook('header'); */
$this->registerHook('displayHeader');

/* OLD public function hookHeader() */
public function hookDisplayHeader()

2. it is necessary to change the loading of JavaScript and possibly also CSS

/* OLD $this->registerJavascript() */
$this->context->controller->addJs(.....);

/* OLD $this->registerStylesheet() */
$this->context->controller->addCSS(.....);

And certainly many more that are not visible from your error report.

As @dnk.hack wrote, you need to update your transformer theme.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...