-
Posts
6,632 -
Joined
-
Last visited
-
Days Won
360
Posts posted by bernhard
-
-
Hey @gebeer thx for that report! I have pushed your suggested fix on the dev branch of RockFrontend 🙂
-
2
-
-
It's a great module either way!
-
1
-
-
Quote
Deprecated: Fluency\FluencyMarkup::ul(): Implicitly marking parameter $id as nullable is deprecated, the explicit nullable type must be used instead in .../site/modules/Fluency/app/FluencyMarkup.php:123
🙂
-
1
-
-
@spoetnik does the latest version of the less parser fix all issues and make it work with the latest version of UIkit?
-
hi @Jonathan Lahijani I can't remember of any flag that I set, but there is $config->external that should be true when used from the cli, which is the case with rockshell.
1 hour ago, Jonathan Lahijani said:Somewhat related: Does it make sense to have RockShell put ProcessWire in CLI mode by default, because currently it doesn't do that and my assumption is that it would? Not sure of the pros/cons of doing that, but I'm assuming you given it some thought.
What is "put PW in CLI mode?", I don't understand.
-
16 hours ago, ryan said:
I'm always interested in making updates to the modules directory, but over time as bandwidth is available to do so.
Thx for the heads up. That's perfectly fine, but it would help if you let us know if something is considered to be implemented in a day, a week or a year or not at all. It would be very frustrating if I went through all my modules and then on the next weekly post get informed that the the requested update is ready and all efforts were useless.
16 hours ago, ryan said:So currently the modules directory does require a populated README.md in your GitHub repo.
I'm confused. My modules are in private git repos. How would I do that? I also tried to add content to the README.md textarea input in the modules directory but it didn't work because I didn't provide a Github url. But providing a Github url to a private repo makes no sense to me.
16 hours ago, ryan said:Any module missing a populated readme shows that message.
I understand it is like this, we can see that. My question was does it have to be like this. I don't think it adds value to anybody, especially not to guest users, as I tried to point out.
16 hours ago, ryan said:For paid modules, that's a category called "premium modules", so if you add your module to that category it should show up as a paid module.
RockCalendar has had this category selected but still doesn't show up. At first I thought the issue might be that I used "premium modules" as second category, but still it does not show up even though I flipped both selected categories. I guess it's because I don't fill the Github url field.
-
2
-
-
The logs directory definitely does NOT need 775. See https://processwire.com/docs/security/file-permissions/#permission-755-for-directories-and-644-for-files
755 is the least restrictive recommendation and as ryan notes if it can be locked down further its recommended to do so. If it only works for you with 775 that's a good and a bad news:
- good: you know that permissions are the issue
- bad: you should fix it properly to make it work with 755
...which should be the case if the webserver runs as the same user that owns the directory and log files. You might want to talk to your hosting company if you are not hosting it yourself.
-
1
-
On 9/9/2025 at 1:04 PM, biber said:
644
This means that only the owner of the file can write to it. Does it have the correct owner?
-
1
-
-
@ryan still none of my paid modules show up in the modules directory.
Also do you have some feedback on my questions/suggestions from 4 weeks ago here and here? I'd like to know if you plan to add the suggested improvements or if I have to update all my modules manually.
When I look at the RockPageBuilder module it (still) looks like this:
Is that warning really necessary? Why is that warning shown to regular (non-logged-in) users? IMHO it doesn't add any helpful information for them. How would a guest user add or update the readme of my module?
I understand that my module does not have a readme, but it has extensive docs here: https://www.baumrock.com/en/processwire/modules/rockpagebuilder/docs/
I put a lot of effort into these docs so it is frustrating that all that is visible in the modules directory is an ugly red warning. Even worse I think this warning can make the impression that the module is dead or not actively maintained, which is not the case and which would be harmful to my business.
The "Project" button does nothing when I click on it. What is it intended to do? And why does it appear on my modules page?
And all that said, why does that lead to my modules not being shown in the list of paid modules? Or is there another reason for that?
Next, a minor thing: Why does it show "Since 2025/01/10" and does it have to be like this? On my releases page the oldest release is v3.6.0 from January 2023 and it would be nice to make it obvious that this module has a long history and has always been actively maintained, updated and improved. I understand that this is likely the date when I added the module to the directory, but it's imho nothing that adds value to my module's entry. Could that be made configurable so that I can show the real release date or instead only (not additionally) show the last updated date there, which would be more helpful information for anybody I guess?
Thx
-
4
-
1
-
-
Of course RockMigrations can do that.
Example migrate.php:
<?php namespace ProcessWire; $rm = rockmigrations(); // install modules $rm->installModule('TracyDebugger'); $rm->installModule('RockDevTools'); $rm->installModule('RockFrontend'); $rm->installModule('AdminThemeUikit', [ 'toggleBehavior' => 1, // consistent 'themeName' => '', // original theme ]); $rm->installModule('RockAdminTweaks', [ 'enabledTweaks' => [ 'General:QuickAdd', 'Inputfields:CopyFieldNames', 'Inputfields:ImageDownload', 'PageList:TemplateLink', 'PageEdit:PrevNextPage', ], ]); $rm->installModule('Less', [ 'useCache' => 1, ]);
-
2
-
-
Glad if it is helpful! I have just pushed an update to the dev branch 🙂
-
1
-
-
13 hours ago, DrQuincy said:
In other words, if you are wanting to manage access to assets you cannot use a static 404 HTML file. Is that right? It makes sense but I just wanted to check.
I don't think so but I don't have time to look into it 🙂
-
Ryan wrote a blog post for you: https://processwire.com/blog/posts/optimizing-404s-in-processwire/ 😉
-
1
-
1
-
-
11 hours ago, poljpocket said:
I am trying to get as close to a mergeable implementation as possible.
Would you mind sharing your sources for what makes code mergeable?
-
Hey @gornycreative that's not planned from my side and I'd not recommend adding it unless you really don't have another option. I added this once so that I can create different colored versions of one website, but using css variables for this is much better! When you use LESS variables you need to keep track of every stylesheet that you generate, eg style-magenta.css and style-blue.css; having 10 colors means having 10 css files to create and load, whereas when using css variables it's just one!
With css variables you can even set different color schemes within one page just by setting a new value for your --theme-color or whatever css variable: <section style='--theme-color: red;'>...</section>
-
5 hours ago, ryan said:
Does anyone know what this "install processwire" thing is that occasionally appears on my android phone when I go to the website?
The browser does that because you have a manifest file which means it is a PWA that is installable and therefore the browser shows the install prompt (https://processwire.com/site/favicon/site.webmanifest), see here: https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/How_to/Trigger_install_prompt
-
6
-
-
Got it working, thank you very much! 🙂
If anybody else if having trouble, here is how to do it:
First, add this to your ddev config:
web_environment: - TRACY_LOCALROOTPATH=$DDEV_APPROOT/This will add the path of the project root as getenv('TRACY_LOCALROOTPATH') in the web container so that you don't have a hardcoded path in your config.
Next add these mappings in init.php:
\Tracy\Debugger::$editorMapping['/var/www/html/public/'] = getenv('TRACY_LOCALROOTPATH') . 'public/'; \Tracy\Debugger::$editorMapping['/var/www/html/src/'] = getenv('TRACY_LOCALROOTPATH') . 'src/';
-
1
-
-
Interesting! As I didn't know what you mean exactly I asked perplexity:
QuoteAdam Wathan, the creator of Tailwind CSS, has publicly stated his regrets about adding the @apply directive to Tailwind. He has mentioned on Twitter that @apply "basically only exists to trick people who are put off by long lists of classes into trying the framework," and he recommends against using it in most cases. He has also said that @apply is the feature that causes the most issues for the Tailwind team and that they spend the most time debugging it.
The main criticisms from Adam and others around @apply are:
- It goes against the core philosophy of Tailwind, which emphasizes using utility classes directly in your markup rather than abstracting them away in CSS files.
- Overuse of @apply can create maintainability problems and unexpected CSS issues, leading to technical debt.
- Adam has bluntly said he regrets adding it and wishes he could "uninvent" the feature.
- If you’re concerned about using DaisyUI or any other tool that heavily relies on @apply, this context from Adam himself helps explain why some Tailwind community members hesitate to embrace solutions built on that directive.
Hm... doesn't make it easier 😄
-
@Jonathan Lahijani thank you very much! A lot of what you wrote resonates with me. Did you also try/consider daisyui? The have 35k stars on Github, a MIT license and so far I didn't find anything that I would miss coming from UIkit.
-
1
-
-
Just found https://preline.co/docs/index.html today and I'm quite impressed! It looks like a more modern UIkit 🙂 @Jonathan Lahijani did you find time to try it since 2022 and have some experiences to share with us?
-
3 hours ago, erikvanberkum said:
As announced in the changelog, I have: ⚠ BREAKING CHANGES
Hey @erikvanberkum what breaking changes are you talking about? MagicPages have been there for ages and the latest breaking change was really only about removing the hideFromGuests feature which should have nothing to do with the MagicPages feature. It sounds like your system is loading RockMigrations multiple times somehow?
Do I understand you correctly that this is a fresh installation of RockCommerce + RockForms + all dependencies? Not an existing site? No updates or anything else?
-
3 hours ago, ryan said:
@adrian Featured is a sort where modules with the "featured" toggle display before those that don't have that setting. That's correct that there aren't a lot of paid modules in the directory at present. I need to add several of mine still too.
@ryan any feedback on my related suggestion? https://processwire.com/talk/topic/31404-weekly-update-– 8-august-2025/?do=findComment&comment=249930
What I forgot to mention: For that to work and to make it secure we'd have two options:
- Add a secret token to the users module directory profile that anybody can use to send update info to the modules directory
-
Use a push-pull concept. The user just triggers and endpoint on processwire.com (like processwire.com/update-module/?module-id=1234) and then PW calls a predefined endpoint to grab data from (eg baumrock.com/get-module-info/?pw-module-id=1234)
This endpoint would have to be defined in the module's directory of the user so that anybody can use their own endpoint.
I'd prefer (1) as this would be a one-time setup on your end and anybody can just copy and paste that token and add it to the request payload for the trigger, eg:
{ "token": "abcdefg", "module-id": "1234", "version": "1.2.3", "readme": "This is a calendar module for PW" }And I think (1) would even be easier to implement on your end as well 🙂
-
2
-
@elabx you might want to use this approach and create a dynamic runtime superuser: https://github.com/baumrock/RockShell/blob/64a453a518e11dc445ae451bf1ca2d5e30126ef6/App/Command.php#L588-L590
$su = new User(); $su->addRole("superuser"); wire()->users->setCurrentUser($su);
-
2
-
-
1 hour ago, dotnetic said:
Great addition @bernhard. I would love to see this in the core. Async and streaming operations are everything, if you do custom programming with ProcessWire. Did you forget to provide a link to the PR or issue on github? I would give a thumb up.
I would prefer to give it more real world testing before I do that. In my projects I seem to get some blocking behaviour if a stream is running. It has not been an issue with the sse based livereload but I'm working on an sse based page edit lock and I'm seeing some strange behaviour unfortunately.
-
1
-
The new website makes it harder to convince clients to use ProcessWire
in Wishlist & Roadmap
Posted
I wouldn't call it extensive knowledge 😅 It was just a regular PW installation that was copied via cronjob to another vhost on the server (both files and DB).