Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. same here πŸ™‚ True! I'm using that + RockPdf to generate monthly reports for my clients. The DB is something around 800MB and generating the reports is terribly inefficient, but it works and I think it looks nice and creates value πŸ™‚ Maybe it would have been better to create a simple API inside the container. But it was the simplest solution back then and I think they just want to monitor and don't need to create any reports anyhow πŸ™‚
  3. kaz

    if query

    @zoeck interesting, I didn't know that in an array the search is different
  4. Yesterday
  5. No, the old module doesn't have any fields. The only thing I can do is uninstall it. And I can't even do that because when I try I get:
  6. $items = $pages->find("template=event_day, event_schedule.speakers={$page->id}"); foreach($items as $item) { foreach($item->event_schedule as $repeater_item) { echo $repeater_item->event_title . '<br>'; } } It will echo out all the repeaters for that page, even though the speaker is only in one of them? What's the point of the first portion ($items) if you have to make another exception to see if the speaker is in the second foreach loop?Apologies for perhaps not seeing the forest from the trees!
  7. +1 for uptime-kuma. Setup as a docker container is really straightforward. I have it running on a Synology NAS und use Pushover for push notifications to my iPhone. The only downside is getting data out of uptime-kuma. It stores everything in a sqlite db and you have to get that out of your docker container and use some other tool to generate CSVs for example. Possible, of course, but not as easy as the UI of the frontend might suggest. πŸ˜‰
  8. @V7dev in case you wonder, why you do not see the repater in you dump. Repeaters are pages themself linked to your actual page Also see here for more options to get the repeater items:
  9. So that's what I was missing, thanks so much!
  10. @V7dev you just need a loop $items = $pages->find("template=event_day, event_schedule.speakers={$page->id}"); foreach($items as $item) { foreach($item->event_schedule as $repeater_item) { echo $repeater_item->event_start_date; } }
  11. I can't find anything specific in my searches, so I figured I would ask for some guidance! So I have a repeater field that I'm trying to search for outside a page. Here's my structure: Home Events (events template) Event (event template) Part One (event_day template) Repeater (named event_schedule) Event Start Date (event_start_date) etc... Part Two etc... Speakers (speakers template) So from the speakers template I'm trying to access the repeater with the following: $pages->find("template=event_day, event_schedule.speakers={$page->id}"); How do I access the actual fields inside the repeater, for example, the above dumps the following, which is correct, just can't access the event_start_date field? Let me know if there's more info needed. Thank you!
  12. Wow I missed that thank you. The conditional inclusion is so as to not repeat if running from within PW already, only require if ran from outside PW. var_dump(class_exists('ProcessWire')); returns false from within it so that's why it's \Templates...
  13. New docs about the RockPageBuilder API that makes it easy to import content from old websites and convert it to RockPageBuilder blocks 😎 https://www.baumrock.com/en/processwire/modules/rockpagebuilder/docs/api/
  14. @hellomoto It's a common error. You are outputting data before the headers, but headers must be the first thing to output. Headers are sent by ProcessWire, but you echo something before to include PW: $boot = realpath($boot); echo $boot; // DO NOT echo something... require_once $boot;// $pw_dir.'/index.php'; // ...BEFORE PW sent headers. Also why do you use this code and not a simple include at start of file? include __DIR__ . "/../index.php";
  15. Hey @teppo, I occasionally noticed some PHP Warnings when editing pages that use repeaters: PHP Warning: Attempt to read property "type" on null in .../modules/VersionControl/ProcessVersionControl.module:668 Could be changed to the following to suppress the warning: // before if ($diff && wire('fields')->get($field)->type instanceof FieldtypeFile) $diff = ""; // after if ($diff && wire('fields')->get($field) !== null && wire('fields')->get($field)->type instanceof FieldtypeFile) $diff = ""; Maybe something that could be addressed in a future release?
  16. Hi @kongondo, today I tried to upgrade a ProcessWire website from PW 3.0.210 to 3.0.229. After that, when trying to access pages in the backend, which contain MediaManager fields, the following error occured: ProcessWire\WireException Item 'type' set to ProcessWire\Pagefiles is not an allowed type search File: /html/website/wire/core/WireArray.php:458 448: * 449: * @param int|string $key Key of item to set. 450: * @param int|string|array|object|Wire $value Item value to set. 451: * @throws WireException If given an item not compatible with this WireArray. 452: * @return $this 453: * 454: */ 455: public function set($key, $value) { 456: 457: if(!$this->isValidItem($value)) { 458: throw new WireException("Item '$key' set to " . get_class($this) . " is not an allowed type"); 459: } 460: if(!$this->isValidKey($key)) { 461: throw new WireException("Key '$key' is not an allowed key for " . get_class($this)); 462: } To verify that this error was caused by Media Manager, I renamed the directory "MediaManager" in the modules folder. Then, the error disappeared. I had to downgrade ProcessWire for now, but the website has to be updated sooner or later, as other modules and parts of the site depend on it. Do you have any hints what I can do to avoid this error or is there a bugfix release of MediaManager?
  17. @Tyssen I use this module which builds on this (yours). And it has template select fields on the module edit page. Maybe the old module has also these fields.
  18. I'm using uptime kuma for monitoring my websites and it looks like it can do what you want: Oh, and I'm using https://www.statuscake.com/ to monitor my monitor πŸ˜„ So as uptime kuma is self hosted and needs some time to setup you'd maybe better of with statuscake which offers 10 monitors for free. I just checked and you can use GET and POST
  19. @zoeck the parent page and its children aren't hidden and none of them have a sitemap_ignore field added to them.
  20. Another option would be a 1 minute cron job on a VPS. It could call a script (bash or PHP maybe) that curls through to your API provider and send yourself an email/sms if it fails. Would give you more flexibility to test POST requests.
  21. Thanks! I have also POST Requests but I have a look in it
  22. Hello @markus_blue_tomato If it's only GET requests you need to monitor, you could use Uptime Robot's free tier - it issues a request to the target address every 5 minutes and emails you if it is down. I've used it for years and it has been very reliable.
  23. Nice module! An "autoclose on save" function would still be good πŸ™‚
  24. Did you take note of this information from the module description?
  25. zoeck

    if query

    "if ($article->gallery_images)" just works if the field is set to one image only. You have to use "if (count($article->gallery_images))" if you want to check whether one or more images are available. https://processwire.com/docs/fields/images/ -> "How to tell if a page has images present"
  26. I like it too. Helps to unclutter the backend.
  27. I use some third party SaaS tool which an REST API. They often have troubles and the only solution is writting them an E-Mail to get it fixed. The problem is, often I see the issue very late. Changing the tool is no option for the next months. Does anyone know some good and also not too expensive tool where I can monitor the API requests to the provider - uptime and also if the response has correct data. If some problem appears the tool should send out some warning via e.g. Mail.
  1. Load more activity
Γ—
Γ—
  • Create New...