Soliloquy Posted June 11, 2017 Share Posted June 11, 2017 When I try to enable a new template (by clicking on "Use This Template") the resulting page, which should be asking about modules to disable/enable, is blank. The template isn't changed in the front office either.I tried reverting to the default template and then installing it, but still got the blank page. Every other template I try works properly. And I made sure that the new template is for the version of PrestaShop that I'm using. Link to comment Share on other sites More sharing options...
razaro Posted June 11, 2017 Share Posted June 11, 2017 Bit strange issue but do try to enable debug mode and repeat process maybe some meaningful error will come up. https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/ Also what version of PrestaShop you are using and how did you install theme ? Link to comment Share on other sites More sharing options...
Soliloquy Posted June 11, 2017 Author Share Posted June 11, 2017 I enabled debugging mode and got this error: Fatal error: Cannot redeclare class BlogCategory in /home/…/public_html/test/modules/smartblog/classes/BlogCategory.php on line 149 I'm running PrestaShop 1.6.1.6. I installed the template by uploading the zip file for it on the "Add New Theme" page. Pretty sure this isn't a compatibility problem because the site I bought it from says it's compatible up to 1.6.1.x, although they didn't specifically say 1.6.1.6.Thanks for your help! Link to comment Share on other sites More sharing options...
Soliloquy Posted June 11, 2017 Author Share Posted June 11, 2017 I went to the Modules and Services page to see if I could fix this by disabling the blog, but got this error on the page where I usually get the list of modules: Fatal error: Cannot redeclare class BlogCategory in /home/.../public_html/test/modules/smartblog/classes/BlogCategory.php on line 149[PrestaShop] Fatal error in module file :/home/.../public_html/test/modules/smartblog/classes/BlogCategory.php:Cannot redeclare class BlogCategory . Link to comment Share on other sites More sharing options...
razaro Posted June 11, 2017 Share Posted June 11, 2017 OK, so Ithink you installed smartblog on default theme but also new theme you are trying to enable have same module. Maybe renamed or similar blog module that use same named BlogCategory.php class. Try this, find out what is that blog module that comes with new theme. Find it in root modules folder and rename it ( just add _ in front of name). Then try to activate new theme again. This way you should be able to keep post you already have. Other way to rename smartblog to _smartblog and install blog module that comes with new them is also possible solution but question is what will happened with your current posts. Try it out and good luck. Link to comment Share on other sites More sharing options...
Soliloquy Posted June 11, 2017 Author Share Posted June 11, 2017 (edited) Success! I renamed the module directories as instructed, and was able to enable the new template. It is displaying, but I'm getting a number of error messages that say:Notice: Undefined offset: 0 in /home/.../public_html/test/override/classes/Link.php on line 103Do I need to do anything about this, or just turn off debugging mode? Edited June 11, 2017 by Soliloquy (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted June 11, 2017 Share Posted June 11, 2017 Glad to hear Those are notices and if you notice some issues in front office that should be fixed. But if not you can disregard them. And yes it is displaying because of debug mode, that should be disabled now. 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