WordPress site crashed after plug in updates

We recently took control of another company’s website which didn’t seem to have been updated in years. Just updated the plugins and now the site is throwing up this error message whenever we try to open the site as a url or whenever we click on the dashboard of the page we had left open after the update:

Fatal error: Cannot redeclare my_scripts_method() (previously declared in /var/www/vhosts/clear-comms.com/httpdocs/wp-content/plugins/player/Player.php:22) in /var/www/vhosts/clear-comms.com/httpdocs/wp-content/themes/fcs/functions.php on line 159

I can’t get at the css coding to fix anything that might have gone wrong there. Hoping this site can help us?

  • Michael Bissett
    • Recruit

    Hey @Daniel Dyer, Michael here! :slight_smile:

    This would actually be a matter of PHP code (rather than CSS), the theme’s got a function in there with the same name as a function named in this plugin:

    https://wordpress.org/plugins/player/

    So your theme’s conflicting with that plugin there.

    One way to resolve this would be to try switching to a different plugin, such as this:

    https://wordpress.org/plugins/easy-video-player/

    Which would first involve logging into your site via FTP, and re-naming this folder:

    /wp-content/plugins/player/

    As doing that would disable that plugin, and allow you to access your site.

    If you’re wanting to keep the old plugin, and also not change themes, then it means you’d probably be looking to edit the theme’s code (which, depending on how it was made, can mean that you’d need to keep re-applying the changes on every update to the theme).

    Let me know how you wish to proceed here, please!

    Kind Regards,

    Michael

  • Daniel Dyer
    • WPMU DEV Initiate

    Hi Michael,

    Can any of that be done when I currently can’t access the site? This happened before we signed up to the site so this site’s plugin hasn’t been installed on the website.

    I don’t know what the plugin is actually doing on the site. But installing the other one sounds like the best idea if getting into it is possible.

    Thanks

  • Michael Bissett
    • Recruit

    Glad to hear it’s been resolved Daniel, did what I suggest earlier help with that? :slight_smile:

    Also, just for the sake of completeness:

    Can any of that be done when I currently can’t access the site?

    As long as you’re not prevented from logging in via FTP (which would usually be separate from what’s going on from WordPress’s perspective), then yes, what I had advised could have been done. :slight_smile:

    Kind Regards,

    Michael