-
Posts
426 -
Joined
-
Last visited
-
Days Won
12
monollonom last won the day on February 20
monollonom had the most liked content!
About monollonom
- Currently Viewing Topic: PromptAI
Contact Methods
-
Website URL
https://eprc.studio
Profile Information
-
Gender
Male
-
Location
Brussels
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
monollonom's Achievements
Sr. Member (5/6)
578
Reputation
-
If your CRON is directly calling your template’s php file then yes it won’t work because ProcessWire isn’t bootstrapped. For a client I’m also using a CRON job that calls: "wget -qO /dev/null https://myclient.com/path/to/page". It basically triggers a GET request and thus renders a page with my script in it (it also sends an email). But it seems OVH only allow to execute a php script so maybe you should look into bootstrapping PW, something like: <?php namespace ProcessWire; include("/path/to/your/pw/installation/index.php"); $pages->get("/your/mailer/")->renderPage(); Regarding your LazyCron PageRender::renderPage is not a static function so it wouldn’t work this way, you should instead do something like: <?php namespace ProcessWire; // in your init.php or ready.php $wire->addHookAfter('LazyCron::everyDay', function(HookEvent $event) { $event->wire()->pages->get("/your/mailer")->renderPage(); $event->log("mailer sent"); }; I’m only surprised by this, maybe they changed something in the meantime...
-
WebP as source/input images - expected behaviour?
monollonom replied to Peter Knight's topic in General Support
Did you check https://processwire.com/modules/webp-to-jpg/ ? -
[deleted]
-
Do you mean your LazyCron hook is not triggered?
-
It's because of the parenthesis in your pages’ title which, unescaped, act like OR groups. Actually it’s because of the commas 🙂 Try using IDs instead and then in your selector: "winner_name=$ids"
-
With a quick search it looks like this is an issue from OVH rather than from PW. Do you have enough traffic to consider using LazyCron instead?
-
New namespaced version - beta testers wanted.
monollonom replied to adrian's topic in Tracy Debugger
Ah! My bad I misread your first post. I don't think I have a local setup with a non-namespaced TracyDebugger but if I do find one, I'll try to update and let you know if anything goes wrong. -
-
New namespaced version - beta testers wanted.
monollonom replied to adrian's topic in Tracy Debugger
I've actually spotted it as a branch on your github and have been using it for some time now. I didn't face any issue as far as I can tell, though I'm using it very lightly, mostly for bd() calls and the console. -
Given RepeaterMatrix is based on Repeater there are no differences performance wise. Actually I did it exactly this way for a project before I purchased ProFields so there’s nothing wrong with that. It’s (mostly) about convenience.
- 3 replies
-
- 1
-
-
- repeater
- field dependencies
-
(and 1 more)
Tagged with:
-
Try to reference the ID instead: section_type=6|7
- 3 replies
-
- 1
-
-
- repeater
- field dependencies
-
(and 1 more)
Tagged with:
-
Thanks! All of them are built using ProcessWire, it's my tool of choice ever since I got introduced to it close to 10 years ago 🙂
- 11 replies
-
- 1
-
-
- markup regions
- template
-
(and 1 more)
Tagged with: