Support » Plugin: UpdraftPlus WordPress Backup Plugin » New PHP notice on Updraft showing up in WP Debug Log Viewer

  • Resolved ambujgarg

    (@ambujgarg)



    Hi – I have been using UpdraftPlus for backing up my site since few months (without any issues) though I never needed a backup yet, as my site was under development. Last week, I installed a plugin GMAIL SMTP for sending automated emails from wordpress through SMTP. However, its access token (Oauth2) was getting revoked every 24 hours when UpdraftPlus used to send the email notification to admin that backup was successfully completed. So, to avoid the conflict, I disabled the email notification from UpdraftPlus to admin, and now the GMAIL SMTP Plugin started to work fine. However, after that, I am seeing a PHP Notice in my WP Debug Log Viewer related to UpdraftPlus as shown below (this relates to a file in UpdraftPlus/Methods/backup-module.php):

    Undefined property: UpdraftPlus_BackupModule_googledrive::$_storage
    Type: PHP Notice Line: 128

    The line ‘128’ in the above file refers to return $this->_storage;

    I don’t know what to make of this PHP notice. Is it a warning of some sort, or are my backups getting completed and transferred to Google Drive succcessfully or not. I can see the backups completed in UpdraftPlus exisitng backups, but not sure whether they are actually usable from Google Drive or not. What does the PHP notice mean?

    Kindly guide and help with resolving this issue. Thanks.

    Best regards,
    Ambuj Garg

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author David Anderson

    (@davidanderson)

    The line ‘128’ in the above file refers to return $this->_storage;

    Can WP Debug Log Viewer show you a full backtrace? I’m not familiar with this tool. If you don’t know either, you could ask the developer of that tool how it’s done.

    David

    Additional information – I found the above PHP notice on Line ‘128’ regarding Undefined property in the ‘log file’ created during backup through UpdraftPlus. I found this message towards the end of the ‘View Log’ in the UpdraftPlus ‘Existing BackUps’ Settings (The ‘WP Log Viewer’ plugin is just displaying this PHP notice on Dashboard). Please note I have set UpdraftPlus to make daily complete backups of my site on Google Drive, and set them to a maximum of 31 backups (so the oldest entry gets deleted every time a new backup is created). It seems from the first half of the log file in Updraft Plus that Backup is successfully created and uploaded to google drive, but this PHP notice appears after that (I am showing you the latter part of the log file below, and the PHP notice is highlighted in Bold), if it helps you debug the issue at your end:

    0222.101 (0) Examining (for files) backup set with nonce=d01d4bdf2450, datestamp=1510314347 (Nov 10 2017 11:45:47)
    0222.101 (0) plugins: over retain limit (31); will delete this file entity
    0222.101 (0) themes: over retain limit (31); will delete this file entity
    0222.101 (0) uploads: over retain limit (31); will delete this file entity
    0222.101 (0) others: over retain limit (31); will delete this file entity
    0222.101 (0) Delete file: backup_2017-11-10-1715_MYSITENAME_d01d4bdf2450-plugins.zip, service=googledrive
    0222.101 (0) Delete file: backup_2017-11-10-1715_MYSITENAME_d01d4bdf2450-themes.zip, service=googledrive
    0222.102 (0) Delete file: backup_2017-11-10-1715_MYSITENAME_d01d4bdf2450-uploads.zip, service=googledrive
    0222.102 (0) Delete file: backup_2017-11-10-1715_MYSITENAME_d01d4bdf2450-others.zip, service=googledrive
    0222.103 (0) PHP event: code E_NOTICE: Undefined property: UpdraftPlus_BackupModule_googledrive::$_storage (line 128, wp-content/plugins/updraftplus/methods/backup-module.php)
    0223.071 (0) backup_2017-11-10-1715_MYSITENAME_d01d4bdf2450-others.zip: Deletion successful
    0223.362 (0) backup_2017-11-10-1715_MYSITENAME_d01d4bdf2450-uploads.zip: Deletion successful
    0223.823 (0) backup_2017-11-10-1715_MYSITENAME_d01d4bdf2450-themes.zip: Deletion successful
    0224.221 (0) backup_2017-11-10-1715_MYSITENAME_d01d4bdf2450-plugins.zip: Deletion successful
    0224.224 (0) This backup set is now empty; will remove from history
    0224.224 (0) Deleting log file (log.d01d4bdf2450.txt)
    0224.225 (0) Retain: saving new backup history (sets now: 31) and finishing retain operation
    0224.229 (0) Resume backup (b194e17f8439, 0): finish run
    0224.230 (0) Decremented the semaphore (fd) by 1
    0224.230 (0) Semaphore (fd) unlocked
    0224.231 (0) There were no errors in the uploads, so the ‘resume’ event (1) is being unscheduled
    0224.233 (0) No email will/can be sent – the user has not configured an email address.
    0224.233 (0) The backup apparently succeeded and is now complete

    Also, I have an additional support query, are you aware of the conflict of UpdraftPlus with GMAIL SMTP plugin when UpdraftPlus sends email notification to admin of successful completion of backup. Do you have some suggestion to resolve this conflict also?

    Thanks in advance for your help and guidance.

    Best regards,
    Ambuj Garg

    I have the same error every time scheduled backup is running.
    Error appears after last update 1.13.16

    Plugin Contributor aporter

    (@aporter)

    Hi Both,

    This notice is nothing to worry about and will not be displayed in the next release.

    Best Wishes,

    Ashley

    Thanks Ashley for the clarification. Can you also kindly shed some light on the apparent conflict between UpdraftPlus and GMAIL SMTP plugin, wherein the autorization token (Oauth2) for GMAIL SMTP is revoked, if the email notification from UpdraftPlus to admin of the website on successful completion of the backup is activated.

    Best,
    Ambuj

    Plugin Contributor aporter

    (@aporter)

    Hi,

    Sorry for the delay, could you confirm which GMAIL SMTP plugin your having the issue with? so I can try and reproduce.

    There shouldn’t be anything in UpdraftPlus that can revoke your Google “Refresh Token”, your “Access token” will expire on it’s own after a short period of time, it’s then up to the plugin to use the “Refresh Token” to get a new “Access Token”, but maybe there is some other conflict which we would need to look into.

    Best Wishes,

    Ashley

    Hi Ashley – Below is the GMAIL SMTP plugin link on wordpress.org, please test it at your end with UpdraftPlus (GMAIL SMTP works fine when installed with UpdraftPlus initially, but when the UpdraftPlus sends the email to admin notifying of successful back, its access tokens get revoked and have to be reauthenticated afresh manually each time. When I unchecked the UpdraftPlus email notifications to admin, both have been working fine together ever since. So, this is how I narrowed down on the problem. I think it has something to do with the Updraftplus email or PHP Notice it generates).

    https://wordpress.org/plugins/gmail-smtp/

    Kindly look into this. Thanks a lot for your help and support.

    Best regards,
    Ambuj Garg

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘New PHP notice on Updraft showing up in WP Debug Log Viewer’ is closed to new replies.