Jump to content

adrian

PW-Moderators
  • Posts

    10,773
  • Joined

  • Last visited

  • Days Won

    346

Everything posted by adrian

  1. Hi @dynweb - sorry you're having issues with this newer versions. However, I am struggling to understand why you're seeing that error. Do you see the same problem on other sites / servers? Does a Modules > Refresh help?
  2. @fuzenco - new version just committed that also supports integer & decimal field types as well as float.
  3. Hi @fuzenco - can you please do me a favor and try changing this line: https://github.com/adrianbj/ProcessAdminActions/blob/331e210404b7f883aec04c4342185c04be24d57d/actions/FieldSetOrSearchAndReplace.action.php#L23 to: if (!$field->type instanceof FieldtypeText && !$field->type instanceof FieldtypeFloat) continue; That should work, but please test and let me know and then I'll update the action.
  4. Hi @szabesz - I am heading on vacation tomorrow for a couple of weeks, so it will be a while before I can take a look at this. That said, I am not sure if I can actually do much about this. I actually wonder if this is something that should be raised over at: https://github.com/nette/tracy because I *think* it is something they would be better off fixing in the Tracy core.
  5. Hi @Ivan Gretsky - I am heading on vacation for a couple of weeks as of tomorrow and then of course it will be crazy catching up when I'm back, but thanks for the GH issue. I will try to take a look as soon as I can. Sorry I never got back to it before.
  6. This might be what you're looking for: https://processwire.com/modules/fieldtype-matrix/
  7. Would $pagefile->isTemp() be of use here? https://github.com/processwire/processwire/blob/06325993851113436b20b375a6b08cbf38230657/wire/core/Pagefile.php#L1330 I use it in CustomUploadNames
  8. And of course it has nothing to do with getPage() either :) Just all about findMany()
  9. I'd recommend you post a Github issue about this for Ryan, in case he doesn't read this thread.
  10. Ok, so I can confirm but it doesn't have anything to do with page classes - it appears to be all about getPage() together with findMany(). Here is a bare bones example with page classes disabled. Notice the change in parent between find and findMany:
  11. That's a real shame - I thought we might have been onto something. I just tested findMany() here, calling that same method I demo'd above and everything looks fine. Does this setup demonstrate the issue when you run it on your site?
  12. @ErikMH - nice work narrowing it down to findMany(). Did you know there was a fix for a major issue with findMany() that was implemented for 3.0.195 - https://github.com/processwire/processwire/commit/1eb156f1aac64d388374c63cd401279f8d528481 Does upgrading to the latest dev fix the issue for you?
  13. @ErikMH - it's for a different script, but this page (https://csplite.com/csp217/) explains how to either disable the script in the cloudflare dashboard, or how to adjust your CSP to prevent the error. It's definitely something you'll want to fix because JS errors have a habit of breaking lots of JS everywhere, hence the issues with adminer, but I am sure it won't be the only problem.
  14. Just one last comment - perhaps it's a JS error that is resulting in a similar issue to what I see when JS is off. Any browser dev console errors?
  15. Sorry if I wasn't clear - I thought you had some sites that were working with recent PW versions, so I thought if they were on the same machine you could try connect the non-working install to the DB of a site that is working. I really have no idea if this will uncover anything - just a very crude trial and error approach.
  16. It depends on the view - Tracy makes Adminer context aware. But in the view you are seeing, it should look like this, in which case, it would be the checkbox to the left of "Table". But clearly that is missing from your screenshot. What I can tell is that based on that and some other missing UI elements, it looks like JS is disabled in your browser.
  17. Click the checkbox to the left of "Modify" at the top of the table list.
  18. Another crazy idea - can you point this problematic install to the DB of a site that is working in recent PW core versions? It might help to determine whether it's a problem with the DB or the core files. Maybe also try to run optimize on all of the DB tables? Adminer (within Tracy) makes this easy.
  19. @ErikMH - just throwing out ideas here, but have you tried running: $pages->parents()->rebuildAll(); I know it doesn't seem likely given that everything works with the older PW core, but maybe worth a try :)
  20. I know it's not really any help, but testing here on my local dev setup on PHP 8.0 and PW v3.0.193 (and I just upgraded to v3.0.197 and tested again) with this DefaultPage.php class file: <?php namespace ProcessWire; class DefaultPage extends Page { public function returnParentId() { return $this->parent()->id; // or return $this->parent->id; } } And when I call it, I get the ID of the parent page:
  21. @Flashmaster82 - I think at this point, you just have to wait for Google to reindex your pages. Have you submitted a sitemap.xml to help with this? In the future, if you are protecting the entire site, you might want to use the ProtectedMode module and use the maintenance mode option so Google knows it's temporary and won't update its index.
  22. Hi everyone, Just announcing a couple of new features that have actually been live for a week or so. 1) Guest dumps This allows any calls to bd() be() etc by guest users (regular visitors, webhook calls etc) to be logged and displayed in the Dumps Recorder panel. This panel will open automatically (on page reload) on another browser tab (where you are logged in). To turn this feature on, click the "Enable Guest Dumps" toggle button on the Panel Selector. The cog icon for this panel will change to orange to let you know it's on. There is no security risk having it enabled, but if you have a well trafficked site and it is left on, the file that stores the recorded dumps could become very large so you won't want to leave this on. This is my favorite new feature in a very long time so be sure to try it out. 2) Automatic includes Any files you place in /templates/TracyDebugger/includes/ will be automatically included. You could have a file with some helper functions or the file could have an include statement to pull in a site-wide functions file. This will give you access to any functions in these files via the Console panel.
  23. Hi @tcnet - firstly, I am sorry if I came across as criticizing the module - it was genuine question - I thought perhaps there was some other advantage I wasn't aware of. For example, sometimes I want to be able to access the "Database Queries", "Timers", and "Autoload" sections that are only available in Tracy when debug mode is on. I was wondering if perhaps this module allowed for that. Regarding the changes in 3.0.163 - I thought the ability to install modules being restricted to debug mode and the new $config->moduleInstall() options were both introduced in that version, but maybe I am wrong. I don't see any reason to remove the module - I was just hoping for some clarification so we all know its benefits. Thanks for the contribution!
×
×
  • Create New...