Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

CoinBase for Woocommerce - Fatal Error Line 21 #9

Closed
ghost opened this issue Jun 3, 2014 · 8 comments
Closed

CoinBase for Woocommerce - Fatal Error Line 21 #9

ghost opened this issue Jun 3, 2014 · 8 comments

Comments

@ghost
Copy link

ghost commented Jun 3, 2014

Hello all, I'm new to GitHub but I saw another thread about someone having difficulty with the Coinbase Woocommerce plugin. I just installed the plugin and got the error below.

"Fatal error: Cannot redeclare class Coinbase_Exception in /kratonic.com/wp-content/plugins/coinbase-woocommerce-master/coinbase-php/Coinbase/Exception.php on line 21"

I don't have very strong programming skills so I don't know what the message means. Can anyone help me fix this?

@barmstrong
Copy link

@aianus Thoughts?

@aianus
Copy link
Contributor

aianus commented Jun 4, 2014

I just pushed out a big update to the plugin. Can you delete the coinbase-woocommerce-master folder, reinstall, and reopen the issue if you still run into that error?

@aianus aianus closed this as completed Jun 4, 2014
@ghost
Copy link
Author

ghost commented Jun 4, 2014

It resolved the issue with clicking on the settings page within WooCommerce but now after I enter the API Key and Secret Key it gives me the same error.

Although it saves the data after entry, when trying to checkout it will display the same error after clicking to go to Coinbase.

@aianus
Copy link
Contributor

aianus commented Jun 4, 2014

It sounds like you have multiple copies of the coinbase-php folder (or at least the Exception.php file) in your wordpress installation. Try deleting the other copies.

If you're comfortable using the shell on your web server, try

grep -nr 'class Coinbase_Exception' /path/to/your/site

It will show you all the files that declare that class.

@ghost
Copy link
Author

ghost commented Jun 6, 2014

I see a bunch of files, all of which are different. The screenshot of the directory is below.

http://imgur.com/izoGLb1

Are any of these files duplicates? They are named very similarly.

Thank you again for your help! You're great!

@aianus
Copy link
Contributor

aianus commented Jun 7, 2014

No, that looks correct. However, you may have multiple copies of that file in different directories within your wordpress installation. The easiest way to find the duplicates would be using the shell command above or some other kind of search utility (search for coinbase-php or Exception.php).

@ghost
Copy link
Author

ghost commented Jun 9, 2014

Found out it was because I had the other Coinbase Wordpress Plugin installed and it must have conflicted with it. Thanks again, aianus! Kratonic is now Bitcoin ready :)

@aianus
Copy link
Contributor

aianus commented Jun 10, 2014

Glad to hear it @KratonicKratom

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants