completed Internal Server Error - jrCore/router.php on line 305

Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
Hi - Just set-up a "sandbox" site on a subdomain to try and retheme the new Ningja skin.

It was running OK for awhile but now all I get is an internal server error and when I check the log it indicates a missing buffer?

Does anyone know what could be causing this?
========================================================

The server encountered an internal error or misconfiguration and was unable to complete
your request.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
==========================================================================
Log

[17-Nov-2014 12:38:51 America/St_Johns] PHP Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in /home/indiegospel/public_html/SANDBOX/modules/jrCore/router.php on line 305


--

Ken Rich
indiegospel.net

updated by @ken-rich: 01/01/15 09:15:42PM
brian
@brian
10 years ago
10,136 posts
The "notice" log entry you included is not related to the 500 server error - I would check that your .htaccess is valid, all directives are allowed, or look in your data/logs/error_log for a FATAL error.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
My server guy said he had to remove these two files from the .htacess file.

I'm not sure how that effects the script or why he would need to do that. Is there a help file? I went back over the install instructions and didn't see anything about this.

AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php.fcgi

===============================================

The server meets Jamroom requirements, but I'm not sure if it has this recommended extension. APC (op code caching - speeds up PHP)

If not, perhaps the help file should be updated to say "you may have to disable those two .htacess values if this extension is not installed"???


--

Ken Rich
indiegospel.net
michael
@michael
10 years ago
7,692 posts
Thanks Ken. I've added it as a hint on the Requirements page.

https://www.jamroom.net/the-jamroom-network/documentation/getting-started/774/requirements
brian
@brian
10 years ago
10,136 posts
Ken_Rich:
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php.fcgi

These are NOT part of Jamroom's .htaccess file, so your server (i.e. cpanel) must have added them in on your behalf, which is a bad idea. I'd recommend having your server guy fix your server so it does not do that.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
brian:
Ken_Rich:
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php.fcgi

These are NOT part of Jamroom's .htaccess file, so your server (i.e. cpanel) must have added them in on your behalf, which is a bad idea. I'd recommend having your server guy fix your server so it does not do that.

Hope this helps!

Ah... This keeps getting weirder... I was in looking at the .htaccess for the main domain as a followup. It has those two files and is running fine (or so it seems).

What I don't understand, is how the main domain ( http://indiegospel.net) is running JR5 with them, but the sub domain http://sandbox.indiegospel.net wouldn't run an independent install of JR5, with those same settings.


--

Ken Rich
indiegospel.net
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
Hi Brian,

The server guy checked with the datacenter, and they are saying it's basically impossible. A snippet of their response suggests it might have been manually added.

"The addhanlder settings wouldn't have been added by cPanel or WHM but may have
been added when someone was trying to set up the custom php.ini file"

++++++++++++++++++++++++++++++++++++++++

The trouble with that theory is Paul set-up the initial install and I'm sure he didn't add anything not required manually. I installed Jamroom to the subdomain and I know I didn't add those values.

Therefore it is still a mystery at this point.


--

Ken Rich
indiegospel.net
brian
@brian
10 years ago
10,136 posts
Yeah it's certainly not part of our .htaccess file, so it was added on your server in some way (by a person, or whatever).

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
10 years ago
926 posts
I think those files have something to do with security from what I can gather from help files and such. Therefore, my working theory is that they are part of the server's security protocol

So, I am assuming this particular server writes them in as default and it's not malicious, but rather part of the security. I'm going to drop it and close this out for now... thanks...


--

Ken Rich
indiegospel.net

Tags