Post.php lead to blank screens I have many PHP warnings and errors
-
Hi there, I have a strange problem, i can’t find a solution, perhaps you can help me?
CONFIG
I have WP 4.4.2. in MULTISITE with around 20 active plugins (cache-enabler, seo by Yoast, MultilingualPress, etc).
I’m also on Cloudflare.PROBLEMS
I have 2 problems I think :
1/ in the admin, the post.php leads to blank screens with errors and warnings in the logs.
That is, when I try to save a post, it leads to a blank screen.
(And by the way, the action of saving the content actually works, despite of the blank screen: the error doesn’t stop the process).With DEBUG on, this displays :
Notice: register_sidebar est appelée de la mauvaise manière. Aucun?id?n’a été configuré dans le tableau d’arguments de la colonne latérale “Navigation”. “sidebar-2” sera utilisé par défaut. Configurez manuellement?id?avec “sidebar-2” pour faire dispara?tre cette notification et conserver le contenu actuel de la colonne latérale. in?/localhome/l/NAME/DOMAIN/wp-includes/functions.php?on line?3792
Notice: register_sidebar est appelée de la mauvaise manière. Aucun?id?n’a été configuré dans le tableau d’arguments de la colonne latérale “Index Right Aside”. “sidebar-3” sera utilisé par défaut. Configurez manuellement?id?avec “sidebar-3” pour faire dispara?tre cette notification et conserver le contenu actuel de la colonne latérale. in?/localhome/l/NAME/DOMAIN/wp-includes/functions.php?on line?3792
Notice: register_sidebar est appelée de la mauvaise manière. Aucun?id?n’a été configuré dans le tableau d’arguments de la colonne latérale “Post Left Aside”. “sidebar-4” sera utilisé par défaut. Configurez manuellement?id?avec “sidebar-4” pour faire dispara?tre cette notification et conserver le contenu actuel de la colonne latérale. in?/localhome/l/NAME/DOMAIN/wp-includes/functions.php?on line?3792
Notice: register_sidebar est appelée de la mauvaise manière. Aucun?id?n’a été configuré dans le tableau d’arguments de la colonne latérale “Post Right Aside”. “sidebar-5” sera utilisé par défaut. Configurez manuellement?id?avec “sidebar-5” pour faire dispara?tre cette notification et conserver le contenu actuel de la colonne latérale. in?/localhome/l/NAME/DOMAIN/wp-includes/functions.php?on line?3792
2/ in my error logs I have many errors and warnings, some are there since long (before the problem whith posting) but I never knew how to solve them.
I especially have tons of this message :
“[Mon Mar 28 14:31:49 2016] [error] [client 108.162.220.161] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘frank_header_style’ not found or invalid function name in /localhome/l/NAME/DOMAIN/wp-includes/plugin.php on line 525”
in which the value “frank_header_styles” refers to my free theme, Frank.
3/ Still in my error logs, I have errors like:
– PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4814411 bytes) in /localhome/l/name/www.domain.com/wp-includes/wp-db.php on line 2961, referer: https://a_url_of_my_site
– PHP Notice: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ in /localhome/l/name/www.domain.com/wp-includes/functions.php on line 8
[Mon Mar 28 12:56:05 2016] [error] PHP Notice: Use of undefined constant WPINC – assumed ‘WPINC’ in /localhome/l/name/www.domain.com/wp-includes/functions.php on line 8
[Mon Mar 28 12:56:05 2016] [error] PHP Warning: require(ABSPATHWPINC/option.php): failed to open stream: No such file or directory in /localhome/l/name/www.domain.com/wp-includes/functions.php on line 8
[Mon Mar 28 12:56:05 2016] [error] PHP Warning: require(ABSPATHWPINC/option.php): failed to open stream: No such file or directory in /localhome/l/name/www.domain.com/wp-includes/functions.php on line 8
[Mon Mar 28 12:56:05 2016] [error] PHP Fatal error: require(): Failed opening required ‘ABSPATHWPINC/option.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /localhome/l/name/www.domain.com/wp-includes/functions.php on line 8_______________
SOLUTIONS
A/ Things I’ve tried already :
– I have reinstalled WP 4.2.2.
– I have reinstalled my theme (even tested the original version)
– I have repaired and optimized the databaseit does not solve the problem of post.php/blank screens, and it leaves the errors.
B/ The only thing that allows me to post normally, is when I RENAME the folder wp-content/plugins. Then I can post.
Deactivating all the plugins is NOT enough for posting to work, if I only do that then post.php leads to blankscreen+PHP error or warning. I really have to rename the folder for post.php to work, which is really not normal.
C/ It seems there is a bug since WP 4.2.2. on various themes. My theme Frank was no updated since long by the author. Perhaps it explains the “register_sidebar” problem?
So that’s it. Can you help me please?
- The topic ‘Post.php lead to blank screens I have many PHP warnings and errors’ is closed to new replies.