WordPress.org

Support

Support » Plugins and Hacks » WP eCommerce » [Plugin: WP e-Commerce] Debug messages when no table prefix defined

[Plugin: WP e-Commerce] Debug messages when no table prefix defined

  • Hi there,

    Just a heads up and fix on a minor issue. When there’s no $table_prefix defined in wp-config.php and WP_DEBUG is enabled, the plugin gives numerous warnings like such:

    Notice: Undefined variable: wp_table_prefix in /var/www/sites/wordpress-dev.localnet/public/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants.php on line 116

    A quick fix, by ensuring $wp_table_prefix is always defined, is by adding the following at line 103:

    $wp_table_prefix = '';

    Thanks!

    http://wordpress.org/extend/plugins/wp-e-commerce/

  • The topic ‘[Plugin: WP e-Commerce] Debug messages when no table prefix defined’ is closed to new replies.
Skip to toolbar