Title: php notice after activating plugin
Last modified: December 22, 2018

---

# php notice after activating plugin

 *  [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-notice-after-activating-plugin/)
 * 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](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-notice-after-activating-plugin/#post-11024357)
 * 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.

 * ![](https://ps.w.org/wp-file-upload/assets/icon-256x256.png?rev=3252590)
 * [Iptanus File Upload](https://wordpress.org/plugins/wp-file-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-file-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-file-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-file-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-file-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-file-upload/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nickboss](https://wordpress.org/support/users/nickboss/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/php-notice-after-activating-plugin/#post-11024357)
 * Status: not resolved