Jump to content

Macrura

PW-Moderators
  • Content Count

    2,637
  • Joined

  • Last visited

  • Days Won

    36

Macrura last won the day on December 26 2019

Macrura had the most liked content!

Community Reputation

3,082 Excellent

2 Followers

About Macrura

  • Rank
    Distinguished Member

Contact Methods

  • Website URL
    http://nibiri.com/

Profile Information

  • Gender
    Male
  • Location
    Westchester County, NY

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. these are errors in the vendor library, which is PW core, so nothing i can do to fix it; Only possibility is that your JS in the field settings has an error. I'm not getting any console errors with any pages running selectize inputfields, or any image fields using tags (which also use the PW core selectize.js).
  2. I have this issue on 2 sites so far - not sure how to fix it – do i need to manually create a dumps.json file in the site/assets/cache/TracyDebugger/ directory? Warning: PHP Warning: file_put_contents(.../public/site/assets/cache/TracyDebugger/dumps.json): failed to open stream: No such file or directory in .../modules/TracyDebugger/includes/TD.php:154
  3. @adrian - I don't see any errors in my console. I don't have any sites running latest dev, but did just check on latest master and don't see any issues. Can you post your field settings?
  4. this one still works great for me: but appears to have been removed from the modules directory. I'm using it on current sites.
  5. Awesomplete? https://processwire.com/modules/text-input-awesomplete/
  6. @gornycreative Currently the fix for the issue you reported is the one i provided. I don't know the internal specifics, but the arrays are not reset when saving the value/processing the form the first time, which is why I had to force any array value to a new array. So you will end up with no [0] index item under some circumstances unless you apply the fix. You can test it by dumping the value and then adding items to any multi page reference field, and then removing them one by one and hit save and look at the arrays. Also note that any 2nd save of the settings page does reset the arrays fully. It must be something to do with where/which hook we are processing the form input; For now this is a safe fix, and i'll cary on researching any further optimizations, but this may be the resolution.
  7. @gornycreative - you can try changing this line (221) $valuesArray[$key] = $f->attr('value'); to this: $valuesArray[$key] = is_array($f->attr('value')) ? array_values($f->attr('value')) : $f->attr('value'); which should always force any value that is an array to reindex to 0 based. Let me know if that solves it.
  8. @gornycreative - thanks for the report, i will test this and post back asap.
  9. Maybe S3 doesn't support fopen (?), i use this for getting files from S3 (though the files are protected); https://css-tricks.com/snippets/php/generate-expiring-amazon-s3-link/
  10. This one is designed to work in the admin, so all of the settings, and how the javascript works is only going to work in the admin. But it's such a simple plugin, you could easily roll it into a formbuilder form.
  11. cool - thanks - did it and it worked. Sorry for the 'false alarm'...
  12. I started getting this error with the latest version: PHP Warning: in_array() expects parameter 2 to be array, string given in .../TracyDebugger/TracyDebugger.module.php:1078
  13. I think it is an important and valid question, discussion topic. One option is to let the admin set, within the module config, which template(s) to be used for X purpose, which page root, and so on. (This is how it is done in various modules). Another option is to include JSON files for field, template and page creation with the module and let the admin install them. Or have the option to install the fields, templates and pages, or not (using a checkbox in mod config), like in the AdminHelp module. This means that anyone who downloads the module will be able to make their own decision about if they want to install all of those things.
×
×
  • Create New...