Title: PHP Fatal error:  Call to undefined function submit_button()
Last modified: August 30, 2016

---

# PHP Fatal error: Call to undefined function submit_button()

 *  [Steve](https://wordpress.org/support/users/steveatty/)
 * (@steveatty)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-submit_button/)
 * 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)

 *  Thread Starter [Steve](https://wordpress.org/support/users/steveatty/)
 * (@steveatty)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-submit_button/#post-6565695)
 * Anyone?
 * Why is the cron even getting involved with that bit of the code?
 *  [chuchao2000](https://wordpress.org/support/users/chuchao2000/)
 * (@chuchao2000)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-submit_button/#post-6565723)
 * Hi ! Same problem for me 🙁
 *  [Vladimir Vassilev](https://wordpress.org/support/users/vloo/)
 * (@vloo)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-submit_button/#post-6565759)
 * 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 🙂
 *  Thread Starter [Steve](https://wordpress.org/support/users/steveatty/)
 * (@steveatty)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-submit_button/#post-6565760)
 * 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….
 *  [Vladimir Vassilev](https://wordpress.org/support/users/vloo/)
 * (@vloo)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-submit_button/#post-6565761)
 * 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.
 *  Thread Starter [Steve](https://wordpress.org/support/users/steveatty/)
 * (@steveatty)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-submit_button/#post-6565762)
 * 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.
 *  [chuchao2000](https://wordpress.org/support/users/chuchao2000/)
 * (@chuchao2000)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-submit_button/#post-6565763)
 * 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.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [submit_button](https://wordpress.org/support/topic-tag/submit_button/)
 * [wp_cron](https://wordpress.org/support/topic-tag/wp_cron/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [chuchao2000](https://wordpress.org/support/users/chuchao2000/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-call-to-undefined-function-submit_button/#post-6565763)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
