Jump to content

flydev

Members
  • Posts

    1,366
  • Joined

  • Last visited

  • Days Won

    49

Everything posted by flydev

  1. Hi @theo, you can change it safely, the reason if I remember correctly, is because ProcessWire 2.7.3 was the latest stable version of the 2.x branch - I didn't tested Duplicator on a earlier PW version. Please report here if you could backup it successfully
  2. I used it in an earlier version and I left it in case. I did well not to push the new version.
  3. There are as always Pros and Cons about using a CDN. One of the thing I like with CDN is the multiple-request capability. But on other hand, in a security point-of-view, using a CDN if you are paranoïd will make you crazy knowing that someone could modify the delivered JS code to collect data from your users...
  4. I will add this check, it make sense to me. Also it might be worth to check if the backup destination is being included - e.g. the destination is in the webroot but not excluded - then if yes, the warning appear, as the package will be saved and the ZIP file will grow. As you said, the last package will be saved and the oldest package is removed if the limit is reach. Now I am thinking to make those two settings checking each other giving the priority to the "Remove backup packages older than" setting. I will test it more closely as I would like to keep the compatibility to ProcessWire 2.x in case some people want backup their pw2 website for an eventual upgrade. My brain is overheating today, I'll read again your comments into an hour or so
  5. Hi and welcome to the forum @ihathome If I understand correctly, in your admin page, go to Modules > Configure > SimpleContactForm then check the following screenshot : PS: You should ask your module related questions in their respective thread For SCF, here you go: https://processwire.com/talk/topic/8254-simple-contact-form/
  6. Originally requested by a client, I just wanted to share this fork of this module which now support Facebook video : https://github.com/flydev-fr/TextformatterVideoEmbed
  7. Thanks for testing it @adrian! and I get what you mean. Yes, LazyCron generally will slowdown, we can even say it will break completely the navigation on the website! and should be used with caution. Duplicator support LazyCron as "last" cron solution. About PwCron, I don't see objection for removing it from Duplicator or maybe it could stay as is for people who want to use it. I added support for running cron jobs without external modules. Its already on Github (I will update the README). You have to call it this way (/site/modules/Duplicator/cron.php) : 0 0 * * * php /www/mysite/wwwroot/site/modules/Duplicator/cron.php >/dev/null 2>&1
  8. The thing weird is that you even get a Permission Denied opening the log file... Which web hosting company is ? I don't think so, it's a matter of seconds: set to true - refresh - set to false.
  9. Can you set in your config.php - $config->debug = true; - and post the resulting errors here ? The 500 error came suddenly ? please give us more infos For sure, the Apache or PHP error log contain something. Try to find them.
  10. Its a good question, this night I tested the three different providers (Dropbox, Google and Amazon) and I read about Dropbox they dropped support for the v1 since September 2017. I was aware of that but I didn't knew the exact timeline. So I removed Dropbox from the module in the version 1.0.2 but I found a small wrapper for the v2 coded by a guy on Github - already forked - I will test it if it can help to get back the Dropbox support on Duplicator. I also checked the migration guide, it should not be difficult to port the code to the v2. I just lack a bit time. There is two things I wanted to implement asap (thanks @horst!), now there is three things A small note: GoogleDrive and Amazon still work like a charm. Also I could tested yesterday a deployment on a Google Cloud VM instance (its a pain to setup, as always with Google) with the minimum resources, success!
  11. PM me, maybe I can help
  12. Nice one! I have a small issue with the navbar on my MacBook Pro 13" :
  13. I pushed a small update this night : Fixed changed all _() call to __() for translation string the installer parse correctly the config.php file on windows machine small typo in ProcessDuplicator Added check if ProcessDuplicator module is installed, if yes, then display the link in the local folder overview to the manager I tested Duplicator on a Windows machine with PHP-5.6 and PHP-7.0, I could build a package and cloned the site without issue too.
  14. Hey @bernhard thanks for testing it ! I changed all the __() to _() before releasing the module, I don't know why, so I have no answer here lol I think it was a bit late for my brain. I will fix it in the next version. Yes I can, I was thinking in the first time to check if the ProcessModule is installed and if yes, it show the link to the manager, if not then no link appear. Why ? because the ProcessModule is optional, you can configure Duplicator, the cron job and everything will run without using the manager. But its just an idea. I will test it under Windows, look like something weird is happening while adding the information to the config.php. Thanks again for reporting theses issues !
  15. Also, you could ask why, but oh why they still have this MySQL version full of security vulnerabilities installed on the server ?! Just sayin, this version is eleven years old!
  16. So I must say, 1) upgrade your server, 2) if you can't, ask the support to do it, 3) if they can't do that, get out of this hosting provider..
  17. Maybe your problem is that your server don't met the ProcessWire requirements, it ask for a 5.0.15 or greater version of MySQL. https://processwire.com/about/requirements/ You might want give a try at installing a fresh ProcessWire 3 installation on this server to see what happen. Which hosting type are you using ?
  18. Hi and welcome, The version of the MySQL server could help here. Post also the ProcessWire version (the old and the new) please.
  19. There you can download the module : https://github.com/flydev-fr/Duplicator The documentation is incomplete, you have for now to explore the settings on your own. The install instructions are written but the SDKs are not uploaded yet, which mean that AmazonS3, Dropbox and GoogleDrive are only available by installing them through composer. I will upload them tomorrow but they are not recently tested. Anyway, there is no requirements to run Duplicator as is. Just install Duplicator and Duplicator - Packages Manager then go to Setup > Duplicator and build your package by clicking the button. If everything run smooth, you will see the package listed and you will be able to download it directly and also the installer. To restore a website, just upload the package and the installer then go to yourwebsite.com/installer.php then follow the instructions. PLEASE, do not forget - after the end of the process - to delete the installer.php file and your package (this will be fixed in the v0.0.45). It should work with default theme and the UIkit theme. A dedicated thread will be created in the modules forum soon. Do not hesitate to share here your results by providing your hosting type / provider / config, etc.
  20. Toolbar : Extra plugins : PS: A small suggestion @benbyf, you could include in the first post a) a small "howto customize" the ckeditor and/or b) a list of forum links where people can find useful information on "howto customize" the ckeditor (I remember that sometime I need to look at the javascript source-code of the plugin to find the right button-code to include in the ckeditor settings).
  21. @bernhard : by chance, maybe you used this module in the CRM you've made. Do you know if its possible to generate PDF document containing image charts (from the open-source chartJS lib) ?
  22. Hi and welcome to the forum @vanvt92, I think I am correct saying that there is no limit. You can create as much languages as you need. (but I am curious to see how a big language list is managed in the backend: fields's language tab).
  23. Nice tool @bernhard! I can upload Duplicator - as is - to Github at the end of the day if you would like to compare (maybe @bernhard grabbed a copy). I use the module every day so it should work for everyone at least with decents servers. stay tuned.
  24. Hi and welcome to the forum @paulb. To me, it look like you forgot to add the field to your template (I don't see this step in the tutorial). In the admin, go to Setup > Templates > your_template, add the field comments to it then save.
  25. Inside a hook in admin.php, you have to use $this or wire() to return an object. So $this->fields->get("sport_categorie"); will return your field. About the option field, look at the following code : $this->addHookAfter('Pages::saved', function($event) { $page = $event->arguments[0]; //set the page if($page->template == 'sport-verenigingen-overzicht') { //get the subcategories from the parent textarea, split on newline $subcats = preg_split('/[\n\r]+/', $page->subcats); //(also tried without imploding and adding the array, also doesnt work) //$subcats = implode("|",$subcats); $subcats = implode("\n",$subcats); //get the children $children = $page->children(); foreach ($children as $child) { //set the options(sport_categorie is the options field) //$child->sport_categorie = $subcats; //$child->save('sport_categorie'); $field = $this->fields->sport_categorie; $this->modules->get('FieldtypeOptions')->manager->setOptionsString($field, $subcats, true); $child->save($child->sport_categorie); } //if i use a normal textfield instead of an optionsfield, //all the children have the correct data e.g: test1|test2|test3 //how to get the values into the options field?? } });
×
×
  • Create New...