1
ccairns
Re: Moving a site, keeps logging out
  • 2009/12/4 14:02

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


I added in smartsection/smartobject just to have something to test. Given that we ruled out multimenu by turning it off, and there are pages which log out with just multimenu and smartsection active, it seems unlikely to be a dodgy module unless I'm misunderstanding how some of them work (or forgetting which ones are active where!). We'll see as I add them in anyway, I'm going to get on with a new version tonight.



2
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!



3
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";');



4
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.



5
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.



6
ccairns
Re: Moving a site, keeps logging out
  • 2009/12/1 20:04

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


I agree, it's all very weird. The only errors in the server logs are people trying to hack my website!! Ack. As for protector logs - where are they stored? Tbh I can't remember if it's even installed. Looks like it's first thing to do when everything's sorted though.

Debug mode is on in theory. You can only see messages when you're logged in (don't know why) so I can only offer the ones you see on the home page when you have your one page of login. Only these:

Warning: MyTextSanitizer::makeTareaData4Show is deprecated in file /class/module.textsanitizer.php line 851 (loads of this one)
Notice: Undefined offset: 1 in file /modules/multimenu/blocks/include/item.php line 73 (a few of these)

neither of which seem particularly relevant.

Queries I'm less confident with - see if you can spot anything dodgy:

0.000186 SET SQL_BIG_SELECTS 1
0.000419 
SELECT FROM config WHERE (conf_modid '0' AND conf_catid '1'ORDER BY conf_order ASC
0.000424 
SELECT sess_datasess_ip FROM session WHERE sess_id 'f449b90785f21888548249a55defcc2e'
0.000617 SELECT FROM users WHERE uid '1'
0.000181 SELECT FROM modules WHERE dirname 'protector'
0.000308 SELECT FROM config WHERE (conf_modid '0' AND conf_catid '3'ORDER BY conf_order ASC
0.002120 
SELECT DISTINCT gperm_itemid FROM group_permission WHERE gperm_name 'block_read' AND gperm_modid AND gperm_groupid IN (1,2,4)
0.002392 SELECT b.* FROM newblocks bblock_module_link m WHERE m.block_id=b.bid AND b.isactive=AND b.visible=AND m.module_id IN (0,-1) AND b.bid IN (1,2,3,15,4,14,5,13,6,17,7,12,8,38,9,37,10,36,11,18,16,35,39,40,41,42,43,47,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,84,100,101,102,103,104,69,71,72,73,74,75,76,77,78,83,79,80,81,82,85,86,87,88,89,90ORDER BY b.weightm.block_id
0.000211 
SELECT FROM modules WHERE dirname 'extgallery'
0.001118 SELECT FROM group_permission WHERE (gperm_name 'public_access' AND gperm_modid '12' AND (gperm_groupid '1' OR gperm_groupid '2' OR gperm_groupid '4'))
0.000790 SELECT FROM extgallery_publicphoto WHERE (cat_id IN (8,14,13,12,11,10,9,7,4,3,1,6,15,16,17,18) AND cat_id IN (7)) ORDER BY photo_date DESC LIMIT 01
0.000192 
SELECT FROM smiles
0.000210 
SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (tpl_tplset 'eesb-theme' AND tpl_file 'extgallery_block_last.html'ORDER BY tpl_refid (lotsa these)
0.001925 SELECT image_dir FROM multimenu_menu WHERE status>=AND catid=AND ( title='' OR groups LIKE '%1%' OR groups LIKE '%2%' OR groups LIKE '%4%' )
0.000200 SELECT FROM modules WHERE dirname 'multimenu'
0.000150 SELECT FROM config WHERE (conf_modid '23'ORDER BY conf_order ASC
0.001669 
SELECT FROM multimenu_link WHERE catid=AND status>AND ( title='' OR groups LIKE '%1%' OR groups LIKE '%2%' OR groups LIKE '%4%' ORDER BY weight ASC
0.000205 
SELECT FROM modules WHERE dirname 'extcal'
0.000201 SELECT FROM config WHERE (conf_modid '25' AND conf_catid '0'ORDER BY conf_order ASC
0.000932 
SELECT FROM group_permission WHERE (gperm_name 'extcal_cat_view' AND gperm_modid '25' AND (gperm_groupid '1' OR gperm_groupid '2' OR gperm_groupid '4'))
0.000596 SELECT FROM extcal_event WHERE (((event_end >= '1259694454' AND event_isrecur '0') OR (event_recur_end >= '1259694454' AND event_isrecur '1')) AND event_approved '1' AND cat_id IN (1) AND cat_id IN (3,2,1)) ORDER BY event_start ASC LIMIT 010
0.000227 
SELECT FROM modules WHERE dirname 'smartsection'
0.000284 SELECT FROM config WHERE (conf_modid '3'ORDER BY conf_order ASC
0.000591 
SELECT FROM smartsection_items WHERE (categoryid '5' AND (status '2') AND datesub <= '1259694454') AND (summary IS NOT NULL AND summary <> ' ' ORDER BY datesub DESC LIMIT 05
0.000217 
SELECT FROM smartsection_categories
0.000240 
SELECT FROM group_permission WHERE (gperm_modid '3')
000333 SELECT image_dir FROM multimenu_menu WHERE status>=AND catid=AND ( title='' OR groups LIKE '%1%' OR groups LIKE '%2%' OR groups LIKE '%4%' )
0.000500 SELECT FROM multimenu_link WHERE catid=AND status>AND ( title='' OR groups LIKE '%1%' OR groups LIKE '%2%' OR groups LIKE '%4%' ORDER BY weight ASC
0.000191 
SELECT FROM multimenu_query WHERE id=6
0.000210 
SELECT itemidtitle FROM smartsection_items WHERE categoryid=6 ORDER BY weight ASC LIMIT 010
0.000490 
SELECT FROM modules WHERE dirname 'pm'
0.013615 SELECT COUNT(*) FROM priv_msgs WHERE (read_msg '0' AND to_userid '1')
0.000595 SELECT FROM smartsection_items WHERE (categoryid '1' AND (status '2') AND datesub <= '1259694454') AND (summary IS NOT NULL AND summary <> ' ' ORDER BY datesub DESC LIMIT 05
0.000402 
SELECT image_dir FROM multimenu_menu WHERE status>=AND catid=AND ( title='' OR groups LIKE '%1%' OR groups LIKE '%2%' OR groups LIKE '%4%' )
0.000551 SELECT FROM multimenu_link WHERE catid=AND status>AND ( title='' OR groups LIKE '%1%' OR groups LIKE '%2%' OR groups LIKE '%4%' ORDER BY weight ASC
0.000201 
SELECT FROM multimenu_query WHERE id=7
0.000186 
SELECT itemidtitle FROM smartsection_items WHERE categoryid=2 ORDER BY weight ASC LIMIT 010
0.000352 
SELECT image_dir FROM multimenu_menu WHERE status>=AND catid=AND ( title='' OR groups LIKE '%1%' OR groups LIKE '%2%' OR groups LIKE '%4%' )
0.000542 SELECT FROM multimenu_link WHERE catid=AND status>AND ( title='' OR groups LIKE '%1%' OR groups LIKE '%2%' OR groups LIKE '%4%' ORDER BY weight ASC


Oh, and one very important thing: not 'his' site but 'her' site, I'm this spectacular minger here:http://www.eesb.org.uk/modules/pageworks/index.php?page=4&name=Chloe+Cairns :)



7
ccairns
Re: Moving a site, keeps logging out
  • 2009/11/30 18:38

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


Both tests ran fine (had to insert a few stray backslashes which have presumably been removed on posting). Man I'm glad you guys are here, I wouldn't have a clue how to test all this stuff!!

setsession.php:

Session created.

Session id regenerated: 1
Session variable MyCMS set: XOOPS
Session id: fa417ae776a0e435132c4227911b7746

tstsession.php:

Session Info

Session id: fa417ae776a0e435132c4227911b7746
Session variable MyCMS: XOOPS

cookietest.php:

2 cookies are set.
5 cookies received.
PHPSESSID = fa417ae776a0e435132c4227911b7746
eesbtest = 0
XOLOGGERVIEW = null
MyCMS = XOOPS
MyColour = Blue



8
ccairns
Re: Moving a site, keeps logging out
  • 2009/11/30 13:02

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


Sorry ghia, I did miss your first post - I think it arrived when I was in the middle of posting a reply. In response to that one, as soon as you log in WITHOUT www it redirects to www anyway, and exhibits the same behaviour. I am using PHP5. I don't think I need any special operations for sessions, it seems like pretty bog standard Linux/Apache hosting to me - for what it's worth, my site is www.eesb.org.uk, hosted with ukhost4u.com.

I realise upgrading could have made it worse, but it seems to have gone smoothly and it was always worth a try. Nothing seems any more broken than it was before :) If you think it would help though, I have got a backup from immediately before I upgraded, I can always restore it.

Cheers,

Chloe



9
ccairns
Re: Moving a site, keeps logging out
  • 2009/11/30 9:26

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


No changes other than uploading it to a new server/domain, editing mainfile.php to reflect new database and paths and sifting through the files/database to find any references to my old domain. I upgraded to see if it would make any difference to this problem.

I'd already renamed my .htaccess to .htaccess.old, even removing it completely doesn't seem to help. Still logging out. It does seem that I can look at anything on the user menu without it logging out though, if that helps your diagnosis at all.



10
ccairns
Re: Moving a site, keeps logging out
  • 2009/11/29 22:24

  • ccairns

  • Just popping in

  • Posts: 13

  • Since: 2008/10/16


Nope, and had to change the names in PHPMyAdmin since I can't stay logged in long enough to change the preferences :) Browser cookies cleared also and still no joy. The mystery deepens...




TopTop
(1) 2 »



Login

Who's Online

177 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

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

Latest GitHub Commits