WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Updating the YARPP Plug-in Wiped Out My Site (30 posts)

  1. WayfaringRanger
    Member
    Posted 1 year ago #

    Just updated the plug-in and now all I can get is this message:

    Parse error: syntax error, unexpected T_FUNCTION in /home3/ranger/public_html/wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Widget.php on line 190

    I am new to blogging and do not know how to fix this. Please help!

    http://wordpress.org/plugins/yet-another-related-posts-plugin/

  2. jeffparker
    Member
    Plugin Author

    Posted 1 year ago #

    Would you let me know the version of WordPress, PHP, and MySQL you are using? That would help with troubleshooting. Thanks.

  3. WayfaringRanger
    Member
    Posted 1 year ago #

    Thank you so much, but I cannot even get inside my dashboard, so I have no idea, except that I have the most updated version of WordPress.

  4. ionelneica
    Member
    Posted 1 year ago #

    how can we downgrade the plugin?

  5. Jason Kemp
    Member
    Posted 1 year ago #

    HI Jeff,

    I just logged this error also. Looks like 3 of theses posts. Suggest you consolidate them and deal with as a group.

    WordPress version is 3.7.1,
    PHP Version: 5.2.17
    MySQL Database Version: 5.1.57-community

    This particular site has Apache running on a virtual server & Operating System: WINNT

    but surely you just need to look at line 190 to see what has changed?

  6. Ecommerce Software Reviews
    Member
    Posted 1 year ago #

    I am having the same problem after upgrading to the latest version. I cannot access my admin page at all and gives the same error.

    I am hosting on HostGator.

    My website is: Ecommerce Software Reviews

    Can you help me please??

  7. jlguerreromontero
    Member
    Posted 1 year ago #

    I have the same problem, just after updating last version of yet another..

    I have the latest version of wp up to date.

  8. Jason Kemp
    Member
    Posted 1 year ago #

    As a temp fix to get your sites back up you should rename the plugin / or failing that delete it. I'm hoping that an edit to the last lines might solve this.

    I can see line 190 which causes the error is that last line making a new widget action
    `/**
    * @since 2.0 Add as a widget
    */
    add_action('widgets_init', function(){register_widget('YARPP_Widget');});
    '

  9. Ecommerce Software Reviews
    Member
    Posted 1 year ago #

    How would you manually delete the entire plugin?

  10. ionelneica
    Member
    Posted 1 year ago #

    i looked in yarpp folder but i can see classes folder inside and cant locate YARPP_Widget.php

  11. marom
    Member
    Posted 1 year ago #

    Dammit, I have the same problem and my site is now inoperable.

  12. Jason Kemp
    Member
    Posted 1 year ago #

    @EcommerceSoftwareReviews use FTP or a file manager to delete the plugin - but renaming it will also work.

    @ionelneica the file is there because I have it up on my screen. In theory you could delete that file but it might have some dependencies in it and so better to do the rename plugin or delete entire plugin until it is fixed.

  13. marom
    Member
    Posted 1 year ago #

    @Jason, do you suggest removing or renaming the whole directory for this plugin?

  14. Ecommerce Software Reviews
    Member
    Posted 1 year ago #

    @Jason Kemp, I have deleted it and everything is back to normal, thank you for your help.

  15. ionelneica
    Member
    Posted 1 year ago #

    hi
    i located the yarpp folder but cant locate classes/YARPP_Widget.php.
    i deleted the yarpp folder but cant access my site or go to dashboard.

  16. Ecommerce Software Reviews
    Member
    Posted 1 year ago #

    @ionelneica, if you deleted the YAARP folder inside wp-content>WP-plugins, you should be able to access your site and login.

    You might need to clear your browser cookies and such.

  17. jlguerreromontero
    Member
    Posted 1 year ago #

    I renamed wp-content/plugins/yet-another-related-posts-plugin by wp-content/plugins/yet-another-related-posts-plugin1 and now runs again.

  18. ionelneica
    Member
    Posted 1 year ago #

    same as above and all ok now!!!!

  19. Jason Kemp
    Member
    Posted 1 year ago #

    @marom both renaming & deleting should work This is standard advice for any plugin misfire.

    Also doesn't hurt to open a new browser as the caching on the one you were using might not show the changes straight away

  20. marom
    Member
    Posted 1 year ago #

    Great, thanks @Jason, much appreciated.

  21. WayfaringRanger
    Member
    Posted 1 year ago #

    Okay, renaming worked for me, too, but I do not understand why renaming a file changes the way it operates.

  22. Jason Kemp
    Member
    Posted 1 year ago #

    @WayfaringRanger renaming a plugin means it can not run. It is the equivalent to deactivating the plugin.

    Usually you can't deactivate the plugin because you can't get into the WordPress admin so going in at the file level works.

    Deleting the plugin also works but you probably want to reinstall the plugin later on ( if/when it gets fixed - or updated). Most plugins write back fields and content to the main WordPress db.

    Some plugins have an un-install function and that should clean the content out of the main db. Deleting a plugin shouldn't lose that other content but you wouldn't want to uninstall.

    Someone else will know more about the connection between deletion and an uninstall process. I don't believe there is one.

    But if you had a rogue plugin that was causing issues you would want to delete it AND almost certainly clean out those files on your main WP database.

    But in a situation like this - just want to deactivate and that preserves the settings and other content for later. ( Once you are back into WordPress admin then you can rename the plugin back to the original and keep it deactivated till a fix has been made.)

  23. jeffparker
    Member
    Plugin Author

    Posted 1 year ago #

    We just pushed out YARPP 4.1.1, which fixes an incompatibility with PHP prior to 5.3. Please upgrade to this latest version. Thanks for supporting YARPP and sorry for any inconvenience!

  24. mp459
    Member
    Posted 1 year ago #

    Wow that was quick. Thanks!

  25. Jason Kemp
    Member
    Posted 1 year ago #

    Thanks Jeff,

    Most of my sites are on PHP 5.3 or later so I wasn't able to test for the error on another site.

  26. mp459
    Member
    Posted 1 year ago #

    Same as Jason with my sites. I can verify that 4.1.1 works with PHP 5.2.17 and the WP 3.7.1

  27. jeffparker
    Member
    Plugin Author

    Posted 1 year ago #

    Great feedback! Thanks, guys!

  28. TComm
    Member
    Posted 1 year ago #

    Thank you very much for fixing this so quickly!

  29. Jason Kemp
    Member
    Posted 1 year ago #

    @WayfaringRanger you should be able to do the update now & if it is fixed - then you can change this topic to resolved as we can't do that.

    P.S it looks ok to me on the sole PHP Version: 5.2.17 - ( bad luck for me)

    I have asked the hosting company to look at moving that site to a PHP ver of 5.3 or later version like all the other sites I look after :)

  30. WayfaringRanger
    Member
    Posted 1 year ago #

    @Jason Kemp, thanks for your assistance. I am a rookie and need all the help I can get . . . . :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic