OS Property support center

PHP Version and energy+climate tab

  • Dieter
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 2 months ago #121512 by Dieter
PHP Version and energy+climate tab was created by Dieter
Hi Dam,

after updating my PHP version from 7.0 to 7.2 the property detail site doesn't work/open any more, as long as the energy + climate tab is activated.
Please see the attached error code.
How can I fix this?
I still use os-property version 3.12.9

Thanks
Dieter
Attachments:

Please Log in or Create an account to join the conversation.

More
6 years 2 months ago #121513 by Mr. Dam
Replied by Mr. Dam on topic PHP Version and energy+climate tab
Hi Dieter,
The issue has cause from your duplicated theme. Actually, with core themes of OS Property, we already updated source code to solve this kind of problem, but with duplicated themes, we can't override source code and those themes will have error when you upgrade PHP versions. To solve this kind of issue, please open file:
root -> components -> com_osproperty -> templates -> your_duplicated_theme -> details.html.tpl.php
Find function: "drawGraph" and change to:
echo HelperOspropertyCommon::drawGraph($row->energy, $row->climate,$row->e_class,$row->c_class);
Thanks
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan