Title: PHP Warning in Import/Export area
Last modified: August 31, 2016

---

# PHP Warning in Import/Export area

 *  Resolved [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/)
 * Hi there!
 * I get some errors with your plugin.
 * Warning: fopen(/home/jorjfls/public_html/blog//wp-content/plugins/quick-adsense/
   quick-adsense.php): failed to open stream: No such file or directory in /home/
   jorjfls/public_html/blog/wp-includes/functions.php on line 4463
 * Warning: fread() expects parameter 1 to be resource, boolean given in /home/jorjfls/
   public_html/blog/wp-includes/functions.php on line 4466
 * Warning: fclose() expects parameter 1 to be resource, boolean given in /home/
   jorjfls/public_html/blog/wp-includes/functions.php on line 4469
    Salvează modificările
 * [https://wordpress.org/plugins/quick-adsense-reloaded/](https://wordpress.org/plugins/quick-adsense-reloaded/)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969149)
 * Hello,
 * the plugin you are using “quick-adsense” is another plugin:
    [https://wordpress.org/plugins/quick-adsense-reloaded/](https://wordpress.org/plugins/quick-adsense-reloaded/)
 * Try out if this plugin quick adsense reloaded works for you instead.
 *  Thread Starter [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969167)
 * But I use reloaded version.
    This is the strange part! The warning message appears
   after the import/export options. I think some where in the code you forgot to
   change something from the old plugin version!
 * So, I dont have installed quick-adsense, the older version. I have the new one,
   the reloaded version!
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969168)
 * That’s really strange because `/home/jorjfls/public_html/blog//wp-content/plugins/
   quick-adsense/quick-adsense.php` is definitely part of quick-adsense and not 
   the current new plugin.
 * Have you used quick adsense in the past and uninstalled it in the meantime? Maybe
   some of the old db entries were not deleted properly by the old plugin.
 * You could try to install the old plugin again and than just disable it. Is this
   helpful?
 * If you like to you can send me a screenshot of the error to support at wp-staging
   dot com
    Maybe this brings some light into it
 *  Thread Starter [Cristescu Bogdan](https://wordpress.org/support/users/cbogdan/)
 * (@cbogdan)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969173)
 * I install your plugin last night. I check before that, the older version, and
   you say in a comment that a new version will come. So I search in plugin repository
   for the new one, I found it, I install it! I never install the older version 
   before!
 * I installed now the older verision. Activate, deactivat, delete. But the warning
   is still there.
 * I check in database for any entry for “quick-adsense” and the only results are
   in wp-options table but for quick-adsense-reloaded (install, update etc.)
 * I check the page source and this warning appear between the form and the submit
   button. So there is and error with call functions in this area.
 * Its not a big problem for me, I just see and tell you about it!
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969174)
 * > Its not a big problem for me, I just see and tell you about it!
 * Thank you very much for this. My offer is still valid and you can give me a shout
   via mail.
 *  [Cokaric](https://wordpress.org/support/users/cokaric/)
 * (@cokaric)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969418)
 * I am receiving same error as well on my Import/Export page.
 * WordPress version
    4.4.2
 * Plugin version
    1.0.4
 * Heres the System info
 * ### Begin System Info ###
 * — Site Info
 * Site URL: [http://pitaj.online](http://pitaj.online)
    Home URL: [http://pitaj.online](http://pitaj.online)
   Multisite: No
 * — User Browser
 * Platform: Windows
    Browser Name: Chrome Browser Version: 48.0.2564.116 User Agent
   String: Mozilla/5.0 (Windows NT 10.0; WO W64) AppleWebKit/537.36 (KHTML, like
   Gecko) Chrome/48.0.2564.116 Safari/537.36
 * — WordPress Configuration
 * Version: 4.4.2
    Language: en_US Permalink Structure: /%year%/%monthnum%/%day%/%
   postname%/ Active Theme: Academica 2.0 Show On Front: posts Remote Post: wp_remote_post()
   works Table Prefix: Length: 3 Status: Acceptable WP_DEBUG: Disabled Memory Limit:
   40M Registered Post Stati: publish, future, draft, pending, private, trash, auto-
   draft, inherit
 * — QUADS Configuration
 * Version: 1.0.4
    Upgraded From: None
 * — WordPress Active Plugins
 * AccessPress Anonymous Post: 2.5.1
    Add Meta Tags: 2.10.9 CloudFlare: 1.3.20 Facebook
   Comments Plugin: 2.3.3 Gallery Lightbox Lite: 1.0.0.25 Google Adsense Dashboard:
   2.2.1 Google Analytics Dashboard for WP: 4.9.2 Mango Buttons: 1.2.8 Menu Icons:
   0.9.2 NextGEN Facebook (NGFB): 8.25.0 Real-Time Find and Replace: 3.6 Social 
   Sharing Buttons: 2.2.4 Top Bar: 1.2 WP QUADS – Quick AdSense Reloaded: 1.0.4 
   XML Sitemap & Google News feeds: 4.5.1
 * — WordPress Inactive Plugins
 * Google AdSense: 1.2.1
    Photo Gallery: 1.2.89
 * — Webserver Configuration
 * PHP Version: 5.4.34
    MySQL Version: 5.5.48 Webserver Info: Apache
 * — PHP Configuration
 * Safe Mode: Disabled
    Memory Limit: 256M Upload Max Size: 32M Post Max Size: 32M
   Upload Max Filesize: 32M Time Limit: 30 Max Input Vars: 1000 Display Errors: 
   On (1)
 * — PHP Extensions
 * cURL: Supported
    fsockopen: Supported SOAP Client: Not Installed Suhosin: Not
   Installed
 * ### End System Info ###
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969419)
 * Hi,
 * can you enable WordPress debug mode and let me know exact error notice?
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969420)
 * Fixed in latest version. Thanks for the logs.
 *  [mgmahag](https://wordpress.org/support/users/mgmahag/)
 * (@mgmahag)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969438)
 * What was the version number this was fixed in?
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969440)
 * New update with another fix for this is coming today
 *  [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969450)
 * [@rene](https://wordpress.org/support/users/rene/) Hermenau – Curious what the
   error in your code actually was. I haven’t used your plugin but one of my plugins
   users reported the exact same issue loading the main plugin file for my plugin
   Popup Maker, but its 1 user / 50,000 sites so I can’t for the life of me see 
   why this would only happen to her.
 * Not corrupted plugin files already tried all that as well, saw you fixed it with
   a patch, curious if you can elaborate.
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969451)
 * [@danieliser](https://wordpress.org/support/users/danieliser/)
 * That is the broken code:
 *     ```
       if ( is_plugin_inactive( $plugin_file ) ) {
               $plugin_data = get_plugin_data( $plugin_abs_path, $markup = true, $translate = true );
   
               if ($plugin_data['Version'] === $checkVersion){
                   return true;
       }
           }
       ```
   
 * and the fixed one:
 *     ```
       if ( file_exists( $plugin_abs_path ) && is_plugin_inactive( $plugin_file ) ) {
               $plugin_data = get_plugin_data( $plugin_abs_path, $markup = true, $translate = true );
   
               if ($plugin_data['Version'] === $checkVersion){
                   return true;
       }
           }
       ```
   
 * As you can see in the first example get_plugin_data() is executed even if the
   plugin is not installed at all.
 * I bet you have a similar missing file_exists() condition.
 *  [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969452)
 * [@rene](https://wordpress.org/support/users/rene/) Hermenau – No don’t think 
   thats it for me, we don’t load our main plugin file at all and that is the file
   getting an error to load. Appreciate you getting back to me so soon though.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘PHP Warning in Import/Export area’ is closed to new replies.

 * ![](https://ps.w.org/quick-adsense-reloaded/assets/icon-256x256.png?rev=2369641)
 * [Quads Ads Manager for Google AdSense](https://wordpress.org/plugins/quick-adsense-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-adsense-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-adsense-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-adsense-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-adsense-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-adsense-reloaded/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 13 replies
 * 5 participants
 * Last reply from: [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/php-warning-in-importexport-area/#post-6969452)
 * Status: resolved