• Resolved bitx004

    (@bitx004)


    Love your product, thank you!

    I am up-to-date with WordPress and all plugin updates. I am also running on Windows. I configured my Google Drive on Remote Storage tab. When I try to backup to my Google Drive, I get the following error….

    [2020-02-26 08:04:04][error]An exception has occurred. class:Google_Service_Exception;msg:{
    “error”: {
    “errors”: [
    {
    “domain”: “global”,
    “reason”: “invalid”,
    “message”: “Invalid Value”,
    “locationType”: “parameter”,
    “location”: “q”
    }
    ],
    “code”: 400,
    “message”: “Invalid Value”
    }
    }

    I believe I tracked down the issue to class-wpvivid-google-drive.php:926

    
    $delete_files = $service->files->listFiles(array(
         'q' => "name='".$file."' and '".$folder_id."' in parents",
         'fields' => 'nextPageToken, files(id, name,mimeType)',
    ));
    

    My $file value at runtime is C:\www\my_site\public_html/wp-content\wpvividbackups\localhost_wpvivid-5e56e48ed2b93_2020-02-26-21-35_backup_all.zip. Going off the Google’s messsage that it does not like the q parameter value, I update the code to set the name to the basename and it worked; i.e. name=basename($file). Not sure if this is the proper fix. Please advise.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support tonyrobins

    (@tonyrobins)

    Hi @bitx004

    Thanks for reporting the issue and sharing your findings.

    We will look into the issue soon and will keep you posted on any updates.

    Before that, you can try to re-add Google Drive to the site, and then try to backup again.

    Kind Regards,

    Thread Starter bitx004

    (@bitx004)

    Thanks Tony for replying.

    I have tried what you have suggested multiple times and it did not resolve my issue. I even installed the plugin on a different WordPress installation on my local machine and I experienced the same issue.

    Plugin Support tonyrobins

    (@tonyrobins)

    Hi @bitx004

    We have checked the plugin code and you are right! We should use the basename there. The code has been around for at least several months. Our developers didn’t even notice this. Thank you very much for the information!

    We will update the code in the next Monday’s release (currently we are also making some other changes to the plugin code)

    Thanks!

    Thread Starter bitx004

    (@bitx004)

    Awesome! Thank you for the quick investigation and quick fix. Looking forward to the update.

    Cheers.

    Plugin Support tonyrobins

    (@tonyrobins)

    Hi @bitx004

    We just released a new version of WPvivid Backup Plugin and fixed the issue.

    Please update the plugin and check it out.

    Thanks again for reporting the issue!

    Kind Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Bug? Google_Service_Exception while retrieving list of files’ is closed to new replies.