Title: 500 error: Call to undefined function error_log()
Last modified: March 2, 2026

---

# 500 error: Call to undefined function error_log()

 *  Resolved [physalis](https://wordpress.org/support/users/physalis/)
 * (@physalis)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/500-error-call-to-undefined-function-error_log/)
 * Hey there, SmashBallooners,
 * the current version of your plugin (update from four days ago) creates a 500 
   error on my site. This is the error message that is spit out when debug is enabled:
 * `
   Uncaught Error: Call to undefined function error_log() in /home/users/xxxxx/
   www/my-site/wp-includes/class-wpdb.php:1829 Stack trace: #0 /home/users/xxxxx/
   www/my-site/wp-includes/class-wpdb.php(2308): wpdb->print_error() #1 /home/users/
   xxxxx/www/my-site/wp-includes/class-wpdb.php(3041): wpdb->query() #2 /home/users/
   xxxxx/www/my-site/wp-content/plugins/instagram-feed/admin/SBI_Callout.php(166):
   wpdb->get_var() #3 /home/users/xxxxx/www/my-site/wp-content/plugins/instagram-
   feed/admin/SBI_Callout.php(83): InstagramFeed\Admin\SBI_Callout::feeds_number()#
   4 /home/users/xxxxx/www/my-site/wp-content/plugins/instagram-feed/admin/SBI_Callout.
   php(28): InstagramFeed\Admin\SBI_Callout::get_callout_plugins_list() #5 /home/
   users/xxxxx/www/my-site/wp-content/plugins/instagram-feed/instagram-feed.php(
   253): InstagramFeed\Admin\SBI_Callout->__construct() #6 /home/users/xxxxx/www/
   my-site/wp-includes/class-wp-hook.php(341): sb_instagram_feed_init() #7 /home/
   users/xxxxx/www/my-site/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()#
   8 /home/users/xxxxx/www/my-site/wp-includes/plugin.php(522): WP_Hook->do_action()#
   9 /home/users/xxxxx/www/my-site/wp-settings.php(742): do_action() #10 /home/users/
   xxxxx/www/my-site/wp-config.php(120): require_once('...') #11 /home/users/xxxxx/
   www/my-site/wp-load.php(50): require_once('...') #12 /home/users/xxxxx/www/my-
   site/wp-admin/admin.php(35): require_once('...') #13 /home/users/xxxxx/www/my-
   site/wp-admin/plugins.php(10): require_once('...') #14 {main} thrown in /home/
   users/xxxxx/www/my-site/wp-includes/class-wpdb.php on line 1829
    -  This topic was modified 3 months, 1 week ago by [physalis](https://wordpress.org/support/users/physalis/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Smash Balloon Nigel](https://wordpress.org/support/users/nigelrsb/)
 * (@nigelrsb)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/500-error-call-to-undefined-function-error_log/#post-18838476)
 * Hi [@physalis](https://wordpress.org/support/users/physalis/)
 * Thank you for bringing this issue to our attention and sorry for the inconvenience
   this has caused you. I’m checking with my colleagues to get more details on this.
   In the meantime, please contact your host to check if they can enable the error_log
   function in your server settings as this will prevent the error 500 from occurring
   when the website encounters issues like this.
   I will get back to you as soon 
   as I have an update. Please let me know if you have questions.
 * Best Regards,
 *  Thread Starter [physalis](https://wordpress.org/support/users/physalis/)
 * (@physalis)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/500-error-call-to-undefined-function-error_log/#post-18838483)
 * [@nigelrsb](https://wordpress.org/support/users/nigelrsb/) Hi Nigel, thanks for
   the quick answer. It’s a customer’s website, with a more exotic hosting, so I’m
   not sure if they can enable error logs manually. However, shouldn’t it be optional
   for servers to enable PHP error logging? It’s the first time I encounter a plugin
   explicitly requiring error logging.
 *  [Smash Balloon Nigel](https://wordpress.org/support/users/nigelrsb/)
 * (@nigelrsb)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/500-error-call-to-undefined-function-error_log/#post-18838518)
 * Hi [@physalis](https://wordpress.org/support/users/physalis/),
 * To clarify, error logging is **not** explicitly required by the Instagram feed
   plugin. Enabling it will only prevent the error from being fatal while we investigate
   what may be causing the 500 error. An alternative workaround would be to downgrade
   the plugin to a previous version. You can download the old version (6.9.1) at
   the bottom of the Advanced view page: [https://wordpress.org/plugins/instagram-feed/advanced/](https://wordpress.org/plugins/instagram-feed/advanced/).
   
   I hope this helps! Please let me know if you have any questions.
 *  Thread Starter [physalis](https://wordpress.org/support/users/physalis/)
 * (@physalis)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/500-error-call-to-undefined-function-error_log/#post-18838691)
 * [@nigelrsb](https://wordpress.org/support/users/nigelrsb/) Hm, strange, there
   was no other error visible. Normally, a fatal error would simply show up. But
   I guess I had better revert to 6.9.1, thanks for the link and the help!
 *  Thread Starter [physalis](https://wordpress.org/support/users/physalis/)
 * (@physalis)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/500-error-call-to-undefined-function-error_log/#post-18838818)
 * [@nigelrsb](https://wordpress.org/support/users/nigelrsb/) Unfortunately, I went
   back as far as 6.5.0, but it still gives me trouble. Unless I enable debugging
   in WordPress, I’ll always get a white screen of death. I had used Smashballoon
   before and am still using it on other customers’ sites, but for some reason, 
   it won’t work on this specific host.
 *  [Smash Balloon Nigel](https://wordpress.org/support/users/nigelrsb/)
 * (@nigelrsb)
 * [3 months, 1 week ago](https://wordpress.org/support/topic/500-error-call-to-undefined-function-error_log/#post-18839559)
 * Hi [@physalis](https://wordpress.org/support/users/physalis/),
 * I’m sorry to hear that rolling back the plugin version did not work for you. 
   Given that we have not received reports of similar issues, this seems to be specific
   to your setup. To further investigate the issue, please submit a support request
   via the form on our website, [https://smashballoon.com/support/](https://smashballoon.com/support/),
   and include the System Info. 
 * To obtain this information, please follow the steps on this page: [https://smashballoon.com/doc/how-to-get-system-info](https://smashballoon.com/doc/how-to-get-system-info).
   We ask you to use our form, as the System Info contains other website information
   from your site, which we do not suggest posting here.
 * Best Regards,

Viewing 6 replies - 1 through 6 (of 6 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F500-error-call-to-undefined-function-error_log%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/instagram-feed/assets/icon-256x256.png?rev=2700807)
 * [Smash Balloon Social Photo Feed – Easy Social Feeds Plugin](https://wordpress.org/plugins/instagram-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/instagram-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/instagram-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/instagram-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/instagram-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/instagram-feed/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Smash Balloon Nigel](https://wordpress.org/support/users/nigelrsb/)
 * Last activity: [3 months, 1 week ago](https://wordpress.org/support/topic/500-error-call-to-undefined-function-error_log/#post-18839559)
 * Status: resolved