• 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/) and check for any visible issues. Next, visit the page where the error was caught (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.2
    Active 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:614
    Stack 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 to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @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 >>

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

    • This reply was modified 1 year, 7 months ago by reeseDev.
    Thread Starter Mountain Dude

    (@mountain-dude)

    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

    (@mountain-dude)

    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

    @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.