Page 1 of 1

Adding Media To entry

Posted: Tue Jun 13, 2017 9:52 pm
by fredsfollies
I am getting a 500 Internal Service error message when I try to add a media (photo) to any entry whether I try to add the image itself or use an URL to show the image. Here is the error message:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, cgiadmin@yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


There is no error message in my cgi-error panel of my webhost to provide any leads. The upshot of this is that I can no longer do anything with the weblog as it keeps taking me back to this same error message. Is there a solution to this as I definitely want to be able to add images to my entries.

BTW, the url address shown with the error message is
http://www.mydomain.com/webdiary/serendipity_admin.php?

UPDATE: Cannot get back into the weblog...keeps giving me the same error message as noted above. What are my options at this point? I am using Firefox 53.0.3 and I can't access it using Microsoft Edge either. I am running Windows 10 but the site is on a shared web host.

Re: Adding Media To entry

Posted: Thu Jun 15, 2017 9:50 pm
by yellowled
fredsfollies wrote:The server encountered an internal error or misconfiguration and was unable to complete your request.
This could hint at a misconfiguration in the .htaccess file. You might have to use a different setting for something, but as you can probably already guess from my vague attempts to find an answer, this is really hard to diagnose without knowing how the web server is set up. Which is why …
fredsfollies wrote:Please contact the server administrator, cgiadmin@yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
… you should contact the support of your web hoster about this. This is not something we can help with easily, but they might be able to due to their knowledge of how the server is set up. Also, they probably have more detailed log files than the one you have access to.
fredsfollies wrote:Cannot get back into the weblog...keeps giving me the same error message as noted above. What are my options at this point? I am using Firefox 53.0.3 and I can't access it using Microsoft Edge either.
This is definitely not a browser issue. Again, this is hard to diagnose without knowing the server setup. My best guess would be .htaccess or even php.ini, some setting in there that the server “doesn't like” or something. Please contact your web hoster's support about this.

YL

Re: Adding Media To entry

Posted: Fri Jun 16, 2017 1:21 am
by fredsfollies
Thanks again for your response. A couple of things...

I did contact my webhost and as expected they laid the blame on the script and although I found someone that at least tried to help, they were not able to figure out the problem. As for the .htaccess file, I was never able to locate it and perhaps I have some setting that prevented me from seeing it.

The upshot is that I uninstalled the script and may try it again after I get back from my vacation. At this point however, I need a blog that will allow the user to add images to the entries and at the moment, this one will not allow it.

Out of curiosity, would you know why I can't see the .htaccess file?

Re: Adding Media To entry

Posted: Fri Jun 16, 2017 2:39 pm
by yellowled
fredsfollies wrote:Out of curiosity, would you know why I can't see the .htaccess file?
Well, the first idea would be that your FTP client does not display files starting with a dot (which are supposed to be hidden on some operating systems depending on your settings).

Another possibility would be that there is no .htaccess or you do not have permission to see or edit it. Hard to tell without knowing how your web hoster handles things.

YL

Re: Adding Media To entry

Posted: Fri Jun 16, 2017 9:37 pm
by fredsfollies
OK, I found out that I needed to set the option to show hidden files which would then show my .htaccess file. In looking at the .htaccess file from another application that I have on the server, it states that if a 500 Internal Server error shows up or if I can't access the site, I should remove the .htaccess file. Do you think that would be the reason I got the 500 Internal Server error message using Serendipity? If so, would removing the .htaccess file fix the problem?

UPDATE: Now that I can see and read the .htaccess file, here is the contents after I re-installed the application.

# BEGIN s9y
DirectoryIndex /blogdigest/index.php

<Files *.tpl.php>
deny from all
</Files>

<Files *.tpl>
deny from all
</Files>

<Files *.sql>
deny from all
</Files>

<Files *.inc.php>
deny from all
</Files>

<Files *.db>
deny from all
</Files>

# END s9y

Could this be the reason for the 500 Internal Server error message and the fact I can't add media to an entry?

Re: Adding Media To entry

Posted: Sat Jun 17, 2017 1:16 pm
by yellowled
fredsfollies wrote:In looking at the .htaccess file from another application that I have on the server, it states that if a 500 Internal Server error shows up or if I can't access the site, I should remove the .htaccess file. Do you think that would be the reason I got the 500 Internal Server error message using Serendipity?
If you have a pre-existing .htaccess file from another web application which was “used” by Serendipity later because it was installed to the same directory on the server? Hard to tell, depends on what was in said .htaccess. But again, a lot of this may depend on how the web server is configured, which is a question only your web hoster can really answer.
fredsfollies wrote:Now that I can see and read the .htaccess file, here is the contents after I re-installed the application.
As far as I can see, that is one of the standard .htaccess files generated by s9y (there are multiple for various server environments). Should not be the cause of the errors you're getting.

YL

Re: Adding Media To entry

Posted: Sat Jun 17, 2017 7:06 pm
by fredsfollies
OK, it doesn't matter what I try, I get the same result. I have used other blog scripts where adding the media is a bit more complicated, but it always adds the image to the entries. Yes, it is on this same web host so I just can't understand why it is not working with serendipity. At this point, I am going to back away from it and come back to it later as I feel I have spent way too much time trying to get this to work. Thanks for your help yellowled but it is not working for me.

I just noticed another file called .gitignore with the following information in it.

uploads/*
templates_c/*
serendipity_config_local.inc.php
.cvsignore
.htaccess*
*.db
private/*
archives/*
*~
DEADJOE
plugins/additional_plugins*
/.settings
/.buildpath
/.project
.DS_Store
.editorconfig
*.git
tests/phpunit.xml

Could this have anything to do with the 500 Internal Server error?

Re: Adding Media To entry

Posted: Sun Jun 18, 2017 7:24 pm
by yellowled
fredsfollies wrote:I just noticed another file called .gitignore with the following information in it. […] Could this have anything to do with the 500 Internal Server error?
Highly unlikely.

git is the versioning system that we use to develop s9y, the .gitignore file tells it which files to ignore it. You can safely delete it, if you want to try that, but I would be surprised if that changes anything.

YL

Re: Adding Media To entry

Posted: Mon Jul 17, 2017 10:31 am
by zarzanola
Like yellowled said, I think the most likely cause is a misconfiguration in the .htaccess file. Perhaps deleting it altogether might work. Alternatively, maker sure the server is sufficiently backed up in case of failure.

As for the .gitignore file

"
uploads/*
templates_c/*
serendipity_config_local.inc.php
.cvsignore
.htaccess*
*.db
private/*
archives/*
*~
DEADJOE
plugins/additional_plugins*
/.settings
/.buildpath
/.project
.DS_Store
.editorconfig
*.git
tests/phpunit.xml
"
I believe this file is correct however its not related to this issue.

Re: Adding Media To entry

Posted: Fri Jul 21, 2017 11:17 pm
by gizmola
Who owns, and what are the permissions on the uploads directory? If those aren't writeable by the apache process, media is not going to work.