Jump to content

Voucher system is broken.


Recommended Posts

Hello everybody! I'm stuck from a whle with this anning problem. When I click on the menu: Modules/Vouchers I get this message:

 

Manca o non è valido admindiscounts which means admindiscounts is missing or invalid.

 

I've found another user experiencing the same issue:

 

http://www.prestashop.com/forums/topic/197478-problem-after-upgrade-controler-admindiscount-is-missing/

 

but his soluton is not working. First of all I've got a different url:

 

His one: index.php?tab=AdminDiscounts&adddiscount

 

Mine: index.php?controller=AdminDiscounts&token=d19ccc1202fe6fe27de7be3f33d3e3e6

 

Anyway, If I try to change index.php?controller=AdminDiscounts&token=d19ccc1202fe6fe27de7be3f33d3e3e6 with index.php?controller=AdminCartRules&addcart_rule, I get an error page:

 

Invalid protection token.

 

I click on "I accept the risk, show me the page" and the next page says:

 

2 errors

You have not sufficient rights to add

Access denied

 

Obviously I'm the superadmin, and I'm logged in as him.

 

Thank you.

Link to comment
Share on other sites

No idea at all? Is this such a weird problem?

 

Anybody knows which files are involved in the voucher system? Are there any mySQL tables which I can try to clean out? If somebody can give me an input I can start to look at something, but at this point I don't know what to do... :(

Link to comment
Share on other sites

I've fixed it! I'll write it down for others and for future reference.

 

Despite my first idea, the problem was in the database: I had a wrong key in ps_tab

 

(138, 120, 'AdminDiscounts', 'lofcoupons', 5, 1),

 

Which was left there from the old module LOF Coupons before the upgraede to PS 1.5.

 

Once found that line (first two numbers can be different) I've changed it with this:

 

(138, 117, 'AdminCartRules', NULL, 0, 1),

 

Now everything works fine.

 

Cheers

  • Like 2
Link to comment
Share on other sites

×
×
  • Create New...