Giter Club home page Giter Club logo

Comments (10)

david-prv avatar david-prv commented on July 1, 2024

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?

from bookstack.

jacobslutsky-blacksmith avatar jacobslutsky-blacksmith commented on July 1, 2024

Hi...Possibly related to this thread?
#5029 (comment)

from bookstack.

ssddanbrown avatar ssddanbrown commented on July 1, 2024

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.

from bookstack.

rodgaray avatar rodgaray commented on July 1, 2024

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!

from bookstack.

ssddanbrown avatar ssddanbrown commented on July 1, 2024

@rodgaray The PHP default is 128M, so doubling to 256M alleviates most scenarios.

from bookstack.

rodgaray avatar rodgaray commented on July 1, 2024

@rodgaray The PHP default is 128M, so doubling to 256M 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.

from bookstack.

ssddanbrown avatar ssddanbrown commented on July 1, 2024

@rodgaray What docker image were you originally using, and do you still have access (or able to use) docker volume mounts?

from bookstack.

ssddanbrown avatar ssddanbrown commented on July 1, 2024

@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.

from bookstack.

kayvanaarssen avatar kayvanaarssen commented on July 1, 2024

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

from bookstack.

flemmingss avatar flemmingss commented on July 1, 2024

I had the same just now, when uplaoding PNG-images 17-21MB.
Using the Linuxserver docker image

from bookstack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.