Open rodgaray opened 1 month ago
Hi, I realized a difference between your logfile and the console output. In your logfile it says http://wiki.foo.bar
, but the error shows https://wiki.foo.bar
. Is your base uri correctly defined in your env file?
Hi...Possibly related to this thread? https://github.com/BookStackApp/BookStack/issues/5029#issue-2312227088
Yeah, that reflected error message will generally show when you're hitting the memory limit during image resizing.
You can try to bump the PHP memory_limit
in your environment, which addresses this in most cases.
Yeah, that reflected error message will generally show when you're hitting the memory limit during image resizing. You can try to bump the PHP
memory_limit
in your environment, which addresses this in most cases.
Thanks! I think you're right, that may be the problem. I will rebuild the image and try again. Later I'll post the result.
Any recommendation regarding memory_limit
, any recommended value?
Thanks!
@rodgaray The PHP default is 128M
, so doubling to 256M
alleviates most scenarios.
@rodgaray The PHP default is
128M
, so doubling to256M
alleviates most scenarios.
Hi, thank you for your reply. I have a problem, the installation is serverless, so I need to rebuild the docker image with the PHP.ini within it. I was able to make a build from the GitHub code but I don't know where the php.ini should be.
@rodgaray What docker image were you originally using, and do you still have access (or able to use) docker volume mounts?
@rodgaray Going by the original post, I'm assuming the linuxserver contianer.
They provide a way to customize php.ini
values by default, via the php/php-local.ini
file within the folder/files you have mounted to the /config
path on the container.
Had the same issue just now, trying to upload a 3.7MB Image (Long scrolling image of a page we need for reference) We are not running in docker. Had PHP Memory limit set to 256MB changed to 512MB and the upload worked. Pretty weird but, it works now!
Environment: PHP 8.3 NGINX Ubuntu 22.04
I had the same just now, when uplaoding PNG-images 17-21MB. Using the Linuxserver docker image
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
Hi! We have a problem with our Bookstack site. When we try to insert a new image, the image selection box fails to show any thumbnail and We're unable to upload new images to the platform.
This is running serverless on GCP Cloud Run.
Most of the reported issues refer to php limit but how can we be sure, we don't have CLI to check or modify php.ini, if that could be the problem?
Exact BookStack Version
v23.12.2-ls125
Log Content
The log shows this:
On the GCP console the error is as follows:
On the browser console:
Hosting Environment
GCP Cloud Run.