Welcome! Log In Create A New Profile

Advanced

Problem with php-fpm and drupal 7

Posted by Rainer Duffner 
Rainer Duffner
Problem with php-fpm and drupal 7
April 09, 2012 11:32AM
Hi,

we use PHP-FPM (PHP 5.3.10) with chroot and Apache a lot.
Recently, we stumbled on a problem with Drupal 7.12.

One can install Drupal, but it's impossible to login.

It just says "access denied", while printing out a lot of "Notices"
like those:
Notice: Trying to get property of non-object in
drupal_get_user_timezone() (line 2177
of /home/new-domain/FTPROOT/htdocs/includes/bootstrap.inc).


See here for a full description:
http://drupal.org/node/1518334


As mentioned in the posting, I tried ktracing php-fpm - but there is no
obvious error.

Has anyone seen this before?

How can I pinpoint where exactly the problem is?

The connection to the database is not the problem - the errors are
logged to it already.
It seems something is missing - but I know too little about Drupal to
see what it wants at a particular point in the logn-process.




Best Regards,
Rainer
Maciej Lisiewski
Re: Problem with php-fpm and drupal 7
April 09, 2012 02:36PM
> we use PHP-FPM (PHP 5.3.10) with chroot and Apache a lot.
> Recently, we stumbled on a problem with Drupal 7.12.
>
> One can install Drupal, but it's impossible to login.
>
> It just says "access denied", while printing out a lot of "Notices"
> like those:

All the notices suggest that $user global variable is null, while it
should contain user object. I can't really say why this happens, but
it's almost certain it has nothing to do with FPM - similar problems
have been reported for Drupal in the past.
Try suppressing notices by adjusting error reporting level in php.ini
and try again. If it doesn't work reinstall Drupal with notices
suppressed and test again.

--
Maciej Lisiewski
Rainer Duffner
Re: Problem with php-fpm and drupal 7
April 10, 2012 09:18AM
Am Mon, 09 Apr 2012 20:35:20 +0200
schrieb Maciej Lisiewski <maciej.lisiewski@gmail.com>:

> > we use PHP-FPM (PHP 5.3.10) with chroot and Apache a lot.
> > Recently, we stumbled on a problem with Drupal 7.12.
> >
> > One can install Drupal, but it's impossible to login.
> >
> > It just says "access denied", while printing out a lot of "Notices"
> > like those:
>
> All the notices suggest that $user global variable is null, while it
> should contain user object. I can't really say why this happens, but
> it's almost certain it has nothing to do with FPM - similar problems
> have been reported for Drupal in the past.
> Try suppressing notices by adjusting error reporting level in php.ini
> and try again. If it doesn't work reinstall Drupal with notices
> suppressed and test again.


Hi,


thanks a lot.
According to the guy doing the testing, it works.



Regards,
Rainer
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 222
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready