• Resolved LudwigVonBerlin

    (@ludwigvonberlin)


    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 database

    it 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?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Can you reproduce the issue — where saving a post leads to a blank screen — with ALL plugins deactivated AND the default Twenty Sixteen theme? If so, I would suggest, on the same host, installing a non-multisite version of WordPress and trying to reproduce the issue again. If you cannot reproduce it then I would set that site up as a multisite and try to reproduce again.

    If, on the other hand, after deactivating ALL your plugins AND switching back to the default theme allows you to properly save posts as well as not get all the error messages with debug on, then I would switch back to your Frank theme. If, after switching to Frank (LOL), you are able to reproduce any of the issues then I would contact Frank’s author and let them know about the issues you found.

    Oh, and if Frank does misbehave on your multisite, without any plugins being activated, then I would try Frank on a freshly installed NON-WordPress multisite on the same host.

    Hope this helps!

    Did you edit the functions.php? Or another php file? It could be caused by having to much white space between end of function and closing php tags or beginning php tags

    <?php
    
    Too much white space
    Start function {
    
    }
    
    Too much white space
    ?>

    I hope this will be the cause

    Thread Starter LudwigVonBerlin

    (@ludwigvonberlin)

    @randy I can’t make many installations to test.
    I’ve tested already with Twenty Sixteen, it does not work, the problem seem to be linked to the folder “plugins” and not to the activation of the theme. And on front-end I have no problem : the pages are served, cached etc, my site works normally. Only the back-end has problems.

    @Djenci Yes I have made many editions in many php files recently, and I also tested and activated many plugins. I was trying to optimize the speed of my site. It worked well, I get notes like 96, 98… and a broken admin ?? was worth the effort…
    So, I’ll check again but… as I said, I’ve reinstalled WP already, by 2 methods (from the network’s admin and by FTP), so files like functions.php are THE ORIGINAL WP core files, so there’s no white space bug there.

    Now since my WP core files and my themes files are the originals, the mistake has to be somewhere else. But where?

    I often had blank page issues with w3 total cache plugin. That’s why I completely did caching myself

    As wel as combining javascript, CSS and minified it

    Does deactivating the plugins for caching solve the issue?

    Thread Starter LudwigVonBerlin

    (@ludwigvonberlin)

    No it doesn’t. Deactivating ALL the plugins does not solve the problem. The only way the problem does not appear, is if I RENAME the folder “wp-content/plugins”.

    Weird isn’t it?

    If it would be one plugin causing the problem, it would be easy to solve. But here, it’s the existence of the folder “plugins” itself!

    So you change the folder plugins to what name? plugin? Can you post ur url one time? Does it appear when you put cloudflare in developer mode?

    This is nofollow here so don’t worrie about putting ur url

    Thread Starter LudwigVonBerlin

    (@ludwigvonberlin)

    Update : the cause of problem 1 (blank screen when posting) was in the plugin Wordfence, no idea why, but I have to remove it from the “plugins” folder, then posting works again.

    It’s really weird because nothing changed recently with Wordfence. There was no updates and I did change the code at all.

    @Djenci: my url wouldn’t help, since the problem was in the admin or is in the error files. Nothing is visible.
    And, I have a rule in CloudFlare to bypass the cache for all WP-admin files, so that could not be the cause. Only my public pages go through CloudFlare.

    So, there are still all those errors in the logs, can someone help with that?

    Thread Starter LudwigVonBerlin

    (@ludwigvonberlin)

    Update : no, actually problem 1 was not solved.I just thought it was.

    I had deleted all the plugins from the folder “plugins”. Posting OK.
    Then I put back the plugins 5 by 5. Posting OK, OK, OK.
    Then I came to the 5 last. I put them 1 by 1, posting OK, until I came to Wordfence, then I couldn’t post any more. So I concluded Wordfence was the problem and I deleted it. Posting worked.

    Then I activated the last plugins I had uploaded. I check whether I could post or not and: NO, it leads to white screen again.
    Then I deleted the 5 last plugins, since posting worked until I uploaded them. But even back to the situation when it worked before, it doesn’t work now: posting leads to error.

    it drives me mad. 2 days on this already !

    Thread Starter LudwigVonBerlin

    (@ludwigvonberlin)

    Update : the problem with register_sidebar is solved. The “functions.php” of my theme forgot to give an idea to all the widget zones. I just had to add ‘id’=>’name’ and that was it.

    If somebody meets the problem with the theme FRANK, the functions.php file should look like that in the part about sidebars:

    function frank_widgets() {
    	register_sidebar(
    		array(
    			'name'      	=> 'Sub Header',
    			'id'      		=> 'widget-subheader',
    			'before_widget' => '<div id="%1$s" class="widget %2$s four columns">',
    			'after_widget'  => '</div>',
    			'before_title'  => '<h3 class="widget-title">',
    			'after_title'   => '</h3>',
    		)
    	);
    Thread Starter LudwigVonBerlin

    (@ludwigvonberlin)

    Ok I think understand what caused the impossibility to post.

    I had P3 plugin profiler activated on 1 of my subdomain sites. I had launched a test and P3 had crashed, thus I thought it had stopped, but now I think it didn’t: it continued trying to test the other plugins, consuming memory and leading other plugins to cause Fatal errors by lack of memory. That’s why I still had the problem when I believed all my plugins were deactivated: P3 was still activated on 1 subdomain!!

    My provider has raised my memory limit to 96M instead of 64, so I could stop P3 profiler, and from that moment, I could save posts again all over my sites.

    Now I think most of my problems are solved. thanks to those who stimulated the problem-solving!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Post.php lead to blank screens I have many PHP warnings and errors’ is closed to new replies.