Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Bug tracker «  

Always logged out

avatarBoen, Jan -- on June 6 2006
I get thrown out of my YACS instance (TypeX)
I login as ussual but when I click control panel I get transferred to the control panel and the system logs me out. This means I can't perform any maintenance or see members only pages. Any idea what has gone wrong (YACS 6.4 on PHP 4.3.11 with MySQL 4.1.19 standard)
GnapZ
from Caribbean
2970 posts

on June 6 2006


Hello,

We have this problem with the new 6.5 version and i made a patch who works for me so if you want to try it, click [file=143].

It use a different variable of PHP for the Url_to_root so make a backup of your shared/global.php script (or rename it) and replace it with this patch (by FTP).

Is it does not work, replace your backup and wait for Bernard who will be back next week.

Please, tell me back if it works or not.
Jan B
avatar
85 posts

inspired from GnapZ on June 7 2006


GnapZ: I replaced the existing global.php file with the one you posted but the problem is still the same. Is there any other configuration file that contains references/links to the authentication "system". My problems have started when I wanted to move my YACS hoime folder to another location on my server. I simply copied the whole YACS instance to the right folder and then logged in and wanted to change the "system settings" page. From that point everything went wrong. I then manually edited the parameters.include.php file. This fixed everything except for the authentication issue that remains.
GnapZ
from Caribbean
2970 posts

inspired from Jan B on June 7 2006


Jan B : There is a bug in the 6.4 with the system settings: You have to type twice your account settings for the general database and the user table settings. If you changed somthing in these settings without filling the user table fields each time, your yacs crashes.

Open your FTP and go to the users folder. download parameters.include.php on your hard drive and put the good parameters manualy. Then upload it and it should work.

Another way is to replace this file by its backup (parameters.include.php.bak) who should contain the old parameters. Then you can access to the settings again and fill all the fields.

For loggin problems, did you try to remove your cookie of this domain in your browser ? Another idea: open your database (with PhpMyAdmin ?) and add an associate user wihtout password.

Thanks for your feed-back. (Sorry for my poor English)
Jan B
avatar
85 posts

inspired from GnapZ on June 7 2006


GnapZ: I have done all you suggest. The only thing that remain is the associate without password. All else I already tried earlier...
GnapZ
from Caribbean
2970 posts

inspired from Jan B on June 7 2006


Jan B : I tried the associate without password and it doesn't work for me. So you still have authentification problems ?

To put a password in the database, you have to use md5 encryption.

I had different access by calling my Yacs by the domain name as http://domain.com and http://www.domain.com where there is only one that i could log in.

You can login a username as your nick_name or your e-mail address.

I hope we will find something who works otherwise we have to wait for Bernard.
Jan B
avatar
85 posts

inspired from GnapZ on June 8 2006


GnapZ: I'm starting to become a little desperate. Is there a way to migrate data from one YACS database to another? If yes I will try to migrate the current database to another YACS instance that has just been created from scratch.

My problem is that before 13 June the site has to be fully up and running again.
GnapZ
from Caribbean
2970 posts

inspired from Jan B on June 8 2006


Jan B : In first, you can export (from PhpMyAdmin) all you database as a .slq file on your local hard drive. Then you remove the database and create a new one. After it, you go to SQL queries to import your sql file in the new database.

The other way is that you can select the old database as this with your new Yacs installation.

If you want only specific tables but not all, you just have to select them to export in a .sql file, go to the new database, remove theses tables and import the local file.

Tell-me if i can try something on your server (for tests) or if you need more informations.
GnapZ
from Caribbean
2970 posts

inspired from Jan B on June 11 2006


Jan B : Hello, we are the 11th and i have no news about you. Did you fix your problem ? I had someone who gave me his account codes to try his website with the bug. I worked on it all the week but i found nothing.

At the end, i can see that some host disconnect quickly when you use file transfert (FTP or update) because they use a short timeout of inactivity. Some other host does not and Yacs works perfect on them (like mine "Textdrive" and "OVH").

The other way for you is to make a manual upgrade (How to manually upgrade a YACS server?). I made a 6.5 upgrade successfull for the person who gave me his access. If you want (because it is urgent now) i can do it for you, all i need is your yacs web address, an associate account and an FTP account.

If you agree, change your password to give me temporary passwords and send me all this by mail (see my profile).

Tell me if you want a 6.5 upgrade or just fix the 6.4 access.

Best regards.
Bernard
avatar
from nearby-an-airport
Associate, 6796 posts

inspired from Jan B on June 12 2006


Jan B: Please contact me by tomorrow for additional help you may need on this topic.
Jan B
avatar
85 posts

inspired from Bernard on June 14 2006


Bernard: Bernard I'm currently in the US and will call you during one of the breaks.

Jan
Bernard
avatar
from nearby-an-airport
Associate, 6796 posts

inspired from Jan B on June 14 2006


Jan B: After a number of tests, I have found that the bug was coming from a standard call of some PHP function. This was supposed to add on security, and it was developed some months ago. I still don't know why this has become an issue now, except maybe some upgrade of the PHP runtime by your ISP.

Anyway the infamous PHP call has been removed from the login script, and your sessions should be preserved over time now.

Also, the two ARINC and SITA images have been changed to GIF, with a transparent background, to improve the visual rendering.

Lastly, cache has been activated to improve response times.

Rate this page
Posted by Jan B on June 6 2006, commented by Bernard on June 6 2006, (popular)