You must be logged in to access this feature !

Okay i just tried the beta version and everything was fine until a point when suddenly this came up

“You must be logged in to access this feature !”

and i cannot login anymore. I changed some files but only in the design, not in the code so something is wrong. My first step to debug that was to search in all files for the msg

“You must be logged in to access this feature !” and i found about 10 files. After that, I put a number after every of those messages to identify on which position he shits himself. I found out that it was Profile.php

class Profile extends CodonModule
{

public function index()
{
	if(!Auth::LoggedIn())
	{
		$this->set('message', 'You must be logged in to access this feature! 3');
		$this->render('core_error.tpl');
		return;
	}

(As you can see there, I added the number 3 on my debug list). So now i thought that it might be, because i imported the database from my old phpVMS version and maybe the password coding is different so i reimported the table phpvms_pilots from another instance of phpvms beta but still i couldnt log in. I also created a new user and confirmed him via phpmyadmin but same problem. Whats wrong here? 

Wbr

Tebin

Oh damn, one minute later, i could fix it. Here was my problem:

while importing my old database, it somehow dropped the table phpvms_sessions so i recreated it and now everything works.

Just a question. Is it possible to make a “Always stay logged in” Button?

hello sir

in the beta the " always stay logged in" button in available look at the default skins.

gr joeri

ah jea got it already awesome.. this script becomes better and better

Check the changelog, the changed templates are listed in there

Also, seems like you’re upgrading your customizations. Can you let me know what you had difficulty with, so I can just make a note of it for release notes, etc?

Thanks buddy

hi nabeel,

yea i am converting everything to the new versions. from now on, it looks great and almost everything works. normally i just have to change some links (because format looks different) when i am done, i will write all changes i made to get old systems running. 

Yes the links format changed (well, the format didn’t but it’s easier now to just call url(‘/path’); instead of the entire SITE_ROOT etc

Problem FIXED on www.jezvirtual.com

Just open databse, and run this command

REPAIR TABLE phpvms_sessions;