Import External Images
EXTERNAL_IMAGES_DIR already defined (3 posts)

  1. ecx
    Posted 3 years 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


  2. Baden
    Posted 3 years 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
    Posted 3 years 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

  • Import External Images
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic