Jump to content

wbmnfktr

Members
  • Posts

    1,969
  • Joined

  • Last visited

  • Days Won

    45

Everything posted by wbmnfktr

  1. As a default? Big NOPE from me. The super easy way and low barrier to enter the world of ProcessWire was one of the main reasons I gave it more than a quick look, did all the tutorials, read the docs, read the forum, ... and stayed. I tried a lot of CMSs back then and because ProcessWire had this "direct output"-way of achieving a lot without needing to know much about PHP or programming in general was the biggest PLUS ever. if/else/echo/foreach is almost everything you need to know to get up and running - and this quite far. Easier than anything. Easier than the Wordpress-loop, Silverstripe's way of doing things, or Drupal and Typo3. Such a delight and super fun to learn something new, a new CMS. Sorry for interrupting this great discussion.
  2. You are not alone. You wouldn't believe how many times I looked this up or the custom icons and colors. 😂
  3. I'm not 100% sure but I think I remember using this module for a similar task: https://processwire.com/modules/import-external-images/ Maybe try it first in a test installation.
  4. Running that test in WireMailSmtp 0.6.4 with ProcessWire 3.0.240 on PHP 8.2 doesn't throw any errors here. Don't have a 3.0.229 at hand right now to test it with. What WireMailSmtp and PHP version are you running?
  5. Why not combine something like PageRender::renderPage() or whatever is closest to your needs and LazyCron in this case? Or trigger it with something in your template or a global include. What do you want to achieve with this?
  6. What Pro module is this or where do I would get it?
  7. Isn't this the most modern way of doing it? html, body { height: 100%; } body { min-height: 100vh; // those who don't know min-height: 100svh; // those who know margin: 0; }
  8. I bet it does but not on the homepage. I skipped through your website and the only page that is cached by ProCache, is the homepage. At least that's the only one I found. Pretty sure as ProCache bypasses all PHP. Just checked it with this. public function init() { if ($this->user->isLoggedIn()) return; // necessary as the backend would trigger this as well $this->wire->log->save('debug', "from init"); } public function ready() { if ($this->user->isLoggedIn()) return; // necessary as the backend would trigger this as well $this->wire->log->save('debug', "from ready"); } I don't know the details about cache maintenance in ProCache but it's more than the init/ready methods. It absolutely is. And yes... you could prioritize hooks but that wouldn't help in this case - I guess: https://processwire.com/docs/modules/hooks/#hook-priority
  9. What's your cache's lifespan? I use 604800=1 week for almost everything. Homepage cleares after an hour, RSS isn't cached at all. Both are the only ones that receive any counts at all. That only triggers when ProcessWire/the module actually boots up. So on first uncached page load. After that neither ProcessWire, nore the module know anything about page loads due to ProCache magic accessing the cached versions. In conclusion you might receive more counts but probably have a way lower lifespan set in ProCache or parts of your page's cache are more often invalidated. I most often publish in chunks once a week so there isn't much happening in terms of deleting the cache. Was my first thought as well!
  10. So... yet another short update here. 2 sites - almost identical in terms of ProcessWire and overall setup - both have issues, only one uses HTMX for preload/prefetch, both use aggressive ProCache settings (cache lifetime 1week+). I'll rule out that HTMX as the issue here. I deleted the MostViewed-log file on both sites, after putting all pages in cache, only un-cached pages were registered anywhere. Can you please double-check and verify on your own site that it still works on pages that are cached in ProCache. A few hours later... [Sponge Bob - sequence voice]
  11. My Tracy is from a few days ago without any configs changed. Anyway... version 4.26.34 works perfectly fine!
  12. Just updated to the latest TracyDebugger version (4.26.33) via Upgrades (ProcessWireUpgrade) module and run into the error above. ProcessWire 3.0.240 PHP 8.2
  13. I looked into the stats once in a while and tried to figure out whats happening but still have no clue. Just for yesterday (2024-07-10) the overall numbers are this: MostViewed logs: 19-28 views tracked (only 3 detected bots and therefore no tracking) MostViewed overview: 20 views listed Google Search Console: 79 clicks Analytics: 132 page views (107 unique visitors) MostViewed's numbers are fine within itself. The 24 hour range is a bit blurry in the logs so I would say this is ok. Looking into the 79 registered clicks in Google Search Console and comparing those with 107 unique visitors in my analytics does make absolute sense when looking into the sources/details which show 83 hits from Google overall and some other sources. So it's not that the module catches too many bots or that the numbers are just slightly off. The views don't even reach the module. I thought about ProCache as an issue but you already cleared that. Cloudflare CDN shouldn't be a problem as well - that would filter out absolutely everything. Here comes the fun part: MostViewed tracks my RSS feed, which isn't tracked/listed/shown in Google Search Console or web analytics and that number is 100% on point. That RSS feed is not cached by ProCache, just standard cache for 1 hour, it's not linked anywhere in the frontend, it's just plain PHP and some RSS/XML output and it doesn't use any templating engine. There are two last things that I can think of that might cause this: HTMX Preload Plugin - some weird AJAX content switching voodoo ProCache - still, as it bypasses almost everything and goes straight to static files
  14. You have a run here. It's impressive! ?
  15. Just to clarify a few things... is this the overall structure you have/want to accomplish? ├── Homepage ├── Houses (template: houses) │ ├── Small House (template: house) │ ├── Medium House (template: house) │ ├── Big Mamas House (template: house) │ │ └── ref_floors: (page reference field: "parent=floors, template=floor") │ │ ├── Basement │ │ ├── 1st Floor │ │ ├── 2nd Floor │ │ └── 3rd Floor │ ├── ... │ └── Super Large House (template: house) ├── Floors (template: floors) │ ├── Cellar (template: floor) │ ├── Basement (template: floor) │ ├── 1st Floor (template: floor) │ ├── 2nd Floor (template: floor) │ ├── ... │ └── Attic (template: floor) └── ... If so... could you mark and add more details where you need some kind of logic/automation, please. And those additional fields where you want to add custom content if and where needed.
  16. I guess this is a good use case for a small hook in /site/ready.php. In this thread are code examples about how to set/activate languages via API and even a hook snippet. Would be the easiest/fastest way to add this behaviour. You would need to limit it to the author template - just in case.
  17. Now I am curious how you solved that. Can you post a snippet of your solution, please.
  18. That's awesome! Side note: Perplexity does such a great job with tasks and questions like this.
  19. I am still on the free plan for now - might get the pro for Claude Sonnet 3.5 support in the chat as that models is a true banger. Whatever nonsense I throw at it, it gets the gist and gives me at least a solid foundation to work on - sometimes even a completely fine working solution.
  20. Out of curiosity, I installed Supermaven yesterday, even though I was quite happy with Codeium, and started playing around with it since then. For now, I am super impressed by its speed, accuracy, and knowledge. While Codeium is more on the PHP side of things, Supermaven seems to know more about or even understands ProcessWire.
  21. Where do you put those projects in your file/folder structure? Inside your home directory, like: /home/stefan/www/project.tld ? Could you try placing projects somewhere else, just to doublecheck it's not a problem with the projects' parent folder. Is there something other you changed?
  22. Haven't played with it yet, but I already love it - and I would pay for it when it solves the issues I face in a project right now, to be honest. A recipe collection with only 200 recipes in 20 categories/cuisines/styles is already hard to manage. I have ProLister but THIS here... is a real game changer. Update: It works as I imagined. Those Kategorien (categories) now list all those recipes (from Low Carb Rezepte) that were assigned by a page reference field. It's great/awesome/I love it! Update 2: One disadvantage of using this module is that you are reminded of how bad your data structure really is. And that even sideprojects should be build with a bit of thinking. I could cry (for joy). ?? What a total chaos. Every line and therefore template and fields to exactly the same.
  23. Well... we have 197 eligible voters (official number from the last EU vote - June 9th, 2024) here. So, yeah... was tough. Got faster internet last year, but still stone age compared to almost everything. Still... I love it here.
×
×
  • Create New...