skinnybloke Posted June 23 Share Posted June 23 Hi - I have updated my staging site from Prestashop v8.2 to v9.0 successfully but have the following errors when trying to access the site: At the frontend: Fatal error: Uncaught Error: Call to undefined method Tools::link_rewrite() in /home/stage/testsites/test/modules/smartblog/smartblog.php:1422 Stack trace: #0 /home/stage/testsites/test/modules/smartblog/smartblog.php(1381): smartblog->smartBlogRoutes() #1 /home/stage/testsites/test/classes/Hook.php(1251): smartblog->hookModuleRoutes(Array) #2 /home/stage/testsites/test/classes/Hook.php(462): HookCore::coreCallHook(Object(smartblog), 'hookModuleRoute...', Array) #3 /home/stage/testsites/test/classes/Hook.php(1142): HookCore::callHookOn(Object(smartblog), 'moduleRoutes', Array) #4 /home/stage/testsites/test/classes/Dispatcher.php(587): HookCore::exec('moduleRoutes', Array, NULL, true, false) #5 /home/stage/testsites/test/classes/Dispatcher.php(238): DispatcherCore->loadRoutes() #6 /home/stage/testsites/test/classes/Dispatcher.php(196): DispatcherCore->__construct(Object(Symfony\Component\HttpFoundation\Request)) #7 /home/stage/testsites/test/index.php(78): DispatcherCore::getInstance() #8 {main} thrown in /home/stage/testsites/test/modules/smartblog/smartblog.php on line 1422 At the backend Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php81) failed: Permission denied (13) and Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php83) failed: Permission denied (13) ea-php81 is used by my live site without any problems. The ownership and permissions of ea-php81 and ea-php83 are the same and look correct to me. Any ideas on what I should do to try and resolve this? Link to comment Share on other sites More sharing options...
AICV Posted June 23 Share Posted June 23 It appears to be: The SmartBlog module has not been updated to be compatible with PrestaShop 9.0. Possible Solutions Update the SmartBlog module: Find an updated version of the module that is compatible with PS 9.0. Contact the module developer to request an update. Temporarily modify the code (workaround): You could edit smartblog.php and replace Tools::link_rewrite() with the equivalent method in PS 9.0 (possibly Tools::str2url() or similar). Deactivate the module: If it's not essential, you could temporarily deactivate it until a permanent solution is found. 2 Link to comment Share on other sites More sharing options...
skinnybloke Posted June 26 Author Share Posted June 26 Smartblog is a module included in the Akira Elementor theme. I upgraded this before upgrading Prestashop, and the issue is resolved. I have other issues which other people have reported as bugs, so I think I'll wait for v9.0.1 or v9.0.2 to be released before looking at this again. 1 Link to comment Share on other sites More sharing options...
El Patron Posted June 26 Share Posted June 26 (edited) 1 hour ago, skinnybloke said: Smartblog is a module included in the Akira Elementor theme. I upgraded this before upgrading Prestashop, and the issue is resolved. I have other issues which other people have reported as bugs, so I think I'll wait for v9.0.1 or v9.0.2 to be released before looking at this again. smart blog, I hardly think so...loool I highly recommend not to use blog on ecommerce...it's distracting....and dilutes seo, confuses visitors, if one uses for example a screen recording of visitor experience to find drop off's, and if there is a blog, one then see's what a complete disaster it creates. This ain't my first rodeo... https://prestaheroes.com/blogs/ecommrece-best-practices-1/stop-blogging-start-selling-why-ecommerce-blogs-hurt-more-than-help Edited June 26 by El Patron (see edit history) Link to comment Share on other sites More sharing options...
skinnybloke Posted June 30 Author Share Posted June 30 I don't use Smart Blog, but it's part of the theme. Link to comment Share on other sites More sharing options...
PANNIKOS Posted August 30 Share Posted August 30 Hello community, so the Tools::str2url() works on ps9, or not? Thank you! Link to comment Share on other sites More sharing options...
El Patron Posted August 30 Share Posted August 30 On 6/30/2025 at 10:36 AM, skinnybloke said: I don't use Smart Blog, but it's part of the theme. https://app.screencast.com/XHVH2nsI5pFtB what happened? did you dahs all your dreams? if you were using the theme compatible with smart blog...well bad choice, I know that theme all to well...old...ugly and outdated. one should only use theme with that supports 'elements', that theme has not been upgrade since before electricity. Don't give up. 1 hour ago, PANNIKOS said: Hello community, so the Tools::str2url() works on ps9, or not? Thank you! Yes, it works in PS9. But long-term, developers should prefer Symfony’s slugger service (or Transliterator) since that’s the modern direction. 1 Link to comment Share on other sites More sharing options...
PANNIKOS Posted August 30 Share Posted August 30 @El Patron Thank you! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now