Title: egycode's Replies - page 2 | WordPress.org

---

# egycode

  [  ](https://wordpress.org/support/users/egycode/)

 *   [Profile](https://wordpress.org/support/users/egycode/)
 *   [Topics Started](https://wordpress.org/support/users/egycode/topics/)
 *   [Replies Created](https://wordpress.org/support/users/egycode/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/egycode/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/egycode/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/egycode/engagements/)
 *   [Favorites](https://wordpress.org/support/users/egycode/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/users/egycode/replies/?output_format=md) [1](https://wordpress.org/support/users/egycode/replies/?output_format=md)
2

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UpdraftPlus: WP Backup & Migration Plugin] fclose() and unlink() errors](https://wordpress.org/support/topic/fclose-and-unlink-errors/)
 *  Thread Starter [egycode](https://wordpress.org/support/users/egycode/)
 * (@egycode)
 * [8 years ago](https://wordpress.org/support/topic/fclose-and-unlink-errors/#post-10622533)
 * By investigating the last error, i found it related to the prune_retained_backups
   function and it seem to occur every day when the backup is being created and 
   uploaded to google drive, the index others may be associated with the folder 
   others and it is triggered while deleting the retained backup from the remote
   server on gooole drive!
 * I reviewed the backup files on my google drive account and i found that backups
   created on 22nd of this month didn’t prune, I set the retain version to only 
   1, so from my understanding it should retain the backup created on 23rd and delete
   the backup created on 22nd? or I’m wrong!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UpdraftPlus: WP Backup & Migration Plugin] fclose() and unlink() errors](https://wordpress.org/support/topic/fclose-and-unlink-errors/)
 *  Thread Starter [egycode](https://wordpress.org/support/users/egycode/)
 * (@egycode)
 * [8 years ago](https://wordpress.org/support/topic/fclose-and-unlink-errors/#post-10622484)
 * Thank you both, [@dnutbourne](https://wordpress.org/support/users/dnutbourne/)
   and [@davidanderson](https://wordpress.org/support/users/davidanderson/)
 * I commented the case switch statement code in the function to log all error types!
   My bad!
 * But I think this error is a different situation, though
 * [23-Aug-2018 02:24:42 UTC] PHP Notice: Undefined index: others in /wp-content/
   plugins/updraftplus/backup.php on line 664
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UpdraftPlus: WP Backup & Migration Plugin] fclose() and unlink() errors](https://wordpress.org/support/topic/fclose-and-unlink-errors/)
 *  Thread Starter [egycode](https://wordpress.org/support/users/egycode/)
 * (@egycode)
 * [8 years ago](https://wordpress.org/support/topic/fclose-and-unlink-errors/#post-10621574)
 * new error in the log today!
 * [24-Aug-2018 03:47:21 UTC] Backtrace from warning ‘constant(): Couldn’t find 
   constant DOING_CRON’ at /wp-content/plugins/updraftplus/class-updraftplus.php
   2712: /wp-admin/admin-ajax.php 100 calling do_action() –> /wp-includes/plugin.
   php 453 calling do_action() –> /wp-includes/class-wp-hook.php 310 calling apply_filters()–
   > /wp-includes/class-wp-hook.php 286 calling updraft_ajax_handler() –> /wp-content/
   plugins/updraftplus/admin.php 1431 calling backupnow() –> /wp-content/plugins/
   updraftplus/includes/class-commands.php 117 calling request_backupnow() –> /wp-
   content/plugins/updraftplus/admin.php 2066 calling do_action() –> /wp-includes/
   plugin.php 453 calling do_action() –> /wp-includes/class-wp-hook.php 310 calling
   apply_filters() –> /wp-includes/class-wp-hook.php 286 calling backupnow_database()–
   > /wp-content/plugins/updraftplus/class-updraftplus.php 2692 calling boot_backup()–
   > /wp-content/plugins/updraftplus/class-updraftplus.php 2933 calling get_semaphore_lock()–
   > /wp-content/plugins/updraftplus/class-updraftplus.php 2712 calling constant()
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UpdraftPlus: WP Backup & Migration Plugin] fclose() and unlink() errors](https://wordpress.org/support/topic/fclose-and-unlink-errors/)
 *  Thread Starter [egycode](https://wordpress.org/support/users/egycode/)
 * (@egycode)
 * [8 years ago](https://wordpress.org/support/topic/fclose-and-unlink-errors/#post-10618805)
 * Latest version.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UpdraftPlus: WP Backup & Migration Plugin] fclose() and unlink() errors](https://wordpress.org/support/topic/fclose-and-unlink-errors/)
 *  Thread Starter [egycode](https://wordpress.org/support/users/egycode/)
 * (@egycode)
 * [8 years ago](https://wordpress.org/support/topic/fclose-and-unlink-errors/#post-10616112)
 * Thank you for your reply!
 * I use a php function that handle php errors which is located in theme functions.
   php file and it return the requested url in the error log as reference for me
   to investigate the error and I already removed the line from stack trace
 * And its obvious in the trace that its related to the updraft plugin!
 * /wp-content/plugins/updraftplus/admin.php(1377): fclose(false)
 *  /wp-content/plugins/updraftplus/admin.php(1378): unlink(”)
 * Also I got this error today after doing automatic backup to google drive!
 * [23-Aug-2018 02:24:42 UTC] PHP Notice: Undefined index: others in /wp-content/
   plugins/updraftplus/backup.php on line 664
 * Couldn’t log a stack trace by the custom php function that handle php errors 
   in functions.php file!
    -  This reply was modified 8 years ago by [egycode](https://wordpress.org/support/users/egycode/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[RSS Aggregator by Feedzy – Feed to Post, Autoblogging, News & YouTube Video Feeds Aggregator] Warning: ./cache is not writeable Error](https://wordpress.org/support/topic/warning-cache-is-not-writeable-error/)
 *  [egycode](https://wordpress.org/support/users/egycode/)
 * (@egycode)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/warning-cache-is-not-writeable-error/#post-10536583)
 * This fixed the issue for me!
 * Editing file class-simplpie in wp-includes directory
 * line #546
 *     ```
                /**
       	 * @var string Cache location (relative to executing script)
       	 * @see SimplePie::set_cache_location()
       	 * @access private
       	 */
       	public $cache_location = ABSPATH . WPINC . '/SimplePie/Cache/cache';
       ```
   
 * And must create cache folder in wp-includes => SimplePie => cache manually on
   the server! it doesn’t created automatically, needs fix too!
 * And line #870
 *     ```
       	/**
       	 * Set the file system location where the cached files should be stored
       	 *
       	 * @param string $location The file system location.
       	 */
       	public function set_cache_location($location = ABSPATH . WPINC . '/SimplePie/Cache/cache')
       	{
       		$this->cache_location = (string) $location;
       	}
       ```
   
 * All changed from
 * `'./cache'`
 * to
 * `ABSPATH . WPINC . '/SimplePie/Cache/cache'`
 * Checked and verified that cache folder contain md5 hashed cache file for rss 
   feed in admin dashboard!
 * I hope this help!
    -  This reply was modified 8 years, 1 month ago by [egycode](https://wordpress.org/support/users/egycode/).
    -  This reply was modified 8 years, 1 month ago by [egycode](https://wordpress.org/support/users/egycode/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[XML Sitemap Generator for Google] Google WebMaster tools flag an error of ‘noindex” for the html map](https://wordpress.org/support/topic/google-webmaster-tools-flag-an-error-of-noindex-for-the-html-map/)
 *  [egycode](https://wordpress.org/support/users/egycode/)
 * (@egycode)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/google-webmaster-tools-flag-an-error-of-noindex-for-the-html-map/page/2/#post-10088524)
 * Try this a temporary fix,
 * Just comment php code in this file google-sitemap-generator/sitemap-core.php
 * Find this code line 1574
 *     ```
       		//Do not index the actual XML pages, only process them.
       		//This avoids that the XML sitemaps show up in the search results.
       		if(!headers_sent()) header('X-Robots-Tag: noindex', true, 200);
       ```
   
 * Just comment out the last line by adding // before.
 * And the other file xml code in this file sitemap.xsl
 * Find this code
 * Line 12:
    `<meta name="robots" content="noindex,follow" />`
 * Comment it out like this
 * `<!--<meta name="robots" content="noindex,follow" />-->`
 * I’m waiting google response as they are validating my fix for the current issue
   and will update my post soon 🙂
 * Thanks.
    -  This reply was modified 8 years, 6 months ago by [egycode](https://wordpress.org/support/users/egycode/).
    -  This reply was modified 8 years, 6 months ago by [egycode](https://wordpress.org/support/users/egycode/).

Viewing 7 replies - 16 through 22 (of 22 total)

[←](https://wordpress.org/support/users/egycode/replies/?output_format=md) [1](https://wordpress.org/support/users/egycode/replies/?output_format=md)
2