New Zenner
- Join Date:
- Oct 2010
- Location:
- Glasgow, Scotland
- Posts:
- 29
- Plugin Contributions:
- 0
Admin not showing Customers > Worldpay Payments menu entry, and denying page access.
Hi all,
I have been inching my way uphill with Worldpay integration for the last few days/weeks. Nearly there and this is one of the remaining problems:
In various locations, including here http://www.zen-cart.com/showthread.php?112021-WorldPay-Module-version-2-0-Support-thread, I have read that there should be a new page accessible from the Customers menu, namely Customers > WorldPayments or Customers > Worldpay Payments. I have installed the latest version of the Worldpay addon (v2.09), but the new entry has never appeared in my Customers submenu.
After a hunt through the code, I have established, using print_r(), that the correct details for this page are being added to the $za_contents array in worldpay_response_customers_dhtml.php, but just not being displayed in the submenu.
I tried to view the Worldpay Payments page directly, using the url in the array (http://[myshopdomain]/[admin]/worldpay_response.php), but I was redirected to the following URL:
http://[myshopdomain]/[admin]/denied.php
and presented with error message:
Sorry, your security clearance does not allow you to access this resource.
Please contact your site administrator if you believe this to be incorrect.
Sorry for any inconvenience.
I see the $za_contents array is sent to zen_draw_admin_box() in customers_dhtml.php. In that function, the page link is put through page_allowed(). It seems to me that this function is deciding that I am not allowed to access the page.
I am logged in as the main admin for the site.
Anyone have any idea what is causing this problem and how I can fix it?
Thanks.