Skip to main content

Undefined Property errors in Zone Config screen

More
15 years 3 months ago - 15 years 3 months ago #18877 by onisama
I just updated to 1.5.1 and am getting errors on each zone in Hikashop > Configuration > Zones.

The errors all pretty much read as such:

Notice: Undefined property: ZoneViewZone::$manage in /home/onisama/public_html/chris1/administrator/components/com_hikashop/views/zone/tmpl/listing.php on line 82
Afghanistan
Notice: Undefined property: ZoneViewZone::$manage in /home/onisama/public_html/chris1/administrator/components/com_hikashop/views/zone/tmpl/listing.php on line 86

There are different line numbers, but all are pretty much targeting lines 82, 86, 91, 95 and 109.

Is it just me, or have others experienced this?

Thanks,
Shannon
Last edit: 15 years 3 months ago by onisama.

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

More
15 years 3 months ago - 15 years 3 months ago #18882 by chaka
hi onisama i have the same error

my error is this

Last edit: 15 years 3 months ago by chaka.

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

More
15 years 3 months ago - 15 years 3 months ago #18883 by nicolas
Indeed.
Please add the code:
$config =& hikashop::config();
$manage = hikashop::isAllowed($config->get('acl_zone_manage','all'));
$this->assignRef('manage',$manage);
in the file administrator/components/com_hikashop/views/zone/view.html.php just after the line
function listing(){
to fix the problem.

That problem only happens with the Business edition, and only if you have the errors_display option of your PHP activated. On most production websites, that option is deactivated for security reasons in order to reduce information leaks to hackers. Also, these messages do not cause any problem while using HikaShop. That's probably why no one reported it yet.

It will be fixed in next version.
Last edit: 15 years 3 months ago by nicolas.

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

More
15 years 3 months ago - 15 years 3 months ago #18886 by chaka
hey nicolas can you give me the file complete with the new code . i dont know where put it :( , there are much code in teh file :(

i try but i recive a error expect " } " or " ; " i dont know nothing about programing php
Last edit: 15 years 3 months ago by chaka.

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

More
15 years 3 months ago #18890 by nicolas
Sorry, I forgot the line in my message. I've updated it.

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

More
15 years 3 months ago #18891 by onisama
Thank you.

Shannon

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

Time to create page: 0.172 seconds
Powered by Kunena Forum