WP-ecommerce Fatal Error Call to Undefined Function Solution
If you’re using WP-ecommerce shopping cart and you get a fatal error like:
PHP Fatal error: Call to undefined function get_option() in /home/somestore/public_html/wp-content/plugins/wp-shopping-cart/gold_cart_files/merchants/authorize.php on line 9
PHP Fatal error: Call to undefined function get_option() in /home/somestore/public_html/wp-content/plugins/wp-shopping-cart/gold_cart_files/merchants/paypal_payflowpro.php on line 10
PHP Fatal error: Call to undefined function get_option() in /home/somestore/public_html/wp-content/plugins/wp-shopping-cart/gold_cart_files/merchants/bluepay.php on line 9
Try this simple solution:Look in your gold-cart files and see if there are any files other than:
readme.txt
pxaccess.php
grid_view.old.css
grid_view.css
grid_display_functions.php
gold_shopping_cart.php
gold_options.php
gold_cart_readme.txt
gold_cart.js
gold_cart.css
extra_image_processing.php
arrowdown.gif
And these two folders:
merchants
ewaylib
If there are any other files or folders chances are that getting rid of them will take care of your problem. Commonly getting rid of an error-log file if it exists in this folder gets rid of the problem. Sometimes on install people get a gold-cart folder within the gold-cart folder.
The above has worked for me and it has also been noted as a solution on the cart’s developer forum.

Thanks, this helped us out quickly and efficiently!
Question though, how do we keep those error logs from re-generating themselves and saving to the cart directories?
Thanks!
@ Katie,
Probably the best answer to this is look at the file and find out what is causing the error and fix it. This will kill 2 birds with one stone, so to speak. The error file is there to help you diagnose problems with the site that you really should fix even though they often are so minor that they’re never noticed by human visitors.
Oh, oops….I just deleted mine. Ok, good to know then, will address on next occasion, if necessary. Thanks so much!