Undefined Property errors in Zone Config screen

  • Posts: 20
  • Thank you received: 0
13 years 5 months ago #18877

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: 13 years 5 months ago by onisama.

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

  • Posts: 135
  • Thank you received: 0
13 years 5 months ago #18882

hi onisama i have the same error

my error is this

Last edit: 13 years 5 months ago by chaka.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 5 months ago #18883

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: 13 years 5 months ago by nicolas.

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

  • Posts: 135
  • Thank you received: 0
13 years 5 months ago #18886

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: 13 years 5 months ago by chaka.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 5 months ago #18890

Sorry, I forgot the line in my message. I've updated it.

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

  • Posts: 20
  • Thank you received: 0
13 years 5 months ago #18891

Thank you.

Shannon

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

Time to create page: 0.072 seconds
Powered by Kunena Forum