← Back to Ultimate Website Builder - CREATOR Theme Bundle Support
If I add a pricing-block and set it to "monthly" only, I get this error:
An exception has been thrown during the rendering of a template ("A non-numeric value encountered").
/var/www/example.org/example/public/themes/ketikidis-creator/partials/blocks/pricing2.htm line 29
This is the line:
{% set profit = (fields.section_pricing2_mprice * 12) - fields.section_pricing2_yprice %}
This can only be solved by selecting "Monthly & Yearly" and adding a numeric value to the yearly value.
Last updated
roman30845 said:
If I add a pricing-block and set it to "monthly" only, I get this error:
An exception has been thrown during the rendering of a template ("A non-numeric value encountered"). /var/www/example.org/example/public/themes/ketikidis-creator/partials/blocks/pricing2.htm line 29
This is the line:
{% set profit = (fields.section_pricing2_mprice * 12) - fields.section_pricing2_yprice %}
This can only be solved by selecting "Monthly & Yearly" and adding a numeric value to the yearly value.
Hello Roman!
I just tested all pricing blocks and all working just fine with Monthly, Yearly and Both options (with switcher). Are you sure that you have entered a numeric value on monthly price field?
Last updated
Hi Charis,
I can reproduce this:
- Add a new pricing2 block
- Choose "Pricing Type" => "Monthly"
- Add a new pricing item
- Enter
5
for Monthly Price - Save
- Enter site
You can only solve this issue by switching "Pricing Type" => "Monthly" to "Switch between monthly & yearly", add a yearly value, save and switch back to "Monthly"
roman30845 said:
Hi Charis,
I can reproduce this:
- Add a new pricing2 block
- Choose "Pricing Type" => "Monthly"
- Add a new pricing item
- Enter
5
for Monthly Price- Save
- Enter site
You can only solve this issue by switching "Pricing Type" => "Monthly" to "Switch between monthly & yearly", add a yearly value, save and switch back to "Monthly"
Hello Roman!
Yes, I confirm this and managed to find the issue, so I will update theme in a minutes.
Charis said:
roman30845 said:
Hi Charis,
I can reproduce this:
- Add a new pricing2 block
- Choose "Pricing Type" => "Monthly"
- Add a new pricing item
- Enter
5
for Monthly Price- Save
- Enter site
You can only solve this issue by switching "Pricing Type" => "Monthly" to "Switch between monthly & yearly", add a yearly value, save and switch back to "Monthly"
Hello Roman!
Yes, I confirm this and managed to find the issue, so I will update theme in a minutes.
Great. As I made some changes to the theme, would you please tell me, which files have been changed?
roman30845 said:
Hi Charis,
I can reproduce this:
- Add a new pricing2 block
- Choose "Pricing Type" => "Monthly"
- Add a new pricing item
- Enter
5
for Monthly Price- Save
- Enter site
You can only solve this issue by switching "Pricing Type" => "Monthly" to "Switch between monthly & yearly", add a yearly value, save and switch back to "Monthly"
Hello Roman!
Just update your theme with latest version v.1.0.2.
keep in mind that because of the way Οctobercms theme upgrade work, the existing pages in the theme will be replaced by the original ones that came with the installation. It's a good idea to get a backup of the work you've done before upgrading.
So did you only change
/var/www/example.org/example/public/themes/ketikidis-creator/partials/blocks/pricingXY.htm
? I think the OctoberCMS-theme-upgrades are not very cool and I don't want to roll back everything I just created.
roman30845 said:
So did you only change
/var/www/example.org/example/public/themes/ketikidis-creator/partials/blocks/pricingXY.htm
? I think the OctoberCMS-theme-upgrades are not very cool and I don't want to roll back everything I just created.
Ok. You can download theme on other project and just replace 3 pricing .htm blocks. Is that helpful?
roman30845 said:
So did you only change
/var/www/example.org/example/public/themes/ketikidis-creator/partials/blocks/pricingXY.htm
? I think the OctoberCMS-theme-upgrades are not very cool and I don't want to roll back everything I just created.
If the solution to replace 3 pricing blocks from a new project is not helpful i can explain the fix. Its easy after all.
roman30845 said:
Okay, I replaced the files and it works fine. Thanks!
I'm glad the problem solved and thank you for pointing it out.
1-11 of 11