WordPress.org

Ready to get started?Download WordPress

Forums

Import External Images
EXTERNAL_IMAGES_DIR already defined (3 posts)

  1. ecx
    Member
    Posted 1 year ago #

    Turned on WP debugging and caught this error.

    Notice: Constant EXTERNAL_IMAGES_DIR already defined in /wp-content/plugins/import-external-images/import-external-images.php on line 37

    http://wordpress.org/extend/plugins/import-external-images/

  2. Baden
    Member
    Posted 1 year ago #

    Confirmed. I fixed it by editing external-images/import-external-images.php to check if it has already been defined.

    if(!defined('EXTERNAL_IMAGES_DIR')) {
    	define( 'EXTERNAL_IMAGES_DIR' , basename( dirname(__FILE__) ) );
    }

    Please add this to your next release. Or, better yet: do you have your code up on github? Would be happy to fork, fix and submit the fix to you direct. BAM!

  3. elfeffe
    Member
    Posted 1 year ago #

    Hi Baden, did you fix it? Can you post a fork in GitHub?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic