flatpressblog / flatpress

FlatPress is a lightweight, easy-to-set-up flat-file blogging engine.
https://flatpress.org
GNU General Public License v2.0
185 stars 57 forks source link

Images throw error message #96

Closed stippi64 closed 7 months ago

stippi64 commented 2 years ago

Hi Arvid, i's me again, stippi. As announced I will contribute another issue with inserting images into a blog entry. I got this error message: Trying to access array offset on value of type bool in [...]plugin.bbcode.php on line 190 I fixed it changing the line from if ($img_size ['mime'] == 'image/jpeg') { to if ($img_size && $img_size ['mime'] == 'image/jpeg') {

I hope this is of any help to improve FP, as this is my favorite CMS.

Greetings stippi

azett commented 2 years ago

Thank you very much for reporting. Does this happen with any image? Do you have th GD library enabled ("GD Support enabled" is shown in Admin area -> Maintain -> Show info about PHP)?

Fraenkiman commented 7 months ago

Hi @stippi64, can you still reproduce the problem with FlatPress 1.3 RC1? Otherwise I would close here.

stippi64 commented 7 months ago

Hi @stippi64, can you still reproduce the problem with FlatPress 1.3 RC1? Otherwise I would close here.

Hi Fraenkiman, well I didn't succeeded to install a test environment so far, but I can tell I have moved my blog to another provider and had to do a fresh install (FP 1.2) and any errors I've seen before have been gone. So in my new location I have only a few pictures, but there are no errors any longer. So from my point of view the issue can be closed. Thank you for your great contribution, work and support.

Fraenkiman commented 7 months ago

Hello @stippi64, thank you very much for your feedback