Title: Error Thrown&#8230;
Last modified: April 10, 2023

---

# Error Thrown…

 *  [Mountain Dude](https://wordpress.org/support/users/mountain-dude/)
 * (@mountain-dude)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-thrown-28/)
 * I update my site’s theme: True Mag. Suggested updates for Simple Twitter Tweets
   was recommended. Once STT was updated the entire site broke. Received WordPress
   email;
 * Howdy!
 * WordPress has a built-in feature that detects when a plugin or theme causes a
   fatal error on your site, and notifies you with this automated email.
 * In this case, WordPress caught an error with one of your plugins, Simple Twitter
   Tweets.
 * First, visit your website ([https://inventionschool.tech/](https://inventionschool.tech/))
   and check for any visible issues. Next, visit the page where the error was caught(
   [https://inventionschool.tech/wp-admin/admin-ajax.php](https://inventionschool.tech/wp-admin/admin-ajax.php))
   and check for any visible issues.
 * Please contact your host for assistance with investigating this issue further.
 * When seeking help with this issue, you may be asked for some of the following
   information:
   WordPress version 6.2Active theme: truemag (version 4.3.14)Current
   plugin: Simple Twitter Tweets (version 4.4)PHP version 8.1.17
 * Error Details
   =============An error of type E_ERROR was caused in line 614 of
   the file /home4/inventw6/public_html/wp-content/plugins/simple-twitter-tweets/
   simple-twitter-tweets.php. Error message: Uncaught Error: Call to undefined function
   create_function() in /home4/inventw6/public_html/wp-content/plugins/simple-twitter-
   tweets/simple-twitter-tweets.php:614Stack trace:#0 /home4/inventw6/public_html/
   wp-settings.php(453): include_once()#1 /home4/inventw6/public_html/wp-config.
   php(102): require_once(‘/home4/inventw6…’)#2 /home4/inventw6/public_html/wp-load.
   php(50): require_once(‘/home4/inventw6…’)#3 /home4/inventw6/public_html/wp-admin/
   admin-ajax.php(22): require_once(‘/home4/inventw6…’)#4 {main}  thrown
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-thrown-28%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [reeseDev](https://wordpress.org/support/users/reeselives/)
 * (@reeselives)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-thrown-28/#post-16650167)
 * Hey [@mountain-dude](https://wordpress.org/support/users/mountain-dude/)! I had
   the same issue. Rather than replace the plugin, I replaced this code on line 
   614
   _/home4/inventw6/public\_html/wp-content/plugins/simple-twitter-tweets/simple-
   twitter-tweets.php:614_`add_action( 'widgets_init', function() { register_widget('
   PI_SimpleTwitterTweets' ); } );`Seems to be working, my WSOD disappeared, and
   I am back online. Keeping an eye out for other irregularities and testing on 
   browsers now.Depending on your case, I also had to amend lines 503 – 510 & 554:
 * lines 503 -510 >>
 * `$tweets[] = array('text' => $text, 'name' => $name, 'permalink' => $permalink,'
   image' => $image, 'time' => $uTime, 'tweet_id' => $tweet_id);`
   line 554 >>[](https://wordpress.org/support/topic/error-thrown-28/<?php echo esc_url( $tweet[&apos;permalink&apos;] ); ?>)
 * `**<?php** if (isset($tweet) && is_array($tweet)) { **?>**<a href="<?php echo
   esc_url( $tweet['permalink'] ); ?>" target="_blank">**<?php** echo esc_html( 
   $tweet['text'] ); **?>**</a>**<?php** } **?>**`
 * Hoping to get a bit more mileage out of the plugin for now. 
   [](https://wordpress.org/support/topic/error-thrown-28/<?php echo esc_url( $tweet[&apos;permalink&apos;] ); ?>)
   [](https://wordpress.org/support/topic/error-thrown-28/<?php echo esc_url( $tweet[&apos;permalink&apos;] ); ?>)
   [](https://wordpress.org/support/topic/error-thrown-28/<?php echo esc_url( $tweet[&apos;permalink&apos;] ); ?>)
    -  This reply was modified 3 years, 4 months ago by [reeseDev](https://wordpress.org/support/users/reeselives/).
 *  Thread Starter [Mountain Dude](https://wordpress.org/support/users/mountain-dude/)
 * (@mountain-dude)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-thrown-28/#post-16650676)
 * OK, I was able to get back in recovery mode to admin status. I disabled this 
   plugin but the error doen’t go away so disabling it doesn’t seem to make a difference.
   Before changing some code as you suggest, could this still be a problem even 
   if the plugin is disabled?
 *  Thread Starter [Mountain Dude](https://wordpress.org/support/users/mountain-dude/)
 * (@mountain-dude)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-thrown-28/#post-16650684)
 * One additional point: My host site techs saw this error in the error log. The
   error log:
    thrown in /home4/inventw6/public_html/wp-content/themes/truemag/page.
   php on line 9
 *  [reeseDev](https://wordpress.org/support/users/reeselives/)
 * (@reeselives)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-thrown-28/#post-16653807)
 * [@mountain-dude](https://wordpress.org/support/users/mountain-dude/)
 * To your first question, if I have a debugging party to start and I disable a 
   plugin, it clears my errors relating to the plugin so I can test other bugs. 
   
   Have you cleared your cache? I have been having caching issues with chrome lately
   so I have been checking other browsers as well to test changes as I go, one at
   a time.
 * Your second question is related to your theme, possibly your recent update. I
   am not familiar with it. 
   Have you chased to “line 9”? And also did you check
   the documentation regarding the update to the theme? There may be some good clues
   there.
 * I personally love bug hunting. It just takes time and patience. Wishing you the
   best of luck.

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

The topic ‘Error Thrown…’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-twitter-tweets_595b61.svg)
 * [Simple Twitter Tweets](https://wordpress.org/plugins/simple-twitter-tweets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-twitter-tweets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-twitter-tweets/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-twitter-tweets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-twitter-tweets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-twitter-tweets/reviews/)

## Tags

 * [plugin](https://wordpress.org/support/topic-tag/plugin/)

 * 4 replies
 * 2 participants
 * Last reply from: [reeseDev](https://wordpress.org/support/users/reeselives/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/error-thrown-28/#post-16653807)
 * Status: not resolved