Hello and thanks for this module,
Problem/Motivation
When I try to add Pixabay as the widget plugin for my entity browser, I get the error message below:
Oops, something went wrong. Check your browser's developer console for more details.
And when I check console with "Ctrl-Shift-i", I get the details as:
Object { message: "\nAn AJAX HTTP error occurred.\nHTTP Result Code: 200\nDebugging information follows.\nPath: /en/admin/config/content/entity_browser/pixabay/widgets?ajax_form=1\nStatusText: OK\nResponseText: ", name: "AjaxError", stack: "@http://drupal.localhost/core/misc/ajax.js?v=10.1.6:196:32\n@http://gp.docker.localhost/core/misc/ajax.js?v=10.1.6:1889:3\n" }
I've also increased max_execution_time and max_input_time in php.ini file, but the problem still exists.
Steps to reproduce
- Install Drupal core 10.1.6
- Install Media Pixabay 3.0.0 with dependencies
- Create a new entity browser, called Pixabay
- Try to "add widget plugin" as Pixabay
- Get the error message
How can I solve it?
Best,
Orkut
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | logger_channel_factory_interface-3405721-5.patch | 1.87 KB | bkomel |
Issue fork media_pixabay-3405721
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
orkut murat yılmazI've checked it after updating to Drupal 10.2.0 and the error is still there:
Comment #3
bkomel commentedHi! I was not able to reproduce the error in the console, by following your steps on either Drupal core versions 10.1.6 or 10.2.0. Do you have any debug turned on perhaps? Can you please paste any related report log errors (The Database logging module has to be enabled)?
Comment #4
orkut murat yılmaz@bkomel, sorry for not providing details about the error message.
I've just tried it on a local DDEV environment and I've faced the same error on the browser console. Then, I've typed "
ddev logs" on my terminal. The last two lines of the output is:Comment #5
bkomel commentedHi! Thank you for the details. You have the drupal/redirect module's submodule redirect_404 installed and enabled. It decorates the Drupal core's logger.factory service with the Redirect404LogSuppressor which implements the LoggerChannelFactoryInterface. The provided patch makes the Pixabay widget plugin accept all LoggerChannelFactoryInterface implementations for the $loggerFactory property.
Comment #6
bkomel commentedComment #7
orkut murat yılmaz@bkomel, thanks for your patch. it works nice:)
can you create a merge request too?
Comment #9
orkut murat yılmaz@bkomel, thanks for the MR too:)
Comment #10
bkomel commented@Orkut Murat Yilmaz, you are welcome :)
Comment #13
slogar32 commentedThank you both for your contributions!
Comment #14
slogar32 commented