21
jdseymour
Re: Moving a site, keeps logging out

Just looked over the last page here, so sorry if already mentioned. One of the biggest problem causing things when moving a site is also moving the cached files in the xoops_data, templates_c and cache folders. Make sure you clear all these out either when moving or right after transferring files to the new site.

22
ccairns
Re: Moving a site, keeps logging out
  • 2009/12/2 16:34

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


Bleedin hackers, more of them today. Only looking at todays logs I've had another 3 separate IP addresses trying to hack me 3 different ways. Fortunately none of them got anywhere, but still worrying! Protector isn't installed so that's not going to tell us anything.

I turned off Multimenu (had to do it from PHPMyAdmin again) and no change. The line which gets flagged up is something trivial to do with the size of an image in the menu.

I'm running out of ideas - I'm tempted to back up, reinstate a holding page and do a fresh install in the background to see if it works.

23
trabis
Re: Moving a site, keeps logging out
  • 2009/12/2 19:28

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Can you double check session table again.
- Analyze it, optimize it, repair it.
- Delete all entries, try to login, check if the table was updated.

24
ccairns
Re: Moving a site, keeps logging out
  • 2009/12/2 22:33

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


All operations returned OK.

The session table is being updated. sess_data is empty though - is that normal? The other fields have data in them that looks OK.

25
ccairns
Re: Moving a site, keeps logging out
  • 2009/12/2 22:38

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


Scratch that, it does contain data before logging out again. It contains this, if it's any help:

('f449b90785f21888548249a55defcc2e', 1259793410, '195.137.104.139', 'xoopsUserId|s:1:"1";xoopsUserGroups|a:3:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"4";}xoopsUserTheme|s:10:"eesb-theme";');

26
trabis
Re: Moving a site, keeps logging out
  • 2009/12/2 22:52

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I'm getting out of clues.

In your mainfile.php, do you have this lines?
define'XOOPS_GROUP_ADMIN''1' );
    
define'XOOPS_GROUP_USERS''2' );
    
define'XOOPS_GROUP_ANONYMOUS''3' );


27
dbman
Re: Moving a site, keeps logging out
  • 2009/12/3 1:04

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


I had a similar issue today after updating a XOOPS site from 2.3.3 to 2.4.2.

Once custom session was turned off I was able to access without a problem.

I had to turn off custom session in the database using:
update xoops_config set conf_value 0 where conf_name 'use_mysession';




28
ghia
Re: Moving a site, keeps logging out
  • 2009/12/3 1:07

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I think you must enable debug for anonymous as well by editing /include/common.php and commenting out
//        error_reporting(0);
//        $xoopsLogger->activated = false;
after
if ( ($level == && empty($xoopsUserIsAdmin)) || ($level == && !$xoopsUser) ) {

This can give information at moment the session is lost.
Following check could be done without logged in.
Select a theme. Click on contact us. The theme stays. Cick on Home or Forum, the theme returns again to the default eesb-theme. At that moment I hope to see a debug error message.
I assume the data in the session table will change also on that moment.

Other thing to try is to edit /kernel/session.php and setting the
var $enableRegenerateId=true;


29
ccairns
Re: Moving a site, keeps logging out
  • 2009/12/3 20:10

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


Trabis: yes, all three lines are in mainfile.php.

dbman: it's already set to 0, I tried flipping it to see if it made a difference and it didn't.

ghia: no more messages output I'm afraid. The data in the session table changes (sess_data is blanked) but nothing else does. Tried changing the RegenerateId setting and nothing changed either.

I've tried a clean 2.4.1 install on a subdomain and it didn't exhibit any problems so it's nothing to do with the hosting itself. Think I'm going to call time on this one - I need something vaguely polished up by Sunday so I'm going to start from scratch. Bah.

Thanks for all your efforts guys, I would have liked to work out what the hell was going on!

30
ghia
Re: Moving a site, keeps logging out
  • 2009/12/4 1:20

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
I've tried a clean 2.4.1 install on a subdomain and it didn't exhibit any problems so it's nothing to do with the hosting itself.
That was with only the standard modules and without the other modules?

Login

Who's Online

280 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 280


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits