Jump to content
thirty bees forum
  • 0

Niara theme error: Attempt to modify property "value" on null


30knees

Question

I'd like to test the Niara theme. I installed it but am getting this error when I open the website:

Error
Attempt to modify property "value" on null
when rendering smarty template /themes/niara/modules/blockcart/includes/dropdown.tpl
Source file: /themes/niara/modules/blockcart/includes/dropdown.tpl

Does the Niara theme work with tb 1.4 and PHP 8.1? I thought Niara is the default theme now.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
1 hour ago, e-com said:

You have very old theme templates.
Download the current ones from github: https://github.com/thirtybees/niara

Thank you! I wrongly thought it gets updated together with the store. Installing the current ones fixed the problem but led to a new one:

TypeError
Unsupported operand types: string - string
when rendering smarty template /themes/niara/product.tpl

Is this related to PHP 8 by any chance? My lay-person's internet search leads me to think this may be the case.

Link to comment
Share on other sites

  • 0
3 hours ago, 30knees said:

TypeError
Unsupported operand types: string - string
when rendering smarty template /themes/niara/product.tpl

Is this related to PHP 8 by any chance? My lay-person's internet search leads me to think this may be the case.

That's right, it's related to PHP 8.
Somewhere in code is mathematical operation of subtraction on strings.
PHP 7 ignores it, but PHP 8 already generates an error.
You need to check exactly in error log where the string subtraction occurs.

 

  • Thanks 1
Link to comment
Share on other sites

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