wp-e-commerce / WP-e-Commerce

WP eCommerce - The most popular independent eCommerce platform for WordPress
https://wpecommerce.org
GNU General Public License v2.0
215 stars 216 forks source link

Gold Cart throwing user setup errors #1537

Open ActionScripted opened 10 years ago

ActionScripted commented 10 years ago
  1. Steps to trigger: fresh WP install, default theme. Install and activate WPEC, WPEC Gold Cart and bbPress
  2. Expected: things Just Work™
  3. Instead: the bbPress admin sidebar menu items do not appear. With WP_DEBUG on the error message/s is/are: Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in [docroot redacted]/wp-includes/functions.php on line 3370
  4. Site config:
    • WordPress: 4.0 (not multi-site)
    • WPEC: 3.8.14.3
    • WPEC Gold Cart: 2.9.7.8
    • bbPress: 2.5.4

Seems related to #497. is_user_logged_in() in merchants/wpec_auth_net/user_profile.saved_accouns.php I believe is being called too early, triggering the error.

ActionScripted commented 10 years ago

(Softening that rather dramatic title)

JustinSainton commented 10 years ago

Thanks for the report, @ActionScripted, very much appreciated. I'll connect with @instinct and see about a patch for Gold Cart.