WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[Plugin: WooCommerce] Plugin Update Crashed my WP site (8 posts)

  1. naturedoctor
    Member
    Posted 2 years ago #

    Immediately after auto-updating the plugin I get the following error message on my site:

    Fatal error: Cannot redeclare add_local_pickup_method() (previously declared in /nfs/c09/h04/mnt/140732/domains/chesapeakenaturalhealth.com/html/wp-content/plugins/woocommerce/classes/shipping/class-wc-local-pickup.php:74) in /nfs/c09/h04/mnt/140732/domains/chesapeakenaturalhealth.com/html/wp-content/plugins/woocommerce-shipping-local-pickup/woocommerce-shipping-local-pickup.php on line 99

    Now I'm dead in the water. How can I undo or fix this?

    http://wordpress.org/extend/plugins/woocommerce/

  2. asaporito90046
    Member
    Posted 2 years ago #

    Just access your site via FTP and delete the folder - make sure to download it first to your local site and then delete it from your remote side. That will do the trick.

  3. mikejolley
    Member
    Plugin Author

    Posted 2 years ago #

    You can remove the local pickup extension - its been bundled, hence your error.

  4. naturedoctor
    Member
    Posted 2 years ago #

    Thanks, that gets me back into admin on the site. Any insight as to why this happened or how to prevent in the future? Looks like it might be tied to the local shipping plugin somehow.

    Is there a way to install the previous version of woo commerce?

  5. mikejolley
    Member
    Plugin Author

    Posted 2 years ago #

    Local pickup is now *included* in WooCommerce - the author contributed it. So to avoid in future, don't install it again :)

  6. wadimus
    Member
    Posted 2 years ago #

    Hi all,

    I just checked my webpage and saw this--> http://www.collegiatesilver.com
    I have access to my admin page I am a WP n00b and don't yet know how to change via http://FTP.... or really much at all.

    Can someone walk me through the process of recovering my site or reworking code to revert to the older version? I have no clue where to begin.

    Any help would be greatly appreciated!

    W

  7. jacquesoffenbach
    Member
    Posted 1 year ago #

    Fatal error: Cannot redeclare add_local_pickup_method() (previously declared in /home/witgoedshopper.nl/public_html/witgoedshopper.nl/wp-content/plugins/woocommerce/classes/shipping/class-wc-local-pickup.php:159) in /home/witgoedshopper.nl/public_html/witgoedshopper.nl/wp-content/plugins/woocommerce-shipping-local-pickup/woocommerce-shipping-local-pickup.php on line 99

    Woocommerce is my webshop. Have a plugin installation done
    of Woocommerce shipping local pickup. And then error! See website! http://www.witgoedshopper.nl.

    Now I have through my hosting company (yourhosting) understand how to FTP in folder 'plugins' this local shipping delete but nothing helps!

    Who can help me? thank you!

  8. Roy Ho
    Member
    Posted 1 year ago #

    That error simply just means there are two functions with the same name causing "redeclare" error.

    Assuming it is coming from a plugin, you can either rename the function to something else yourself and update all references to it or simply don't use that plugin if there is already a built in function in WooCommerce that does it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic