WordPress.org

Ready to get started?Download WordPress

Forums

WP Google Fonts
warnings (3 posts)

  1. 3dolab
    Member
    Posted 2 years ago #

    set WP_DEBUG to true in your wp-config.php and the site will throw out

    Notice: Use of undefined constant PLUGIN_URL - assumed 'PLUGIN_URL' in .../wp-content/plugins/wp-google-fonts/google-fonts.php on line 81

    Notice: Use of undefined constant PLUGIN_PATH - assumed 'PLUGIN_PATH' in .../wp-content/plugins/wp-google-fonts/google-fonts.php on line 82

    http://wordpress.org/extend/plugins/wp-google-fonts/

  2. dariodev
    Member
    Posted 2 years ago #

    change lines 81 and 82

    //"Constants" setup
    $this->thispluginurl = WP_PLUGIN_URL . '/' . dirname(plugin_basename(__FILE__)).'/';
    $this->thispluginpath = WP_PLUGIN_DIR . '/' . dirname(plugin_basename(__FILE__)).'/';
  3. alex chousmith
    Member
    Posted 2 years ago #

    i have verified that dariodev's fix works to solve the error notices in WP 3.4.1

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic