here is my patch - as I described above, if the placeholder is for an array, the token will be added before [].
Thanks!
I am creating a patch for this issue
oivanov β created an issue.
@amaisano me too! please share the code of this custom JSON plugin!
Hi guys, this looks exactly like an issue that brought down our dev server after upgrading to Drupal 10.1.5 core. While the band-aid solution is easy - removing XDebug - we do need it (xdebug) on our dev server for...well...developing. @catch - would you be so kind as to bump it up to something "more urgent than normal" please??? Let me know if I can help by providing more data. Thanks!
Happy to help!
oivanov β created an issue.
@dineshkumarbollu - all the changes you've proposed are already implemented as patch#4 and manual fixes, and committed to the respective branch. They are being tested and will be merged soon.
Thanks for your time and consideration nonetheless
Closing as fixed
closing this as it looks like the module is working as designed, the error most likely was due to mis-configuration
will re-open if needed
oivanov β made their first commit to this issueβs fork.
@jsidigital, let me recap :
To get everything working, you need to have the following -
First: in your settings.php you need to have the private file path set like so -
$settings['file_private_path'] = 'sites/default/files/private';
look around Ln. 525 in settings.php. Set the path to a folder of your choosing.
Second: On the Download Statistics module's Config page, you need to have the Count File Downloads check box enabled/checked
Third: on one of the content types, you need to have a field of type File - not Media, just a regular File. In the Field Settings of the field, you need to have Upload Destination set to Private files.
In the Manage Display for that same field, you need to choose File with Download Statistics Recorded.
When all that is set, everything is working for me as expected.
Let me know if you're still having problems.
Thanks!
Oleg
Fixed, I am now a co-maintainer.
The documentation has been updated to emphasize the need for the Private folder as upload destination. I confirm that on Drupal 9 when following all the steps the module works as designed
The documentation has been updated since the issue report. I confirm that on Drupal 9, if following all the setup and configuration steps, the module works as designed
oivanov β created an issue.
This is to confirm that the patch above is correct, but I would also add the required core_version_requirement property - when all that is done, the error goes away
adding a patch for this
oivanov β created an issue.