theo Posted December 8, 2017 Share Posted December 8, 2017 On 12/8/2017 at 2:44 PM, flydev said: Answering from my mobile. Good catch ! I will update the module with your patch, we need now to alert the user that some files are not resdable and thus excluded from the zip. Thanks again @theo! Expand Yes, it took a while. I had the idea before, but was using "file_exists" which is not enough. The file has to be readable. It's all fine now. The files were some hidden ".directory" files, which for a reason were not readable for the webserver. These were blocking the entire zip building process. Thank you. 1 Link to comment Share on other sites More sharing options...
theo Posted December 8, 2017 Share Posted December 8, 2017 There is another little problem. I guess it has to do with mod_userdir. If you go to the package manager page and delete a package (trashcan), the item will be deleted but you will get redirected to an invalid URL. Sort of: /~theo/mysite/~theomysiteprocesswire/setup/duplicator/?action=none Thank you. 1 Link to comment Share on other sites More sharing options...
flydev Posted December 8, 2017 Author Share Posted December 8, 2017 Could you check (inspect) with your browser the data attribute of the "Delete All" button please ? The result should be something like this : Link to comment Share on other sites More sharing options...
BigRed Posted December 8, 2017 Share Posted December 8, 2017 On 12/8/2017 at 7:55 AM, flydev said: I just installed a fresh XAMP on a Windows machine for a test and everything worked there. (XAMP and the bitnami PW module) Are you running the last version of Duplicator (1.1.5) ? When you say briefly, did you mean "instantly" ? if yes, it can be the problem that @theo encountered which is fixed in the 1.1.5. Please let me know, thanks you. Expand I think it is the same problem (I read the rest of the thread). Updating made progress but then I was getting the same error as @theo. I'm a beginner with processwire so I will let you two hash things out and try to update again in a few days. 3 Link to comment Share on other sites More sharing options...
theo Posted December 8, 2017 Share Posted December 8, 2017 @flydev "Delete All" seems OK, but I was talking about the trashcans. <button id="deletePackages" class="ui-button ui-widget ui-corner-all ui-state-default" name="deletePackages" value="Delete All" type="button" data-action="http://localhost/~theo/mysite/processwire/setup/duplicator/?action=deleteAll"><span class="ui-button-text"><i class="fa fa-trash"></i> Delete All</span></button> Trashcan is wrong: <a href="?action=delete&file=2017-12-07_15-22-42-localhost.package.zip" class="trashTrigger" data-action="http://localhost/~theo/mysite/~theomysiteprocesswire/setup/duplicator/?action=none"><i class="fa fa-trash"></i></a> 1 1 Link to comment Share on other sites More sharing options...
flydev Posted December 8, 2017 Author Share Posted December 8, 2017 (edited) I read you too fast! Ok yes I forgot to update this link! Will fix it in 1.1.6 - Thanks theo ! @msavard and did you tried the 1.1.5 if it solve your issue ? Also a small tip for you in case you're not aware. You can use this module - ProcessWireUpgrade - and update the module you want in one click. Edited December 8, 2017 by flydev tip 3 Link to comment Share on other sites More sharing options...
flydev Posted December 9, 2017 Author Share Posted December 9, 2017 Module updated to version 1.1.6, I fixed what we discussed here and included various small fix in ProcessDuplicator and GoogleDrive. 4 1 Link to comment Share on other sites More sharing options...
szabesz Posted December 9, 2017 Share Posted December 9, 2017 On 12/9/2017 at 12:48 PM, flydev said: Module updated to version 1.1.6 Expand Cool Do you have a rough timing estimate for DropBox API v2 support? 1 Link to comment Share on other sites More sharing options...
flydev Posted December 9, 2017 Author Share Posted December 9, 2017 I will try to find the time this week @szabesz Also, if you got 5 minutes and you still have the 1&1 host account, could you test duplicator on it ? I just built a package successfully on 1&1 2 1 Link to comment Share on other sites More sharing options...
szabesz Posted December 9, 2017 Share Posted December 9, 2017 (edited) On 12/9/2017 at 1:10 PM, flydev said: I just built a package successfully on 1&1 Expand Also cool Luckily I moved the site to a speedy VPS and the 1&1 account is cancelled. Since I prefer DropBox it would be great to be able to use the module for remote backups too. I have my own shared hosting account but that is a lot better one than 1&1's shoddy service. Anyway, I will test the current version with my account this weekend. Edited December 9, 2017 by szabesz missing words 1 Link to comment Share on other sites More sharing options...
theo Posted December 9, 2017 Share Posted December 9, 2017 On 12/9/2017 at 12:48 PM, flydev said: Module updated to version 1.1.6, I fixed what we discussed here and included various small fix in ProcessDuplicator and GoogleDrive. Expand Great! Thank you! 1 Link to comment Share on other sites More sharing options...
jacmaes Posted December 11, 2017 Share Posted December 11, 2017 @flydev The FTP issue that I was having a few versions back has been resolved with the recent updates. Thanks! 1 1 Link to comment Share on other sites More sharing options...
flydev Posted December 11, 2017 Author Share Posted December 11, 2017 Thanks for the feedback @jacmaes! I just tested and uploaded the SDKs for Amazon and GoogleDrive. Its available for download at : https://github.com/flydev-fr/Duplicator-SDKs 2 Link to comment Share on other sites More sharing options...
jacmaes Posted December 11, 2017 Share Posted December 11, 2017 @flydev I've uploaded the "Duplicator-SDKs" folder via FTP into the "Duplicator" folder in the modules directory, but the checkbox for Google Drive (I'm only interested in this SDK, not Amazon's) stays greyed out. Is there something else I should do? Link to comment Share on other sites More sharing options...
flydev Posted December 11, 2017 Author Share Posted December 11, 2017 On 12/11/2017 at 3:14 PM, jacmaes said: I've uploaded the "Duplicator-SDKs" folder via FTP into the "Duplicator" folder Expand As the readme say, you have to only upload/merge the SDKs folder which reside inside the Duplicator-SDKs folder. After downloading and opening the Duplicator-SDKs ZIP archive, you have this tree : 2 Link to comment Share on other sites More sharing options...
jacmaes Posted December 11, 2017 Share Posted December 11, 2017 Sorry, I should have checked the docs first. I'm getting the following error with Google Drive: Error: Call to undefined function GuzzleHttp\Handler\curl_reset() (line 78 of /home/mydomain/public_html/site/site/modules/Duplicator/SDKs/google-api-php-client-2.2.0/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php) This site is hosted on a cheap, shared Godaddy account by the way. Link to comment Share on other sites More sharing options...
flydev Posted December 11, 2017 Author Share Posted December 11, 2017 What is the version of your ProcessWire installation ? I tested it on 2.8 and 3.x and everything is running fine. Link to comment Share on other sites More sharing options...
jacmaes Posted December 11, 2017 Share Posted December 11, 2017 The latest dev, 3.085. Maybe curl support is restricted on Goddady, which wouldn't surprise me considering my (awful) experience with them. I'm trying on another server (VPS). So far I'm not getting this error message. Link to comment Share on other sites More sharing options...
flydev Posted December 11, 2017 Author Share Posted December 11, 2017 Thanks, yeah it can be the issue. I am googling just to be sure. Thanks again for your input on this. @jacmaes could you check which version of PHP is installed on the GoDaddy host ? Its almost sure that is a PHP config server error. Link to comment Share on other sites More sharing options...
jacmaes Posted December 11, 2017 Share Posted December 11, 2017 Goddady's PHP version: 5.4. Good news: Google Drive works flawlessly on my VPS. This is great, thanks @flydev ! 1 Link to comment Share on other sites More sharing options...
flydev Posted December 11, 2017 Author Share Posted December 11, 2017 Good ! and for the GoDaddy host then, you have to upgrade PHP through CPanel to at least PHP 5.6 and "maybe" it will work I say maybe because as crappy shared host, you will may encounter timeout issue there. If you upgrade your host and test Duplicator on it, let me know if you managed to build a package successfully. Thanks! 1 Link to comment Share on other sites More sharing options...
dragan Posted December 12, 2017 Share Posted December 12, 2017 What could go wrong, if I tried Duplicator already on two PW installs (both 3.0.81 or thereabouts), both on a Windows machine (local) + remote (*nix), but nothing happens? I chose the default settings + LazyCron. Checked the error logs also - nothing. 2 Link to comment Share on other sites More sharing options...
szabesz Posted December 12, 2017 Share Posted December 12, 2017 (edited) On 12/9/2017 at 1:18 PM, szabesz said: Anyway, I will test the current version with my account this weekend. Expand @flydev Here come my findings: I installed Duplicator on my shared hosting account and also on a VPS and there are no timeout issues but I have noticed the following: - Package Manager's Support button is not liked to https://processwire.com/talk/topic/15345-duplicator-backup-and-move-sites/ - Similarly, lots of module developers also link to the support forum thread and the Module Directory page in the modules's More Information block. Currently it links to https://processwire.com which is not too useful - Package Manager has two buttons: Settings, Support. What about a "Clear Log" button as well? It would clear the Duplicator log file. - until DropBox support is back once more, you might want to update the first post of this thread where it says "Implemented" I use the built in cron.php and it works for me. Edited December 12, 2017 by szabesz typo 2 Link to comment Share on other sites More sharing options...
flydev Posted December 12, 2017 Author Share Posted December 12, 2017 Thanks @szabesz! - About the links, Its actually updated in the next version - ProcessDuplicator will have a "clear logs" button and a "downloads logs" button as the logging mechanism has changed a bit in the new version @dragan there is nothing wrong, I just made a mistake. give me two minutes 3 Link to comment Share on other sites More sharing options...
flydev Posted December 12, 2017 Author Share Posted December 12, 2017 @dragan you should be able to update the module to 1.1.7 and run the job from LazyCron. 4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now