Jump to content
thirty bees forum
  • 0

problems after updating to TB 1.4


Question

Posted

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()

10 answers to this question

Recommended Posts

  • 0
Posted

Thanks, datakick,

I am bit lost. I do not know where I should/can start debugging.

Best wishes

Josef

  • 0
Posted

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.

  • 0
Posted

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

  • 0
Posted

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

  • 0
Posted
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?

  • 0
Posted
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?

 

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...