• Resolved kitchin

    (@kitchin)


    Hi, in WP_DEBUG mode, I get this warning:

    Notice: Use of undefined constant AUTOTAGLONG - assumed 'AUTOTAGLONG' in /.../wp-content/plugins/strictly-autotags/strictlyautotags.class.php on line 2276

    Here is the fix, at line 2276:

    -	$options['nestedtags'] = AUTOTAGLONG;
    +	$options['nestedtags'] = 'AUTOTAGLONG';

    https://wordpress.org/plugins/strictly-autotags/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author strictly-software

    (@strictly-software)

    Hi

    Thanks for this but I am just wondering which version are you using and also as you are supposed to quote constants when defining them why my definition of

    if(!defined('AUTOTAG_LONG')){
    	define('AUTOTAG_LONG',2);
    }

    Is erroring as the quotes are around the definition.

    Thanks

    Rob

    Thread Starter kitchin

    (@kitchin)

    Ah, you have a typo, that’s it.

    -	$options['nestedtags'] = AUTOTAGLONG;
    +	$options['nestedtags'] = AUTOTAG_LONG;

    That might fix some behavior, because currently $options[‘nestedtags’] is a string not a number. (Version 2.9.6)

    Plugin Author strictly-software

    (@strictly-software)

    Hi

    It’s only used in the default settings when you first install the plugin so shouldn’t be an issue as you should be setting the value you want and saving once installing the plugin.

    I will look at fixing it though when I do the next free version but it’s not causing issues.

    Thanks for letting me know

    Rob

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use of undefined constant AUTOTAGLONG’ is closed to new replies.