WordPress.org

Ready to get started?Download WordPress

Forums

WP e-Commerce
Debug messages when no table prefix defined (1 post)

  1. myatu
    Member
    Posted 1 year 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 = '';

    Thanks!

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic