Hi everyone,

I have Drupal 4.7.4 installed and couple of days ago the server was updated with php5. Now when I log as admin or any other user and want to create content or access any menu I get message "You are not authorized to access this page". I manage to access the logs and I have this:

access denied 2008-01-10 20:15 admin/logs denied access. Anonymous view

I read that version 4.7.4 doesn't work with php5, but now I can't even upgrade the drupal.

Any solution?

Thanks,
Jordanka

p.s I'm pretty new to Drupal

Comments

tain’s picture

I have this same problem.

thechraveler’s picture

I had this same exact problem. What I did was added this code line:

drupal_page_footer();
$GLOBALS['tempUser'] = $user;

to the very bottom of my installation's index.php file. Of course, I am no brainiac, I found this solution from this thread:

http://drupal.org/node/6696

Cheers,

Colin

jordanka’s picture

This worked for me. Thank you a LOT :-)

Best,
Jordanka

tain’s picture

This worked for me, too. Except for on my event module's calendar page (host.com/event). That page is still displaying Dec 2007 (as opposed to Jan 2008) and visiting the page while logged in will log a user out of the site.

tain’s picture

*bump*

Is the calendar issue related to the PHP change? If so, how do I fix it?

tain’s picture

I'm also having trouble with my RSS feeds. Is there an all-in-one guide to how to handle PHP4->PHP5 problems?