Page 1 of 1

"You do not have permission to view this page" after restore

PostPosted: Wed Jul 01, 2015 12:42 pm
by DarknessBBB
Hello everyone!
I'm happily using Vicidial in its Vicibox flavour in these last years and not a single issues has risen. But now I'm facing a strange issue. After a catastrophic failure (both database and backups destroyed), I've managed to restore a very old sql backup. Obviously the schema version of this database is older than the original one, and the result of this is that in the admin page every single page is with the phrase "You do not have permission to view this page". Usually, when this happens, I upgrade the whole vicidial, using the sql upgrade commands in the "extra" directory in the svn trunk, and executing the install.pl perl script (deleting the agc and vicidial web folders first).
Sadly even now my admin account is recognized, but I can do nothing via the web interface. Via phpMyAdmin I've checked the user lever (9) and all the admin options set to "1".
Any hint?
Cheers from Italy!

Re: "You do not have permission to view this page" after res

PostPosted: Thu Jul 02, 2015 9:27 pm
by Acidshock
Just ran into this one myself. You most likely missed one of the DB upgrades in the UPGRADE manual. I did this myself. I did all the upgrades I thought I had to do. Turned out I needed to run the same upgrade for the same version because there was a slight DB change with one of the SVN releases. Make sure to rerun the upgrades after that so if you had 2.6, do 2.4-2.6 upgrade, then 2.7 to 2.8, and so on.

Re: "You do not have permission to view this page" after res

PostPosted: Fri Jul 03, 2015 8:17 pm
by williamconley
Check your admin group for the user. Don't use logic, check against a known good value. Consider copying the Group and User from a good system (or the create .sql file from extras for your version) just for fun.

If you don't have a virtual "Play" copy of Vicidial upon which to run a development scenario and test out possible customizations (and even perhaps the occasional test restore ... storage of the backup set ...), this would be a good time to create one.