-
Posts
130 -
Joined
Everything posted by nurkka
-
Same here, but I am no longer working so intensively on the project, as it is merely finished. Therefore I have much less page reloads now, and not the same test situation as before. But the "slow downs" are gone for now.
-
[SOLVED] LazyCron possible on every page load, or other technique?
nurkka replied to nurkka's topic in General Support
@Robin S posted a possible solution for this here: -
Hi all! I don't know where to start right now, so I would be grateful for any tips: I need to add a warning message to the first field of a RepeaterMatrix element, indicating when at least one specific other field within the RepeaterMatrix element contains a value. I think the task is not specific to Pro Fields, so I posted it here in general support. Once this first message works, the second task would be to display a warning next to each of the combo field subfields, if the parent field contains a value. In other words, I would need the ability to display warning messages next to fields in the page editor based on the value of other fields. Does anyone know where to start implementing this? Is it only possible with JavaScript or could there be any PW features to do it?
-
Thanks @Robin S for this great module β and all your other great modules, too! I am using really a lot of them, and the number is still growing π DelayedImageVariations works perfectly with JPEG images. But unfortunately, it does not work in my case, because I am using WEBP images, like so: $image_url = $image_object->size(1200,400)->webp()->url; So I get real 404 pages for the generated WEBP-URLs, which result in empty image frames on my website. Is this the expected behaviour, i.e. is WEBP not supported by DelayedImageVariations? Or am I doing something wrong? Additional Info: I am currently not using the .htaccess WEBP to JPEG fallback stuff, which is described here https://processwire.com/blog/posts/webp-images-and-more/#strategy-2-delivering-webp-and-automatically-falling-back-to-jpg-png , because I am using <picture>-tags with srcset everywhere. And also the webpAdd option in $config->imageSizerOptions is set to `false`, which I believe is the default. My site also doesn't use any caching at all. [ Also I just found out, that the "Render Queued Variations" Feature somehow generates the missing WEBP images, too β even if they are not displayed on the "Render Queued Variations" output page, where only the JPEGs are displayed. Although it once takes a long time to reload the frontend page, after using "Render Queued Variations". So it could also be that the WEBPs are generated only on the frontend. But they won't be generated without hitting "Render Queued Variations" first. ]
-
Sorry, I don't remember any details, that was too long ago ...
-
Thanks @dotnetic ! When installing DDEV the first time, I tried to use it "directly" in WSL2, but that didn't work (in my case). I then switched to the windows version of DDEV with Docker Desktop, and that worked perfectly until some days ago. I was really happy with that setup and had not planned to switch that anytime soon π€ͺ Until now, I also had no problems with mutagen, except for sometimes a longer startup time when doing `ddev start`. But when DDEV ran, it always was super fast ... until now. Yes, I have TracyDebugger, but logging is turned off. π€·ββοΈ
-
Thanks @bernhard ! Yes, I turned off everything else with `ddev poweroff` and there are no other heavy tasks running on my computer. And yes, it's a Windows laptop, and some days ago there was a huge Windows update. Perhaps that did mess up something with WSL2, Docker, etc. Running my IDE PHPStorm in the Docker container didn't work well, when I first tried it, so I am currently stuck with that Windows to Docker mutagen sync stuff (which I don't fully understand yet :-)). I will try to find out when exactly the performance drops occur. If anyone had similar performance issues, I would be thankful for any hints.
-
Hi all! I am developing locally with ProcessWire and DDEV, and since some days, ddev slows down very much. When I start it, it's very, very fast, but after some "database interaction" like saving some changes on pages or creating new fields, it gets terribly slow. I mean like 20 to 30 seconds load time in the backend when opening a page. When I do `ddev restart` it's fast again for a short period of time, but after some interaction, it again slows down. There are no errors on the page, I am really sure that this is only an issue with ddev and not with my website project. And it's a rather small project, i.e. no big database etc. Does anyone have any tips what I can do to resolve this problem? I currently don't have any clue what's going on and where or what I could test to find out something.
-
RockShell - a ProcessWire Commandline Companion β¨οΈ
nurkka replied to bernhard's topic in Modules/Plugins
Thanks @bernhard , I will definitely have a look at the custom scripts possibility of RockShell. For now, I have to stick to the bash script. Regarding RPB and RF I have another question: Did I understand it correctly that if I am _not_ uploading my SCSS and JS source files to production, RockFrontend will (on the production server) still include the already bundled files from /site/templates/bundle/ in the <head>? I didn't find that detail in the docs and just wanted to make sure, that my approach is basically correct. -
Thanks @bernhard , I think it would be best, if there was a config setting and an option in the module settings UI. Then the option can be easily copied to other projects with the config.php and also has a visible representation in the UI. That would also be similar to the other options which are listed there, like e.g. "Create LESS file for new blocks".
-
RockShell - a ProcessWire Commandline Companion β¨οΈ
nurkka replied to bernhard's topic in Modules/Plugins
Thank you @bernhard , the parameter -y did the trick! Now db:restore also runs the migrations, but I don't mind that. Does -y always answer all interactive questions with "yes" or only in this case? I didn't find it in the RockShell help and docs. If I didn't miss it somehow, it would be great if it could be added to the help/docs sometime. No problem π I created a file named ddsync.sh in my local webroot with the following contents: #!/bin/bash # Step 1: Dump the database php RockShell/rock db:dump # Step 2: Sync files with rsync rsync -avz --exclude-from='rsync-exclude.txt' . username@remote_server:~/path/to/webroot # Step 3: SSH into the remote server and restore the database ssh username@remote_server "cd ~/path/to/webroot && php RockShell/rock db:restore -y -vv" Given you started DDEV and did `ddev auth ssh` before, you can now start the script with `ddev exec ./ddsync.sh` Of course one could modify the -vv or -y parameters, but I wanted it to run verbose and without any user interaction. My `rsync-exclude.txt` contains exclusions for all files and folders I do not want to be uploaded to the production server, e.g. `config-local.php` or 'ddsync.sh` itself. You can find details here: https://linuxize.com/post/how-to-exclude-files-and-directories-with-rsync/#exclude-multiple-files-or-directories As rsync only uploads changed files, this is very fast, but my current project has only a handful of pages and a small database. So I don't have insights regarding the upload speed with bigger websites yet. I'm workig with Windows, WSL2, Docker Desktop and DDEV running under Windows, so one may have to make some modifications to run that on a Mac. Edit: I recently had to edit the script to make it work on IONOS hosting: # Step 3: SSH into the remote server and restore the database ssh user@host "bash -l -c 'cd ~/path/to/webroot && php RockShell/rock db:restore -y -vv'" -
I would recommend the Duplicator module: https://processwire.com/modules/duplicator/
-
When using LESS files in blocks, RockPageBuilder compiles them automatically (I believe by using RockFrontend) to one main.css file and includes it in the <head>. Is there any setting or config option to change the name main.css to something else?
-
RockShell - a ProcessWire Commandline Companion β¨οΈ
nurkka replied to bernhard's topic in Modules/Plugins
Hi @bernhard , I made a script which dumps the ProcessWire database via RockShell, syncs all my local files to the production server via rsync, connects via SSH to the remote server and then restores the database via RockShell on the remote server. With ddev auth ssh before, the whole script now runs without interaction, except php RockShell/rock db:restore. This command always asks if I am sure to restore the database and trying the parameter -n doesn't help, because the default option ist to abort the command. Would it be possible that you would switch the default of db:restore from abort to import, or add a parameter which overrides the default? Then in combination with -n the deployment script could run without interaction ... That would be great! -
RockForms - Simple, secure and versatile forms based on NetteForms
nurkka replied to bernhard's topic in Modules/Plugins
I installed the new RockForms version 2.0.0 and now everything works: The DataPage is displayed in the page tree and the form submissions are saved as child pages of the DataPage. Filtering via the ProcessWire Find and Bookmarks feature also works like a charm. (I also installed RockGrid (1.0.2), but when trying to create a new Grid, there was an error message (RockGrid::refresh does not exist or is not callable in this context), so I postponed the test until later, when I finished my current project π) Thanks @bernhard ! -
Thanks @bernhard ! Embarrasingly, I forgot that I already had seen that option π° Also, I misinterpreted it, because I thought it meant that, if activated, the users would be able to sort the block buttons by themselves ... Now, it simply works ... I hope the feature won't be removed as it is considered deprecated Thanks a lot for your help!
-
RockForms - Simple, secure and versatile forms based on NetteForms
nurkka replied to bernhard's topic in Modules/Plugins
Thanks @bernhard, and sorry to not have found that myself, as it's right in the documentation π I'll definitely check out RockGrid, too! -
RockForms - Simple, secure and versatile forms based on NetteForms
nurkka replied to bernhard's topic in Modules/Plugins
Thanks @bernhard for making this awesome module! I tested it today and got it to work instantly on a new page. I only had to install RockMigrations, which is a dependency, and RockFrontend. The latter is not defined as a module dependency, but it is needed by RockForms in order to load RockForms.js in the frontend. Unfortunately I was not able to get RockForms to work in my current website project, where I am using RockPageBuilder, Latte, Less, Sass and so on. I am outputting the form within a RockPageBuilder block, which worked instantly. It is also possible to submit forms, and the form data is correctly logged, but cannot be saved to a new form entry page. It always says: "Canβt save page (id=0): /form-submitted-by-lorem-ipsum/: It has no parent assigned". Also, the option "Show datapage in PageTree for superusers" does not show the DataPage in the page list. I believe that somehow, the DataPage (which I assume is the parent in the mentioned error message) was not created when installing RockForms. Currently I don't know where to search for the cause of the problem - perhaps you have any clues? I also have another comment on the UI of RockForms: I have a ProcessWire project, which is already several years old and grew already kind of large, with at least 30 to 40 different forms. The next form I will implement there shall have file-upload, and I would like to do that with RockForms - and possibly migrate all the other existing forms to RockForms, or at least use it for the next 30 forms π But: The RockForms UI currently shows all form entries under one parent and in one list, even if they come from different forms. Example from my test installation of today: This complete list of all form entries wouldn't be practical for my client, because they currently have about 50.000 form entries from about 30 different forms. They would at least need different folders for different forms. And the best thing would be, if they had some search/find/filter functions to quickly find certain form entries. Are these features something you would add to the roadmap? -
Thanks again, the feature is really cool, and I'll definitely use it! Also, I am still thinking about the predefined sort order of the block-thumbnails. Is the only way to pre-sort them, to rename them to let's say "01 HeroImage", "02 Button", "03 Accordion" ? Are the parameters "sort" and "groupSort" used for anything else?
-
Hi @bernhard Thanks a lot - this is really a cool feature! But I fear we have talked past each other ... because I just meant the sort order of the RockPageBuilder thumbnails, not the order of the already created blocks. I am sorry I didn't realize that, and now you had a lot of work with that - sorry for that!
-
Sorry! I meant it would be easier for editor users, if the blocks in the page editor could have the same order as they have initially regarding to the given layout of the page. For example let's say every page always starts with a HeroImage, but the corresponding block would be the fifth in the list of available blocks. So the editors will have to search through the blocks to find the right one to start with, and so on. Of course, they can move the blocks around. But in my experience, they won't do that. They will always follow the same order of blocks. Therefore, I thought they would benefit from pre-sorted blocks, as they can go through them from left to right. Or am I misunderstanding something? I meant the sort order of the "create new block of type XY" icons. π
-
I just wanted to explain, why a client would benefit from pre-sorted blocks in the page editor π
-
Thanks @bernhard ! I am using RockPageBuilder for the first time and already in a real client project, which I have to finish until next week π The project is a small company website with at most six to seven different block types per page. But for the client resp. the person who will be adding new content pages, it would be great, if the blocks had the same order as they are appearing in the layout and on already finished pages. So it would be great if you could add back the sorting. But if the sorting has unwanted side effects, then it would surely be better to just remove it from the docs ... Regarding the copy/clone feature: That would be a great addition! I built some websites and also content management backends for onlineshops with RepeaterMatrix, and when I talked to the clients afterwards, the copy mechanism is always something they are using really often. Would be great to have this available also in RockPageBuilder!
-
I am trying to sort the blocks in the page editor via "sort" and "sortGroup", but they are still sorted alphabetically. I tried every combination of "group", "groupSort" and "sort" with and without various values, but with no luck. Does anyone know how to sort the blocks? Additional question: Is there a feature to copy/clone blocks within the page editor? Thanks in advance!