Shonen Posted October 20, 2015 Share Posted October 20, 2015 Hello everyone, I migrated a commercial site in PrestaShop version 1.4.9 to Version 1.6.1.1 It took some time but with the 1-Click Upgrade Module I made a big step forward! But as pointed out on a lot of forums, this module is not enought if you want to migrate with an handmade theme. Here are my problems after migration, and the steps I followed: 1.4: Copy of presta locally (wamp), changes in config to access the BO (db, presta root ..) Editing images in preferences => images. New folder tree. Download 1-Click Upgrade Module and Configuration => no backup, choice of existing theme (not default theme), activation of unofficial modules, major version 1.6.1 Launch .. So I end up with my presta 1.6.1, the BO works well (apart from the slow ALL the backoffice and more Save button in the tree product ~ 30s, but it is already stressed everywhere and I suppose to expect a new update from prestashop). However, my theme has somewhat exploded: P With the dev mode enabled, I initially quite annoying error message on each page. Strict standards: Declaration of myModule::_clearCache() should be compatible with ModuleCore::_clearCache($template, $cache_id = NULL, $compile_id = NULL) in C:\wamp\www\mySite\modules\myModule\myModule.php on line 396 I suspect it takes my clearCache function approaches the Core function, but I do not see how. Here's the code: protected function _clearCache() { $this->_clearCache(NULL, 'myModule'); Tools::restoreCacheSettings(); } I tried a bit of everything: let clearCache () without parameters, only the parameter template etc, but nothing happens. What has changed since the 1.4.9? What should I change? Then a bigger problem this time because it is a fatal error, the module blockcategories not working anymore. It was modified in the theme house, but even if I get the default theme code that still does not work! Notice: Undefined index: blockCategTree in C:\wamp\www\mySite\tools\smarty\sysplugins\smarty_internal_templatebase.php(157) : eval()'d code on line 42 Obviously it's the smarty that puts me wrong, but it is the code blockcategories.tpl file that is in question. Except that in blockcategories.php I have the declaration of blockCategTree $blockCategTree = $this->getTree($resultParents, $resultIds, $maxdepth, ($category ? $category->id : null)); $this->smarty->assign('blockCategTree', $blockCategTree); $blockCategTree = $this->getTree($resultParents, $resultIds, Configuration::get('BLOCK_CATEG_MAX_DEPTH')); unset($resultParents, $resultIds); $isDhtml = (Configuration::get('BLOCK_CATEG_DHTML') == 1 ? true : false); $id_category = (int)Tools::getValue('id_category'); $id_product = (int)Tools::getValue('id_product'); $this->smarty->assign('blockCategTree', $blockCategTree); So I'm a bit stuck ... Why does he not recognize blockCategTree? Here the only call I actually in the tpl {foreach from=$blockCategTree.children item=child name=blockCategTree} {if $smarty.foreach.blockCategTree.last} As in the default theme. If anyone has a solution, it would be helpful: D Thanks 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