WordPress.org

Ready to get started?Download WordPress

Forums

Widgets Reloaded
[resolved] WP_DEBUG errors - undefined constant (3 posts)

  1. WebEndev
    Member
    Posted 2 years ago #

    I was troubleshooting another issue in wp_debug and got these when activating the plugin. FYI

    Notice: Use of undefined constant WIDGETS_RELOADED_DIR - assumed 'WIDGETS_RELOADED_DIR' in siteurl\wp-content\plugins\widgets-reloaded\widgets-reloaded.php on line 39

    Notice: Use of undefined constant WIDGETS_RELOADED_URL - assumed 'WIDGETS_RELOADED_URL' in siteurl\wp-content\plugins\widgets-reloaded\widgets-reloaded.php on line 42

    http://wordpress.org/extend/plugins/widgets-reloaded/

  2. Ivaylo Draganov
    Member
    Posted 2 years ago #

    Hi,

    That's just a PHP notice - it won't break anything, but it is annoying. To fix it simply add quotes around WIDGETS_RELOADED_DIR on lines 39 and 42, here's an excerpt:

    /* Set constant path to the members plugin directory. */
    	define( 'WIDGETS_RELOADED_DIR', plugin_dir_path( __FILE__ ) );
    
    	/* Set constant path to the members plugin directory. */
    	define( 'WIDGETS_RELOADED_URL', plugin_dir_url( __FILE__ ) );

    Cheers!

  3. WebEndev
    Member
    Posted 2 years ago #

    Hi dragunoff

    Yes, I did realize that it was just a notice, and would not affect anything. I just wanted the dev to know about it so that it can be corrected in a future release.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic