WP eCommerce
[Plugin: WP e-Commerce] Debug messages when no table prefix defined (1 post)

  1. myatu
    Posted 4 years ago #

    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 = '';



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic