Serendipity kicks 403 Forbidden error when posting with an image

Having trouble installing serendipity?
Post Reply
serendipity20191109
Posts: 3
Joined: Sat Nov 09, 2019 6:02 pm

Serendipity kicks 403 Forbidden error when posting with an image

Post by serendipity20191109 » Sun Nov 10, 2019 3:13 am

Serendipity 2.3.2
PHP 7.1

Serendipity kicks 403 Forbidden error when attempting to make a post with an image / picture.

Text only posts work fine.

Past posts from prior months, years with images display fine but can't be edited.

Browsing media library works fine. Adding image in editor works fine. Preview or post results in 403 error.

serendipity20191109
Posts: 3
Joined: Sat Nov 09, 2019 6:02 pm

Re: Serendipity kicks 403 Forbidden error when posting with an image

Post by serendipity20191109 » Fri Nov 15, 2019 10:19 pm

This is an unstoppable bug?? Impossible to fix?? Just delete Serendipity and abandon this crappy software??

User avatar
yellowled
Regular
Posts: 7084
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: Serendipity kicks 403 Forbidden error when posting with an image

Post by yellowled » Fri Nov 15, 2019 10:46 pm

serendipity20191109 wrote:
Fri Nov 15, 2019 10:19 pm
This is an unstoppable bug?? Impossible to fix?? Just delete Serendipity and abandon this crappy software??
It probably is not unfixable, but the information you provide is to small for a bug that no one else has reported (and thus, probably no one is able to reproduce). (Also, frankly, this was your first post with a very generic username. People may have thought you were a spammer. Sorry about that, but these days, that can be very hard to tell.)

Let's try to get more information.

* Is it possible to switch to PHP 7.2 or 7.3, and if so, does this change anything?
* Do you have access to the server and/or PHP error logs, and if so, do they throw any error messages right after reproducing the error?
* Does this happen with any image? (File size, dimensions, JPG or PNG?)

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

serendipity20191109
Posts: 3
Joined: Sat Nov 09, 2019 6:02 pm

Re: Serendipity kicks 403 Forbidden error when posting with an image

Post by serendipity20191109 » Sun Nov 17, 2019 9:32 pm

My keychain has over 300 logins because every website and their dog wants one. I quit trying to use memorable account names about 290 logins ago.

Switching to PHP 7.2 or 7.3 gives no improvement.

I have searched the log files before posting here. I cannot find anything useful to identify what file or folder Serendipity is trying to access that is throwing the 403 error.

The image type does not appear to matter. Note that the error also occurs when attempting to edit posts with images that worked fine months ago.

What are the files and folders that Serendipity would need to access to make a post with an image? If I knew what files it was trying to open, I could check that it has access to them. I suspect this is happening because Serendipity is trying to go somewhere outside of its install folder.

User avatar
yellowled
Regular
Posts: 7084
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: Serendipity kicks 403 Forbidden error when posting with an image

Post by yellowled » Wed Nov 20, 2019 8:16 pm

serendipity20191109 wrote:
Sun Nov 17, 2019 9:32 pm
What are the files and folders that Serendipity would need to access to make a post with an image? If I knew what files it was trying to open, I could check that it has access to them.
Not really my area of expertise, sorry. I guess ultimately, saving and entry is always a post request to serendipity_admin.php. If an image is involved, that would be in a subdirectory of uploads/. I guess templates_c/ could be involved as well.

This is really something that onli or Garvin should chime in on.

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
onli
Regular
Posts: 2265
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: Serendipity kicks 403 Forbidden error when posting with an image

Post by onli » Mon Nov 25, 2019 2:56 am

Hi. Serendipity does not throw 403 errors depending on whether an image is part of the entry text. If that happens in this specific installation the hoster has some "security" script running that reacts to the parameters given to the serendipity php code. That might be at webserver level, or it might have a separate logfile. Best to contact the hoster here, they should know which part of the server stack is responsible. I'm pretty certain it won't be s9y.

Post Reply