You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new event, the backend throws a 500 Internal Server Error. The issue is caused because the HTMLPurifier library cannot write to its cache directory (DefinitionCache/Serializer).
Error Logs
[2024-12-17 12:36:51] local.DEBUG: Stripe secret key is not set in the configuration file. Payment processing will not work.
[2024-12-17 12:36:51] local.ERROR: Directory /app/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer not writable.
{"userId":1,"exception":"[object] (ErrorException(code: 0): Directory /app/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer not writable.
at /app/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php:295)
Go to the /events endpoint and attempt to create a new event.
The server returns a 500 Internal Server Error.
Logs indicate the DefinitionCache/Serializer directory is not writable.
Expected Behavior
The event should be created successfully without errors.
Actual Behavior
The server throws a 500 error due to a write permission issue.
Root Cause
HTMLPurifier Cache Directory Issue:
The DefinitionCache/Serializer directory does not have the correct write permissions, causing HTMLPurifier to fail when attempting to write cache data.
Stripe Configuration:
The Stripe secret key is missing in the .env file.
Environment
running in docker the Local development version without stripe or keys
The text was updated successfully, but these errors were encountered:
No, that all does not work, that seems to be a permission settings issue, I have tried all kinds of permissions, I have tried on windows, wsl, straight linux.
Does it work for you?
It seems to be the same error over and over again:
. HTMLPurifier “not writable” Error
HTMLPurifier is trying to create/write cache files in:
Description
When creating a new event, the backend throws a
500 Internal Server Error
. The issue is caused because theHTMLPurifier
library cannot write to its cache directory (DefinitionCache/Serializer
).Error Logs
Stack Trace:
Steps to Reproduce
/events
endpoint and attempt to create a new event.DefinitionCache/Serializer
directory is not writable.Expected Behavior
The event should be created successfully without errors.
Actual Behavior
The server throws a
500
error due to a write permission issue.Root Cause
HTMLPurifier Cache Directory Issue:
The
DefinitionCache/Serializer
directory does not have the correct write permissions, causing HTMLPurifier to fail when attempting to write cache data.Stripe Configuration:
The Stripe secret key is missing in the
.env
file.Environment
The text was updated successfully, but these errors were encountered: