aghilmort
Forum Replies Created
-
Forum: Plugins
In reply to: [Short URL] Import External URLSounds good. thanks!
Forum: Plugins
In reply to: [Short URL] Import External URLSuppose we manually added some external URLs. If we then click the export button, we download a text file which reads something like:
1,1,OHxr4,, 2,,7MwF3,, 0,,Igaj0,http://www.azsos.gov/business_services/tnt/tnt_name_search_instructions.htm,Arizona 0,1,MDfuk,http://www.commerce.state.ak.us/CBP/Main/CBPLSearch.aspx?mode=Corp,Alaska 0,2,eKrYd,http://www.sos.state.al.us/vb/inquiry/inquiry.aspx?area=Business%20Entity,AlabamaHowever, suppose we want to add some external URLs for bulk upload purposes, say like this.
1,1,OHxr4,, 2,,7MwF3,, 0,,Igaj0,http://www.azsos.gov/business_services/tnt/tnt_name_search_instructions.htm,Arizona 0,1,MDfuk,http://www.commerce.state.ak.us/CBP/Main/CBPLSearch.aspx?mode=Corp,Alaska 0,2,eKrYd,http://www.sos.state.al.us/vb/inquiry/inquiry.aspx?area=Business%20Entity,Alabama 0,,Fk1o8,http://www.sos.arkansas.gov/corps/search_all.php,Arkansas 0,,aZoj2,http://kepler.sos.ca.gov/,CaliforniaIf we attempt to upload this file, we simply receive a bunch of warnings saying line 282 is expecting two parameters and only received one and none of the external URLs are added. Furthermore, if we then download the updated list of URLs using the export button, it looks like this:
1,1,OHxr4,, 2,,7MwF3,, 0,0,,, 0,0,,, [... bunch more 0,0,,, rows, one per external URL we imported] 0,,Igaj0,http://www.azsos.gov/business_services/tnt/tnt_name_search_instructions.htm,Arizona 0,1,MDfuk,http://www.commerce.state.ak.us/CBP/Main/CBPLSearch.aspx?mode=Corp,Alaska 0,2,eKrYd,http://www.sos.state.al.us/vb/inquiry/inquiry.aspx?area=Business%20Entity,AlabamaWhat we don’t know is if we’re somehow using the wrong file format for the import process or if there’s a glitch in the code, or if it’s something such as the file must be encoded in some specific format such as Unicode, UTF-8, etc. Thoughts?
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Multiple Google Drive BackupsAppears problem resolved by creating unique project for each backup set. Previously, we created a unique client key for each backup set. We now create a new project for each backup set and then a new client key within that project. So far so good for past week or so with no errors.
representative configuration screen shot at this Google Drive link.
Thanks for working with us to resolve. May be worth mentioning in help file &/or clarifying the on-screen instructions to this effect (if we’re supposed to create a new project and not simply a new client key for each backup set within an existing project, we missed it).
Cheers! & thanks again!
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Multiple Google Drive Backupsit appears to be helpful if we actually visit the google drive folder in addition to the api console and the wp updraftplus settings page while logged into the same account. also using a debug backup appears to be helpful as compared to the backup now button. at the very least the two sites that weren’t working are now working.
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Multiple Google Drive Backupscatching up on your last few suggestions…
nod on cross-site security error – that said, is it possible something happens during backup after backup now is pressed where oauth query returns oh, you’re not logged into right account and fails. Not which account is logged in, simply current account doesn’t match credentials? Primarily asking as a non-expert on oauth?
yes, just re-checked all four sites; all have correct client IDs, secrets, & callbacks. Of those, two sites are working properly and two are not. Should each client id be within it’s own project? Or more precisely, would there be any reason why the google api would flake out if it sees multiple subdomains &/or same IP address using different client ids within the same project from the same external api?
Specific error we get in the log is of the form
0093.339 (0) Google Drive: requesting access token: client_id=redacted-super-secret-id.apps.googleusercontent.com
0093.443 (0) Google Drive error when requesting access token: response does not contain access_tokenthe other weird thing is that sometimes, even after properly re-authenticating with the correct account the error remains. In other words, we log into right account in anonymous session, get queried that the Google api wants permissions, we accept, and error still remains.
Other ideas for us to look at, known plugin conflicts, etc?
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Multiple Google Drive BackupsBased on additional testing, we can verify the error does occur after click backup now on the settings page while not currently logged into the same Google account as the account which the backup is using.
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Multiple Google Drive BackupsBased on that post, is it possible the Google Drive API is interpreting multiple requests from UpdraftPlus (within the same Google account) as being from the same app (even if the client ID is different) as somehow being different and thus exceeding the credential limit in some way.
In other words, the solution may simply be to create a different Google account for each site? Or just explore using SFTP since the fix may not be easy, even if we can collectively determine the root cause?
Interestingly enough, we’ve only been using UpdraftPlus since ~June 2013, so that post wouldn’t seem to apply, and our initial site using it hasn’t ever generated an expired oauth session and it uses the same google account as the other 4-5 sites.
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Multiple Google Drive BackupsHmm – each site has unique client ID & secret, which is set appropriately.
It’s possible there’s an expiration setting – the Google Drive API talks about it being an hour, however, that may simply be to be using their credentials creation console or drive itself and not necessarily when using it via the API. Possibly worth looking into, though WP-cron’s most often rate, hourly refresh, is right at the same level. So if “credential refresh” proved to solve it, might need two tasks running every hour which are offset by 30 minutes each to guarantee meets the hourly requirement.
One question might be – what happens when we click Backup Now – does that perchance peek at whatever our current Google credentials are and perhaps override the original oauth – that’s the only thing I can think of based on your suggestions that could be creating the bug. Alternatively stated, should we only click backup now when also logged in as the Google account we used to create the client ID / secret?
We’re taking a look at premium – the migrator addon is perhaps our biggest need at this time. Will advise if we need to transition this thread to your paid forums due to WordPress.org guidelines.