Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by adrian

  1. Looks nice @tcnet - would you consider a TracyDebugger dump() option? I think most PW users have it installed and it would save the need for the also installing the nice_r() library.
  2. IMPORTANT ALERT!!! Hi everyone, I had a site today that was loading really slowly for the first view for guest users. Turns out the https://restcountries.eu API that this module uses to determine if the user is in Europe is down at the moment, so loading of the site was waiting on a timeout from the failed call to the API. Now obviously the correct thing to do is for this part of the module (if enabled) to make this call asynchronously via AJAX so that it doesn't impact the loading of the site. The logic also needs to be updated so that the banner is also displayed if it can't find the visitor's region. At the moment it only works as a fallback if it can't get their IP address, which is obviously not very useful if the APIs are down.
  3. @jploch - it's definitely not out of scope for Migrator and it would be great to support it. There are a few places in the code where I have id!=2, has_parent!=2 - it's possible that removing those might take care of things. Can I leave it to you to test?
  4. Hi @Ivan Gretsky - I've had a couple of other requests for this so it's definitely on my list. I will try to get to it shortly.
  5. @Clarity - I think you'll need to write your own JS for that scenario. That said, I am a bit confused why you need the two separate fields. Any reason the user can't just select one or many languages from the ASM version? I am sure there is a good reason, I just can't see it :)
  6. @pwfans 1) You can parse out what you need like this: 2) Same as above really, although it will be a little less efficient. 3) It returns true / false if a page is prohibited for the current user.
  7. @jploch - I just tested a full zip export and import and it worked without any issues with the zip. I did just commit some PHP8 fixes, along with properly excluding RepeaterMatrix fields (I never added support for those), so grab the latest commit. That "zip.cpgz" is weird though - I wonder if there is an issue with Valet and the PHP zip library it includes? I wonder if you can convert that to a regular zip (https://www.lifewire.com/cpgz-file-2620362) and try importing that?
  8. @Ivan Gretsky - have you tried the Dumps Recorder panel? It is designed for these situations where the dump gets lost during redirects. Tracy handles some redirects, but not always - never really figured out why, but usually the Dumps Recorder takes care of things.
  9. Please try to add this extension: https://htmx.org/extensions/ajax-header/ so that Tracy sees the ajax request. BTW - thanks again for your donation to Tracy - always appreciated!
  10. Hi @Clarity - it should be a simple matter of using something like: 'showIf' = 'singleLanguageField=' in the array of settings for the AsmSelect field.
  11. You can already do that actually: https://processwire.com/modules/process-admin-actions/#populating-options-via-url-parameters Perhaps you could create a master action that uses a markup field to provide direct links to other actions with the get params in the URL?
  12. Thanks - I understand now. Sounds like a good idea for sure, I'm just not sure the best way to implement at the moment.
  13. Hi @Ivan Gretsky - I don't think I am quite grasping what you are looking for, but certainly happy to consider once I have a proper feel for it. Would it be possible to post some screenshots of the actions that are relevant along with an example explanation of what settings you would like to bookmark? Sounds good to me. I'd certainly like to see more action contributions from the community. There were a couple added to the core AA repo and another by Robin that is maintained as a separate repo, but hooks into AA so that it is available from within it's interface, so there are a couple of different ways to do this.
  14. Hi @Clarity - sorry, I am a bit lost as to what you are asking. Are you referring to a particular action? Is there a place where you are being asked to enter things like 'select', 'text, 'AsmSelect', etc? Maybe post a screenshot of the interface you are finding confusing, or if you are writing a new action, then the list of available field types is only limited to the fields in ProcessWire so that is where you should go for a complete list. Is that what you're looking for?
  15. I am sure it's possible, but as I mentioned, I'd rather avoid the need to add authentication to the module when the current approach seems to be working just fine for normal public video URLs. I feel like there must be some other setting on that video that forces it to only work when embedded. Can you try to make it work without being embedded and see if the module works as expected then?
  16. Maybe you are logged into your Vimeo account? It certainly doesn't show for me:
  17. Maybe there is something I don't understand about certain types of Vimeo links, but take a look at: view-source:https://player.vimeo.com/video/131927792 Note this part of that: "share_url":"https://vimeo.com/131927792" That suggests to me that I should be able to view the video at: https://vimeo.com/131927792 but that link shows "Sorry, we couldn’t find that page", but if I actually let this forum RTE embed the video, it works just fine, eg:
  18. It seems like that video has some restrictions on where it can be viewed. If I try directly at: https://player.vimeo.com/video/131927792 I get a privacy related error, and at https://vimeo.com/131927792 is says it can't find the page. Can you make the video public?
  19. @OllieMackJames - can you provide a link to a vimeo video where this module is currently no longer working. In my testing it still seems OK so I'd like to stick with the current approach if possible because it doesn't require authentication like their new API does.
  20. @d'Hinnisdaël - if you're contemplating moving away from chartjs, can I recommend a library that outputs SVG, rather than canvas - perhaps c3js? The reason being that it makes styling the charts with CSS really easy and also modifying them with D3JS is easy. On a different note, I wonder if you'd consider setting up support for multiple tabs using WireTab? One of my dashboards is getting very long and it would be great to be able to split it up into different views and I think a tabbed interface would be effective.
  21. @kongondo - is there anyway I can easily replicate your setup?
  22. Or maybe the async needs to be in that XMLHttpRequest.prototype.open = function() https://github.com/nette/tracy/blob/a386d3810439f4a72950ed96983b890409c32660/src/Tracy/Bar/assets/bar.js#L475
  23. @kongondo - it sounds like @Rudy is on the right track: https://stackoverflow.com/a/27046133/1524576 This comment on the same thread: https://stackoverflow.com/a/28478146/1524576 is also worth a read. The question I have though is which script is being load synchronously (and shouldn't). Is it perhaps fixable by putting async in the script tag on this line: https://github.com/nette/tracy/blob/da8677c87e4ed645523ea91e0b6cf1d595e60fe1/src/Tracy/Bar/assets/loader.phtml#L22 Maybe you could test that to see if it fixes things for you?
  24. @lpa - typically bd() calls work fine in modules, but there a few reasons why the normal dumps panel may not work (I don't know specifically why it's not working with Padloper), which is one of the reasons why I built the "recorder" version to capture those. Also it is useful to compare dumps across multiple requests.
  25. Thanks - still not sure how there ended up being arrays for the title, but maybe this was from an old version and you haven't cleaned up in a long time? The cache is in /site/assets/cache/TracyDebugger/dumps.json so you can delete that file. Keep in mind that in general you should use the "Clear Dumps" button within the panel itself when it is working again. Also, this is not a panel that you most likely want to leave on all the time and you should clear the dumps after your current debug needs.
  • Create New...