back to the admin homepage after adding item
sometimes when adding or updating a new item, and I click on 'add' or 'update', I get redirected to the admin homepage instead of the category in which I was adding/updating the item, and the item is not saved,
what is going wrong and how can I fix this ?
regards,
Fons
Re: back to the admin homepage after adding item
Sounds symptomatic of using mixed code from old addons which don't have securityTokens set in their forms.
Re: back to the admin homepage after adding item
The redirect to the admin homepage can be caused by a missing securityToken in the form which had been POSTed as described here:
http://www.zen-cart.com/showthread.p...-Contributions
However, there's a second reason for this to be happening... One of my users kept complaining about it and it took me ages to find out what it was. He was simply using the admin from a few different browser tabs at once. If you open a (post) form in one browser tab and then browse the admin pages from a second tab then the new security code can be generated on the server from the new tab and when you submit the form in the original tab it will fail the validation (maybe you need to logout/timeout and log back in in the second tab to achieve the error).
Hopefully it will save some time for someone with creative admin-users. It took me ages to find out :-/