Can't access admin options

Having trouble installing serendipity?
Post Reply
drcole11
Posts: 1
Joined: Thu Jan 31, 2008 1:10 am

Can't access admin options

Post by drcole11 »

Once I log in to my admin panel, and click any option-new post, or Manage Styles, etc., it sends me back to the admin login page. How do I break the cyle of sending me back to the admin login page?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Can't access admin options

Post by garvinhicking »

Hi!

Check your server's PHP sessions if they are enabled and point to a proper session.save_path and check if your browser accepts cookies.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
francistill
Regular
Posts: 30
Joined: Mon Apr 17, 2006 4:45 am
Location: Wellington New Zealand

Post by francistill »

Actually, I'm having the exact same problem. I run about 20 Serendipity websites off this server but on a new install I'm having no joy getting past the admin panel. My other Serendipity installs are older versions - might that make a difference?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Do you run the new s9y installation maybe on the same host like another s9y installation? Then the cookies might interfer, depending in your PHP setup.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

I am having the same problem but with errors! I just went to approve some comments on my site and got an error. I haven't had any other problems or changes to my site lately that I know of unless my host changed something. After that I tried to update to 1.3 Beta since I was using an Alpha release and still get errors.

Here is one of the errors.

~~~~

Warning: session_start(): open(/tmp/sess_9p1rrcnq6d80ll6ruukjgtp731, O_RDWR) failed: Permission denied (13) in /hsphere/local/home/myusername/mydomain.com/blog/include/functions_config.inc.php on line 353

~~~~

The other error.

~~~~

Warning: Unknown: open(/tmp/sess_gjbbop6d9cd99e6r7f7u4mpo35, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0

~~~~

I assume it has something to do with what you say above but how do I check or change what you are saying?

Any help would be greatly appreciated.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

This error definitely indicates your provider has something not propery setup. Show him these errors messages, he will be able to fix your setup then.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

Thanks and maybe they are doing something. I'm getting this error now.

~~~~

Fatal error: Call to undefined function serendipity_smarty_init() in /hsphere/local/home/myusername/mywebsite.com/blog/include/genpage.inc.php on line 32

A few minutes ago I was getting a mysql error!
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

My host did something to my site but it's still broken. Is this error related to the session.save error?

Fatal error: Call to undefined function serendipity_smarty_init() in /hsphere/local/home/myusername/mywebsite.com/blog/include/genpage.inc.php on line 32
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

This error can mean that you are missing a file include/functions_smarty.inc.php -- inside this file the serendipity_smarty_init() function is declared. If the file is missing, s9y cannot be properly run.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

I thought maybe there were some corrupt files so I reuploaded a nightly build from a couple of nights ago and now get this.

~~

Fatal error: Call to undefined function smarty_core_is_secure() in /hsphere/local/home/myusername/mywebsite.com/blog/bundled-libs/Smarty/libs/Smarty.class.php on line 1592

~~

Should I start over or something or have I lost everything?!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Your upload is corrupted. Re-Upload all files, it seems you were missing more than one file.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

Thanks as usual for your quick response. You have helped me a few times before but it's been a while now. I'll have to say that I just don't get this kind of help with any of my other software I have to deal with or support.

I ended up uploading three times before it worked right. I wonder if the first session.save_path was still a problem with the server.

Thanks again

David
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You're welcome!:)

SOme FTP clients offer a switch to validate the upload so that you can check if the files were properly uploaded?

The bad session.save_path was unrelated, though.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply