Support » Fixing WordPress » PHP Fatal error: Call to undefined function submit_button()

  • Steve

    (@steveatty)


    This is an odd one.

    I get the error:

    [20-Sep-2015 09:05:57 UTC] PHP Fatal error:  Call to undefined function submit_button() in /xxx/wp-admin/includes/file.php on line 1207

    recorded in my php error logs.

    The only time it occurs is when the wp-cron is called:

    192.168.0.1 - - [20/Sep/2015:10:05:56 +0100] "POST /wp-cron.php?doing_wp_cron=1442739956.9766309261322021484375 HTTP/1.0" 500 955 "-" "WordPress/4.3.1; http://xxxxxxk" xxxxxx

    The line of code is:

    submit_button( __( 'Proceed' ), 'button', 'upgrade', false );

    which seems to be part of the code related to updating the code base

Viewing 7 replies - 1 through 7 (of 7 total)
  • Anyone?

    Why is the cron even getting involved with that bit of the code?

    Hi ! Same problem for me 🙁

    If it is a matter of server misconfiguration and you can’t install plugins the normal way because of the FTP credentials form, you can try adding this line to your wp-config.php:

    define( 'FS_METHOD', 'direct' );

    This solved the problem for me 🙂

    I use SSH to install updates and plugins – please do not try to tell me that my server is mis-configured.

    I assume this error is related to WordPress attempting to call something and because I’m using SSH part of the code is trying to render the dialogue for some reason.

    So I assume its a bug in WordPress….

    Steve, have you tried installing plugins through the admin panel (which I meant by saying ‘the normal way’)? If you get the FTP credentials form, then the solution that I’m proposing is quite possible to be the one that will work for you.

    It could be also related to using DSO handler instead of, let say, SuPHP.

    Believe me, I’m not here to question your supreme Linux configuration skills, but to help you solve your problem, as I had a similar and I solved it by that line of code.

    No I’m set up to use SSH Keys and I don’t get prompted when installing updates or plugins so its only when the cron runs that it sometimes throws the error.

    That’s the odd thing about it.. most of the time the cron runs without any issues, just from time to time it obviously runs some bit of code that it shouldn’t be doing.

    Hello
    Im using admin panel to install/upgrade plugins but i dont think this issue is related to that.
    Like Steve i have this error randomly from the cron job.

    By the way from the beginning i did disable wp_cron with “define(‘DISABLE_WP_CRON’, true)” in wp-config.php and using linux cron with command like this :
    */15 * * * * cd /srv/www/mywebsite; /usr/bin/php5 wp-cron.php

    It has been few days i didn’t have error message…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Fatal error: Call to undefined function submit_button()’ is closed to new replies.