Jump to content

You must be logged in to access this feature !


Recommended Posts

Posted

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

Posted

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? :D

  • Administrators
Posted

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

Posted

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.  ;)

  • Administrators
Posted

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

  • 6 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...