Jump to content

PHP settings & admin login white screen


Recommended Posts

Hi everyone.
I`ve got an own hosting, everything was fine, but now got some trouble  without visible reason.
Now, i'm in a dead block. and I want to ask some help of community

prestashop-1.6.0.14

The front office working fine, but got a white screen  of admin login page.
An error reporting returns nothing, the blank white page only.
A scripting protocol returns:

 

"26 Jun 2016 00:06:41","/classes/Cookie.php:
  334","(Warning) Cannot modify header information - headers already sent by (output started at Admin_dir/index.php:34)"
"26 Jun 2016 00:06:41","/classes/controller/AdminController.php:
  1595","(Warning) Cannot modify header information - headers already sent by (output started at Admin_dir/index.php:34)"
"26 Jun 2016 00:07:12","/classes/Tools.php:
  1785","(Warning) file_get_contents(): php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known"
"26 Jun 2016 00:07:12","/classes/Tools.php:
  1785","(Warning) file_get_contents(https://api.addons.prestashop.com): failed to open stream: php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known"
"26 Jun 2016 00:07:42","/classes/Tools.php:
  1785","(Warning) file_get_contents(): php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known"
"26 Jun 2016 00:07:42","/classes/Tools.php:
  1785","(Warning) file_get_contents(http://api.addons.prestashop.com): failed to open stream: php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known"

But those are warnings, and back office must work.

I have changed permissions to 0777 for all Prestashop root directory in depth, got a similar result.
The cache (/cache/smarty/cache & cache/smarty/compile) are cleared manualy.
And location of web server are checked, the info() function returns a correct result from admin directory.
And not memory_limit (php.ini) option size is a reason, the memory_limi = 256 Mb.

I have restored all from the working backup for a test, got the similar result.

Obviously, a reason in a PHP settings or in extensions. But cannot found it myself. Please, HELP!!!
See an attached php.ini and info() report files.

php.ini.txt

phpinfo().html

Edited by BSD-shnik (see edit history)
Link to comment
Share on other sites

Hi guys.
Have  some ideas?
Got a one elaboration. This issue has a one strange circumstance.
When i disabled allow_url_fopen php.ini option, can load my admin pannel. But this option must be "On" in accordance with prestashop system requirements. What is the conflict?

Link to comment
Share on other sites

it's because prestashop trying to connect to their online ecosystem - to get currency rates, some addons, information about updates etc.

 

Thanks, but what must i do for a solve the trouble?

Just it`s a strange situation, another copy of the shop working fine on virtual machine of the host. What functions & what services must i check?

Link to comment
Share on other sites

  • 2 weeks later...

I want to add something more about the issue.

I restarted php-fpm service as a root user, all working, was loaded everything. Then, i saw a lot of new dirs with  a root owner on the cache/smarty/cache dir. (that`s predictable)
When i restarted php-fpm as a www user mode and reloaded one of backoffice page, had got a lot of errores:

Warning string 192 /tools/smarty/sysplugins/smarty_internal_template.php
[2] touch(): Utime failed: Permission denied

This part of the file

// compile locking
        if ($this->smarty->compile_locking && !$this->source->recompiled) {
            if ($saved_timestamp = $this->compiled->timestamp) {
 !!str 192!!            touch($this->compiled->filepath);                     

I set an owner of all cache files as www recursively, and restarted php-fpm as a www user mode. The back office and frontoffice worked, until a cache clearing.

After the cache clearing or in a new session the back office does not working again, as before.

However, the front office working fine, and creates all necessary dirs and files in a cache dirs without some problems. But i can not understand, why the admin interface has not an enough permissions for create a new dirs and files in a cache dir,
with a recursive  777 permissions ?

 

The partition mounted without  acls,nosuid,noexec mount options.

Edited by BSD-shnik (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...