Advertisement:

Author Topic: Cannot logout, loginto admin panel or post in my swedish 1.0.5  (Read 19443 times)

Offline Schade

  • Semi-Newbie
  • *
  • Posts: 68
Cannot logout, loginto admin panel or post in my swedish 1.0.5
« on: September 22, 2005, 12:11:01 PM »
Something happened today with my forum. No one can logout without an error messsage "Verifiering av sessionen misslyckades. Försök att logga ut och in igen, och försök sedan igen." "Verify of the session failed, please log out and back again" I get the same error when I try to login to the admin panel.

When I or someone else tries to post a message or pm the error is:
"Följande fel uppstod när du postade inlägget:
Tiden för din session gick ut medan du skrev inlägget. Var vänlig och försök att skicka meddelandet igen. "
"The time for your session expired while writing the message, please try again"

Tried to search here, but did not find anything. Tried the Repairscript and changed SMFcookie10 to SMFcookie11 as suggested, but that did not help.

Any suggestions what could have happened?

http://kullenssfk.se/forum
« Last Edit: September 22, 2005, 03:00:19 PM by xenovanis »

Offline Oldiesmann

  • Developer
  • SMF Super Hero
  • *
  • Posts: 24,814
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #1 on: September 22, 2005, 12:22:14 PM »
What do you get when you run this query in phpMyAdmin?

Code: [Select]
SELECT value FROM smf_settings WHERE variable = 'databaseSession_enable';
Also, is the folder specified in the "session.save_path" in your phpinfo writable?
Michael Eshom
Webmaster / SMF Lead Developer
oldiesmann@simplemachines.org

Offline Schade

  • Semi-Newbie
  • *
  • Posts: 68
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #2 on: September 22, 2005, 12:29:17 PM »
Quote
SQL-fråga : [Ändra] [Förklara SQL-kod] [Skapa PHP-kod]
SELECT value
FROM smf_settings
WHERE variable = 'databaseSession_enable' LIMIT 0 , 30

Offline Schade

  • Semi-Newbie
  • *
  • Posts: 68
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #3 on: September 22, 2005, 01:02:44 PM »
Regarding "Also, is the folder specified in the "session.save_path" in your phpinfo writable?"
I cant find it. Sorry but I´m a n00b in this matter :)

But nothing have been changed. I made a post this morning, then I went out for a fishing trip, and when I returned I suddenly could not post, logout...
« Last Edit: September 22, 2005, 01:09:36 PM by Schade »

Offline Schade

  • Semi-Newbie
  • *
  • Posts: 68
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #4 on: September 22, 2005, 02:00:52 PM »
Does this help you?

Offline xenovanis

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,988
  • Gender: Female
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #5 on: September 22, 2005, 02:21:18 PM »
Schade, there is a file called repair_settings.php in the download area. Upload it to your forum location and run it from there. If databasedriven sessions are enabled, try to disable it.

What is repair_settings.php?
"Insanity: doing the same thing over and over again and expecting different results."

Offline Schade

  • Semi-Newbie
  • *
  • Posts: 68
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #6 on: September 22, 2005, 02:54:05 PM »
Yes, that worked.

Should I keep it disabled? It says not recommended.

Any idea what could have happened?

Thx for your help.


Offline xenovanis

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,988
  • Gender: Female
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #7 on: September 22, 2005, 03:00:11 PM »
Maybe something changed on your server. Well, if this works and enabling doesn't work, keep it this way even if it's not recommended.
"Insanity: doing the same thing over and over again and expecting different results."

Offline Schade

  • Semi-Newbie
  • *
  • Posts: 68
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #8 on: September 22, 2005, 03:08:48 PM »
Thank you very much again for the help.

Now I´m happy again  ;D

Offline Schade

  • Semi-Newbie
  • *
  • Posts: 68
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #9 on: September 23, 2005, 01:23:01 AM »
Now I can log out, enter the Adminpanel, and post...But:
The Posts does not show?
I can see the last message in the left field "latest message blablabla by blabla
But themessage does not show upp, I cannot se it. Same if I edit or post in an active tread, then it dissaperars.

Errorlog says:
Quote
8: Only variables should be assigned by reference
Fil: /customers/kullenssfk.se/kullenssfk.se/httpd.www/forum/Sources/Subs.php
Rad: 232

Any ideas what could have happened sice the change ni repair_setttings above ?

/Schade

Offline dipankar

  • Semi-Newbie
  • *
  • Posts: 10
  • Gender: Male
  • Live life to the absolute fullest!
    • CyberSansar Forum
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #10 on: September 23, 2005, 04:15:30 AM »
I had the same session problem with my forum and I followed the same process as described above by uploading the repair_settings.php and disabling the database session feature. Now I can easily login into admin control panel but when I post any message, it doesn't display in the forum. I don't know what is the problem now. Please help.
Dipankar Kasaju
www.forum.com.np [nofollow]
www.cybersansar.com [nofollow]

Offline xenovanis

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,988
  • Gender: Female
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #11 on: September 23, 2005, 05:00:55 AM »
Now I can log out, enter the Adminpanel, and post...But:
The Posts does not show?
I can see the last message in the left field "latest message blablabla by blabla
But themessage does not show upp, I cannot se it. Same if I edit or post in an active tread, then it dissaperars.

Errorlog says:
Quote
8: Only variables should be assigned by reference
Fil: /customers/kullenssfk.se/kullenssfk.se/httpd.www/forum/Sources/Subs.php
Rad: 232

Any ideas what could have happened sice the change ni repair_setttings above ?

/Schade

Have you applied the PHP 4.4.0 Compatibility patch?
"Insanity: doing the same thing over and over again and expecting different results."

Offline Schade

  • Semi-Newbie
  • *
  • Posts: 68
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #12 on: September 23, 2005, 09:06:29 AM »
I could not install the package trhu adminpanel, but i I downloaded
"php-4.4.0-compat.tar.gz " and isntalled it manually then it worked.
All post from today, I had to click in the rigt frame (i saw that it was posted in) and reply in it, then it came back in the right place again.

Should I still download this?
Quote
Find the following in Sources/Subs.php:
= &mysql_query
And remove the & (ampersand.) 
Tried to find that line but the only thing I found was:
Quote
   $ret = mysql_query($db_string, $db_connection);
   if ($ret === false)
      $ret = db_error($db_string, $file, $line);

Or as the forum seems to work as it should, leave averything as it is until next time I find any problem?

This is what i can find out from b-one.net logging into the database:
Quote
Välkommen till phpMyAdmin 2.5.7-pl1
MySQL 4.0.24_Debian-10-log körs på localhost

Again, thank you very much for the help.

Offline xenovanis

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,988
  • Gender: Female
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #13 on: September 23, 2005, 09:12:50 AM »
If you applied the changes manually there is no need to upload the file. If it works, leave it like this.
"Insanity: doing the same thing over and over again and expecting different results."

Offline David_Q

  • Newbie
  • *
  • Posts: 4
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #14 on: September 23, 2005, 10:05:44 AM »
I have the exakt same problem, i cant upgrade to PHP 4.4.0 via adminpanel. Im very new to this but I cant seem to find the file mentioned above to manually do it. Help me find the file ::)

ps i have upgraded to SMF 1.0.5

Offline xenovanis

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,988
  • Gender: Female
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #15 on: September 23, 2005, 10:43:19 AM »
In the file /Sources/Subs.php find

Code: [Select]
= &mysql_query

replace with
Code: [Select]
= mysql_query

How do I modify files?
"Insanity: doing the same thing over and over again and expecting different results."

Offline David_Q

  • Newbie
  • *
  • Posts: 4
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #16 on: September 29, 2005, 01:12:00 AM »
I have looked in the subs.php but it already looks like it should. (= mysql_query). My forum works, thats not the problem but when I try to upgrade via the adminpanel to 4.4.0 it dosent work, "paket corrupt". Im a little disturbed, do I need to upgrade to 4.4.o or what?

Offline xenovanis

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,988
  • Gender: Female
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #17 on: September 29, 2005, 05:03:37 AM »
No, you don't need to.
"Insanity: doing the same thing over and over again and expecting different results."

Offline David_Q

  • Newbie
  • *
  • Posts: 4
Re: Cannot logout, loginto admin panel or post in my swedish 1.0.5
« Reply #18 on: September 29, 2005, 11:07:23 AM »
Ok,  and thanks for an incredible forum and outstanding help guys!