• Resolved davet

    (@davet)


    When upgrading this plugin to version 4.14 it breaks our site.

    I received this email from the site:

    +++++++++++++++++++++++
    Howdy!

    Since WordPress 5.2 there is 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, WP RSS Aggregator.

    First, visit your website (https://blessedsacramentonline.org/) and check for any visible issues. Next, visit the page where the error was caught (redacted) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    https://blessedsacramentonline.org/redacted

    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    Error Details
    =============
    An error of type E_ERROR was caused in line 43 of the file /home/bsc/public_html/wp-content/plugins/wp-rss-aggregator/src/RestApi/EndPoints/FeedTemplates/RenderTemplateEndPoint.php. Error message: Uncaught ArgumentCountError: Too few arguments to function RebelCode\Wpra\Core\RestApi\EndPoints\FeedTemplates\RenderTemplateEndPoint::__construct(), 1 passed in /home/bsc/public_html/wp-content/plugins/wp-rss-aggregator/src/Modules/FeedTemplatesModule.php on line 448 and exactly 2 expected in /home/bsc/public_html/wp-content/plugins/wp-rss-aggregator/src/RestApi/EndPoints/FeedTemplates/RenderTemplateEndPoint.php:43
    Stack trace:
    #0 /home/bsc/public_html/wp-content/plugins/wp-rss-aggregator/src/Modules/FeedTemplatesModule.php(448): RebelCode\Wpra\Core\RestApi\EndPoints\FeedTemplates\RenderTemplateEndPoint->__construct(Object(RebelCode\Wpra\Core\Templates\Feeds\MasterFeedsTemplate))
    #1 [internal function]: RebelCode\Wpra\Core\Modules\FeedTemplatesModule->RebelCode\Wpra\Core\Modules\{closure}(Object(RebelCode\Wpra\Core\Container\WpFilterContainer))
    #2 /home/bsc/public_html/wp-content/plugins/wp-rss-aggregator/src/Container/ModuleContainer.php(75): call_user_func_array(Object(Closure), Array)
    #3 /home/bsc/public_
    +++++++++++++++++++++++

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • max

    (@maximledoux)

    Upgrading to 4.14 basically broke my site as well. Numerous 502 time out errors and very very slow page load times. Reverted to 4.13.2 but still have the time outs and crawling page loads. Deactivating the plugin returns site to normal.

    max

    (@maximledoux)

    @davet I solved it for me. I discovered that the plugin had created more than 20,000 copies of the “Default” feed template. (I was getting a similar error as the one you posted above, so I figured something was going on with templates.)

    I solved this by running the following WP-CLI command:

    wp post delete $(wp post list --post_type='wprss_feed_template' --format=ids) --force

    Of course, in order for the wp_feed_template post type to register, the plugin has to be activated. So my site was pretty much dead as I did this, and it took I think 45 minutes for the command to delete all the duplicate feed templates. So I started it about 1:30AM in order try not to aggravate my users.

    I hope this helps you or anyone else reading this with a similar issue. If you don’t have access to WP-CLI then contact your host for help.

    Plugin Contributor Miguel Muscat

    (@mekku)

    @davet The issue you are experiencing is caused by a corrupt version of the plugin. You should be able to resolve the issue simply by deleting the plugin and re-
    downloading the latest version.

    @maximledoux Thank you for sharing.

    Those that do not have access to WP CLI can deactivate the plugin and ask their host to help them run a database query that deletes posts with post_type equal to wprss_feed_template, and then delete the orphaned meta data from the postmeta table. The plugin can then be reactivated once a fresh copy of version 4.14 has been downloaded.

    max

    (@maximledoux)

    @mekku what would be the meta key in wp_postmeta?

    Also, for those using WP-CLI to delete and reinstall wp-rss-aggregator, be advised that WP-CLI may just use a cached version of the plugin that you previously downloaded (and thought you had deleted) rather than downloading a fresh copy. So you might want to actually go to the plugin site and download it from your browser.

    Plugin Contributor Miguel Muscat

    (@mekku)

    @maximledoux All our plugin’s meta keys are prefixed with wprss_. However, we strongly advise not deleting everything. A better way would be to use a query that specifically targets post meta that is not attached to an existing post. Here’s an example.

    DELETE meta
    FROM wp_postmeta meta
    LEFT JOIN wp_posts post ON post.ID = meta.post_id
    WHERE post.ID IS NULL
    

    Do NOT copy and paste this query. We advise asking your host for help with this matter as your table names may be different.

    max

    (@maximledoux)

    Thanks, @mekku. Very prudent advice in regards to the the query. I believe there are various plugins including wp-sweep that people can use to clean up their database as well. (With the usual caveats of making a backup first, etc., etc.)

    So what is the solution if I can no longer get the plugin to activate?

    Plugin Author Mark Zahra

    (@markzahra)

    @djdefenda is this still an issue for you at version 4.16?

    djdefenda

    (@djdefenda)

    It took a bit of hassle restoring backups and then I had to to delete all posts with post_type equal to wprss_feed_template in my website’s database – there was close to 20,000 templates.

    There was a php error after that and templates would not display but it’s seems fine now thanks.

    Plugin Author Mark Zahra

    (@markzahra)

    Glad that it’s looking better for you now, sorry for all that trouble.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Upgrading to WP RSS Aggregator 4.14 Breaks Website’ is closed to new replies.