Author Topic: Server moved - Can't login as admin  (Read 8827 times)

0 Members and 1 Guest are viewing this topic.

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Server moved - Can't login as admin
« on: May 13, 2008, 12:18:23 PM »
Does anyone know what could be wrong? I moved my page to another server but now I can't login to admin panel. Normal user login is working just fine.

URGENT! :)
« Last Edit: May 15, 2008, 07:39:42 AM by Lucifix »

Offline † manurom

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • manurom's 4images templates
Re: Server moved - Can't login as admin
« Reply #1 on: May 13, 2008, 01:53:23 PM »
Hello;
what went wrong when you moved your databse? Who knows?

Have you tested this topic by Nicky: Lost admin password - what to do?, in the FAQ?

Hope it will help you.

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Server moved - Can't login as admin
« Reply #2 on: May 13, 2008, 01:56:26 PM »
Hello;
what went wrong when you moved your databse? Who knows?

Have you tested this topic by Nicky: Lost admin password - what to do?, in the FAQ?

Hope it will help you.

I can login with my username (level: admin / 9), I also changed password in sql and tried with other admin username but without luck. I'll try to check if there is any error in apache, but I doubt. :(

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Server moved - Can't login as admin
« Reply #3 on: May 13, 2008, 02:00:29 PM »
Maybe this will help something:

Code: [Select]
[Tue May 13 xxx 2008] [error] [client xxx] PHP Warning:  Invalid argument supplied for foreach() in /var/www/xxx/global.php on line 35, referer: xxx/admin/
Line 35:
Code: [Select]
foreach ($array as $key => $val) {

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Server moved - Can't login as admin
« Reply #4 on: May 13, 2008, 02:19:19 PM »
I found another problem...

As normal user you don't stay logged after you go away from gallery - this happen even if you select remember me.

Does anyone have any clue what could be wrong? I'm relay getting frustrating because site is already down for 1 day.  :(

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Server moved - Can't login as admin
« Reply #5 on: May 13, 2008, 02:24:08 PM »
I found out that cookies is set to expired right after you login (date of expire is the same as logged in date). Strange...

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Server moved - Can't login as admin
« Reply #6 on: May 13, 2008, 06:04:05 PM »
Few new corrections:

1. Auto Login works only if I don't visit admin page - if I do it log me off.

Now I'm searching for code that couses this problem in admin folder... anyone have any any any idea?!

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Server moved - Can't login as admin
« Reply #7 on: May 14, 2008, 09:21:09 AM »
Lucifix,

just 4 info: do you have issues with clean 4images installation?

rightnow i can't help, due i don't have open ftp ports at company & at home i'm at ISP change..
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Server moved - Can't login as admin
« Reply #8 on: May 14, 2008, 09:24:27 AM »
Quote
just 4 info: do you have issues with clean 4images installation?

I made soooo many modification in 4images that I simply can't install new 4images.

Even if i try to upload image I get the same error:
Quote
[Tue May 13 xxx 2008] [error] [client xxx] PHP Warning:  Invalid argument supplied for foreach() in /var/www/xxx/global.php on line 35, referer: xxx/admin/

I also tried global.php fix but didn't help.

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Server moved - Can't login as admin
« Reply #9 on: May 14, 2008, 09:45:54 AM »
Lucifix,

i know about your modifications...

just for test...
upload original 4images files to example: http://www.slo-foto.net/4images_test/

rename config.new.php to config.php
fill the necessary fields for mysql connection and existing 4images db & table..

test it there with logins

i just want to know is it 4images related or are those the modifications..

cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Server moved - Can't login as admin
« Reply #10 on: May 14, 2008, 10:12:12 AM »
It's working... It looks like I need to find error now.   :?

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: Server moved - Can't login as admin
« Reply #11 on: May 14, 2008, 12:12:40 PM »
Yahoooo!!!  :D

Looks like I've solved the problem.

I change in global.php
Code: [Select]
include(ROOT_PATH.'includes/constants.php');
to
Code: [Select]
include_once(ROOT_PATH.'includes/constants.php');
Thx everyone!  :mrgreen: