Forum Replies Created

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter egycode

    (@egycode)

    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!

    Thread Starter egycode

    (@egycode)

    Thank you both, @dnutbourne and @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

    Thread Starter egycode

    (@egycode)

    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()

    Thread Starter egycode

    (@egycode)

    Latest version.

    Thread Starter egycode

    (@egycode)

    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 6 years, 7 months ago by egycode.

    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 6 years, 8 months ago by egycode.
    • This reply was modified 6 years, 8 months ago by egycode.
    egycode

    (@egycode)

    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 7 years ago by egycode.
    • This reply was modified 7 years ago by egycode.
Viewing 7 replies - 16 through 22 (of 22 total)