jn1 Posted January 17 Share Posted January 17 Hello I will get the following errors after I have update to 1.4 unsing php 8.0. any ideas where I should start to find the problems. Best wishes Josef Error Attempt to modify property "value" on null when rendering smarty template /mnt/web306/e3/87/52118087/htdocs/ptsv/presta1_6/thirtybees/themes/ptsvshop-template/modules/blockcart/blockcart.tpl vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php:123 source content_63c68dcfd19537_45880373() 2. vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php:114 source Smarty_Template_Resource_Base->getRenderedTemplateCode() 3. vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:216 source Smarty_Template_Compiled->render() 4. vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:238 source Smarty_Internal_Template->render() 5. vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php:116 source Smarty_Internal_TemplateBase->_execute() 6. classes/SmartyCustom.php:555 source Smarty_Internal_TemplateBase->fetch() 7. classes/SmartyCustom.php:530 source Smarty_Custom_Template->fetchWithRetries() 8. classes/module/Module.php:3170 source Smarty_Custom_Template->fetch() 9. modules/blockcart/blockcart.php:251 source ModuleCore->display() 10. modules/blockcart/blockcart.php:488 source BlockCart->hookRightColumn() 11. classes/Hook.php:769 source BlockCart->hookTop() 12. classes/Hook.php:473 source HookCore::coreCallHook() 13. classes/Hook.php:288 source HookCore::execWithoutCache() 14. classes/controller/FrontController.php:346 source HookCore::exec() 15. controllers/front/IndexController.php:53 source FrontControllerCore->initContent() Link to comment Share on other sites More sharing options...
0 datakick Posted January 17 Share Posted January 17 Your theme contains override for blockcart.tpl template. You will have to update it to be compatible with PHP8. Look here for inspiration: https://github.com/thirtybees/niara/commit/1f9629157606620748b3b5e769d621d9ccdfc751 Link to comment Share on other sites More sharing options...
0 jn1 Posted January 17 Author Share Posted January 17 Thanks, datakick, I am bit lost. I do not know where I should/can start debugging. Best wishes Josef Link to comment Share on other sites More sharing options...
0 datakick Posted January 17 Share Posted January 17 Ftp to your server, edit file /themes/ptsvshop-template/modules/blockcart/dropdown.tpl and look for line {assign var='free_ship' value=count($cart->getDeliveryAddressesWithoutCarriers(true, $errors))} or something similar to it Change it to look like this: {assign var='free_ship' value=count($cart->getDeliveryAddressesWithoutCarriers(true))} What has to be changed is highlighted in the link I posted above. Link to comment Share on other sites More sharing options...
0 jn1 Posted January 18 Author Share Posted January 18 you are a genius. It worked. Thank you very much. Overall, it seems that the upgrade worked quite good. I just have one problem with an external module, which is for exporting orders. I would be glad to hear about good and free alternatives 😉 Best wishes Josef Link to comment Share on other sites More sharing options...
0 Oncle Posted May 1 Share Posted May 1 Hello, I have done what is said: Change it to look like this: {assign var='free_ship' value=count($cart->getDeliveryAddressesWithoutCarriers(true))} But after a while I got this other error: Attempt to modify property "value" on null when rendering smarty template /themes/community-theme-default/./breadcrumb.tpl Any suggestions? Thanks Link to comment Share on other sites More sharing options...
0 312erik123 Posted June 5 Share Posted June 5 On 5/1/2023 at 7:42 PM, Oncle said: Hello, I have done what is said: Change it to look like this: {assign var='free_ship' value=count($cart->getDeliveryAddressesWithoutCarriers(true))} But after a while I got this other error: Attempt to modify property "value" on null when rendering smarty template /themes/community-theme-default/./breadcrumb.tpl Any suggestions? Thanks Have the same issue - did you manage to solve it? Link to comment Share on other sites More sharing options...
0 e-com Posted June 6 Share Posted June 6 15 hours ago, 312erik123 said: Have the same issue - did you manage to solve it? Copy code of breadcrumb.tpl into your theme: https://github.com/thirtybees/community-theme-default/blob/1.1.x/breadcrumb.tpl 1 Link to comment Share on other sites More sharing options...
0 312erik123 Posted June 6 Share Posted June 6 17 hours ago, e-com said: Copy code of breadcrumb.tpl into your theme: https://github.com/thirtybees/community-theme-default/blob/1.1.x/breadcrumb.tpl Thanks! Works! Link to comment Share on other sites More sharing options...
0 30knees Posted June 7 Share Posted June 7 On 1/18/2023 at 6:40 AM, jn1 said: I just have one problem with an external module, which is for exporting orders. I would be glad to hear about good and free alternatives 😉 Might this help? Link to comment Share on other sites More sharing options...
0 Oncle Posted June 9 Share Posted June 9 On 6/6/2023 at 5:50 AM, e-com said: Copy code of breadcrumb.tpl into your theme: https://github.com/thirtybees/community-theme-default/blob/1.1.x/breadcrumb.tpl Thanks! It works by copying the code. Link to comment Share on other sites More sharing options...
Question
jn1
Hello
I will get the following errors after I have update to 1.4 unsing php 8.0.
any ideas where I should start to find the problems.
Best wishes
Josef
Attempt to modify property "value" on null
Link to comment
Share on other sites
10 answers to this question
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