• I get the following php notice after activating this plugin:

    Notice: Object of class WP_Post could not be converted to int in .../public_html/wp-includes/general-template.php on line 1018

    The code in general-template.php is expecting $page to be an integer but the plugin is assigning $page to be a WP_post object.

    wordpress_file_upload.php: $page = get_page_by_path($uri);

Viewing 1 replies (of 1 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi, it seems that $page variable is also declared in general-template.php with the same scope and this creates conflict.

    I have made a change to the plugin so that $page does not create conflict.

    What is your email to send it? I would like to see if this fix works, if this is Ok with you.

    Nickolas

Viewing 1 replies (of 1 total)
  • The topic ‘php notice after activating plugin’ is closed to new replies.