WordPress.org

Ready to get started?Download WordPress

Forums

Web Fonts
Error messages with WP_DEBUG=true (2 posts)

  1. netaesthetics
    Member
    Posted 7 months ago #

    I get the following error messages when using the web-fonts plugin with define('WP_DEBUG', true); set in wp-config.php:

    Notice: Use of undefined constant CACHE_PERIOD - assumed 'CACHE_PERIOD' in /wp-content/plugins/web-fonts/modules/fonts-com/fonts-com.php on line 693

    Notice: Use of undefined constant CACHE_PERIOD - assumed 'CACHE_PERIOD' in /wp-content/plugins/web-fonts/modules/fonts-com/fonts-com.php on line 735

    Notice: Use of undefined constant CACHE_PERIOD - assumed 'CACHE_PERIOD' in /wp-content/plugins/web-fonts/web-fonts.php on line 134

    Notice: Undefined variable: selector_data in /wp-content/plugins/web-fonts/modules/google-web-fonts/google-web-fonts.php on line 320

    Notice: Use of undefined constant CACHE_PERIOD - assumed 'CACHE_PERIOD' in /wp-content/plugins/web-fonts/modules/google-web-fonts/google-web-fonts.php on line 322

    Notice: Use of undefined constant CACHE_PERIOD - assumed 'CACHE_PERIOD' in /wp-content/plugins/web-fonts/modules/fonts-com/fonts-com.php on line 715

    Notice: Undefined variable: selector_data in /wp-content/plugins/web-fonts/modules/google-web-fonts/google-web-fonts.php on line 320

    Notice: Use of undefined constant CACHE_PERIOD - assumed 'CACHE_PERIOD' in /wp-content/plugins/web-fonts/modules/google-web-fonts/google-web-fonts.php on line 322

    Notice: Use of undefined constant CACHE_PERIOD - assumed 'CACHE_PERIOD' in /wp-content/plugins/web-fonts/modules/google-web-fonts/google-web-fonts.php on line 342

    http://wordpress.org/plugins/web-fonts/

  2. ereckers
    Member
    Posted 7 months ago #

    I receive the same thing. You have to go in and manually replace CACHE_PERIOD with the actual value.

    This is in addition to a all kinds of Undefined variable errors in the admin.

    This will probably need to get cleaned up at some point as WordPress will start rejecting plugins in the repository with such errors:

    https://make.wordpress.org/plugins/2013/12/22/notice-svn-will-reject-php-with-errors/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags