Jump to content

adrian

PW-Moderators
  • Posts

    10,909
  • Joined

  • Last visited

  • Days Won

    349

Everything posted by adrian

  1. Hey @joshuag - I really need to bump this find() only working on recurring dates issue. Can you please at least confirm that this is definitely the case because I need to start figuring out an alternative. I don't see how this module can be used without it. How can you generate a list of upcoming events when some are recurring and some are not if the find() method only finds the recurring ones. Thanks.
  2. Take a look at these: https://gist.github.com/adrianbj/e391e2e343c5620d0720 https://gist.github.com/adrianbj/e391e2e343c5620d0720 https://gist.github.com/somatonic/5595081 and this conversation: https://processwire.com/talk/topic/1176-hiding-uneditable-pages-from-users/?do=findComment&comment=84916
  3. I don't, but there is this module by @horst - https://modules.processwire.com/modules/pageimage-remove-variations/
  4. Hi @Juergen - I just added the option to both the master and 3.x branches. Let me know if you have any problems. @szabesz did you ever end up testing the autocomplete stuff? Also, I'd like to move 3.x to master pretty soon because it's definitely much easier to work with raw numbers that way. Does anyone have any ideas for any other improvements that might also be breaking changes so we can get these in for this new version?
  5. I would put Tracy in Strict Mode (you can toggle this via the button in the Panel Selector). This way you'll get the Tracy "bluescreen" which will show you a full stack trace so you can figure out what line in your module is causing the problem, rather than the final WireDatabasePDO.php as reported in the warning. The warning is clear that you are providing an array instead of a string, but this will help you figure out where this is happening.
  6. Hey @bernhard - I think it could be a very useful action actually. These are the sorts of things that I come across fairly regularly and an action makes it so much easier. Would you like to create an action and submit a PR?
  7. I'm old school in this regard, but I install all the bits I need via homebrew. Here is a pretty nice guide to getting things up and running: https://getgrav.org/blog/macos-sierra-apache-mysql-vhost-apc
  8. I am surprised you are seeing trashed pages returned in a find call in the first place. Are you using "include=all" in the selector as well - I think that is the only way it will return trashed items.
  9. Another one for you: On the Input tab of a Page Reference field with an AsmSelect inputfield, choose custom for the label field. This enables the "Custom page label format" field, but see how it's below the "Max Limit of Items" option. On UikIt with the newish "percentage" inputfield column widths option.
  10. Been meaning to report this for a while. When the ASM search box option is enabled, the width of the dropdown is too narrow and look item titles wrap which looks ugly and confusing. I am seeing this in the UikIt theme - not sure about the others. Thanks for taking a look!
  11. Good to know - I haven't enabled that section in my RequestInfo panel in forever - I guess that's why I am not seeing the issue with repeater fields. Thanks for narrowing it down.
  12. I guess it's a matter of figuring out what part of that panel is causing the problem. It will most likely be the "Field List & Values" section. So you could try disabling that section only in the module config settings. If everything is still fine with the panel enabled, but that section disabled, then we need to figure out what bit of code in that section is causing the problem. Here's the code for that section: https://github.com/adrianbj/TracyDebugger/blob/2689b8ccc57bd5776a21cf6413a400c68d71a555/panels/RequestInfoPanel.php#L450-L473 In particular I would recommend looking through the getFieldArray() method that it calls. If you feel up to investigating the cause, that would be greatly appreciated. Otherwise, I will need to get some more details about that repeater field, because I have many sites with lots of repeater fields and haven't noticed a problem, so would need to be able to reproduce to debug. Thanks for your help so far.
  13. Hi @vmo - thanks for the hard work narrowing it down to repeaters on the homepage. I have no idea why though at this point. I think the one thing you missed in your debugging was unchecking all the debugbar panels. It would be helpful to know if that helps. If it does, try to narrow it down it a particular panel - most likely the RequestInfo panel. If that doesn't help, then sure send me the zip - I might not have time to look for a little while though.
  14. Glad you like it - thanks for letting me ? @Robin S - I haven't forgotten about your request for validation - just no time at the moment - sorry!
  15. Hi @vmo - sorry I don't have any idea why you'd be getting a 404. Can you try unchecking all panels via the Panel Selector and see if that helps. Also, do older versions of Tracy work any better? Is this a local or server install? What OS are you running? Apache or Nginx? Could you try another install on the same server? Could you try the Module Disabler panel to disable all other modules to see if there is a conflict?
  16. This is when AdminActions (https://processwire.com/talk/topic/14921-admin-actions/) comes in handy: I will get around to providing this as a proof of concept action at some point, but this is what my import page looks like: This has been working great for me because I get to tweak the SQL queries (that I use to generate the CSV files that this action uses) and easily re-import. Just name the CSV files to match the template and this list is automatically generated: It also makes it easy to test with importing a few, many, all, or a selected one: I am going to use this for all my future site migrations.
  17. @MarcoPLY - I haven't used it in a while and unfortunately I don't have time to offer any support, but take a look at: https://github.com/nicoknoll/MigratorWordpress
  18. Me again ? From what I can tell, the find() method only works with recurring dates, or single date events that had the repeat toggle on at some point such that the "dates" json property is populated even if repeat is no longer on. Is there a way to find single date, non-repeating events? This is obviously a critical feature, but from what I can tell the find method's converted selector before being passed to $pages->find only looks for W months/years. Thanks for any help to explain what I am missing here.
  19. Not sure if this is expected or not, but after doing a $recurme->find() and iterating through the returned pages I get this error because there is an image field on the event page. Error: Exception: New page '//' must be saved before files can be accessed from it The "fix" is to do $event->original so I am getting the original page object but this seems like it should not be unnecessary. Any thoughts or am I doing something wrong?
  20. Hey @bernhard - regarding your fd() idea - is there a major difference between it and using l() which already dumps to Tracy log files?
  21. @joshuag - I wanted to point out that the module is generating an invalid RRULE. The RRULE should not include DTSTART, but it should be separate. Instead of this: WKST=MO;FREQ=WEEKLY;DTSTART=20180611T093000Z;INTERVAL=1;BYDAY=MO;UNTIL=20180831T235900Z it should be: DTSTART:20180611T093000Z RRULE:FREQ=WEEKLY;UNTIL=20180831T235900Z;BYDAY=MO The spec also has a separate DTEND which might be worth including. Thanks for looking into fixing this! PS - Have you considered making use of either: https://github.com/rlanvin/php-rrule or https://github.com/simshaun/recurr to do some of the heavy lifting for you? Just out of interest, I am using php-rrule to present the RRULE as a human readable phrase. The recurr library also offers this, but doesn't seem to be as good yet.
  22. Sorry, me again. If you have a non-recurring event and don't specify an end time, both timeEnd and timeEndUnix are populated with midnight. This isn't very helpful when you are trying to format an event and deciding if you need: 9:00 am - 2pm VS 9:00 am Again, it looks like I need to parse the json to see if the end time is actually set or not. Let me know if that doesn't make sense? Thanks again! I am ending up with something like this: $event = $recurme->event($page); $startDate = json_decode($page->event_dates)->startDate echo date('F jS Y', $startDate); if(!$event->allDay) { echo date('g:i a', $startDate); if(json_decode($page->event_dates)->timeEnd != '') { echo ' - ' . date('g:i a', $event->timeEndUnix); } }
  23. Also, with that same setup: it seems there is no way to get the start time via the API because the $event object looks like this. If I try to get the time from the start_date it returns midnight which makes sense, but why is there no timeStart and/or timeStartUnix? Just to follow up, it looks like the only way I can actually the start date (timestamp) is with this: json_decode($page->event_dates)->startDate Is that the only way when it's not a recurring event?
×
×
  • Create New...