• Resolved vision-hive

    (@vision-hive)


    You have calls to duplicate_post_is_post_type_enabled() on lines 123 and 149 of duplicate-post-common.php that are passed $post parameters, however when viewing an admin section for a custom post type that does not have a “post_type” value set (for example, Contact Form 7), the following failures are generated:

    Notice: Trying to get property of non-object in C:\Uniserver\www\Access Properties\new.access-properties.com\public_html\wp-content\plugins\duplicate-post\duplicate-post-common.php on line 123

    Notice: Trying to get property of non-object in C:\Uniserver\www\Access Properties\new.access-properties.com\public_html\wp-content\plugins\duplicate-post\duplicate-post-common.php on line 149

    Please update your plugin and adjust your calls to suppress notices for these parameters or add a conditional to check for the existence of the variable before making the call to duplicate_post_is_post_type_enabled().

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Please suppress notices for unset parameters’ is closed to new replies.