View Full Version : New Posts link throws an error
setishock
02-07-2014, 10:34 AM
VB 4 version 4.1.2 PL8
Shared hosting.
Problem occurs with all themes including default VB theme.
When the "New Posts" link is clicked on, I get routed to a page with this error.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@computervitals.org 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 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I can't find anything related to it's setup in the ACP. Might be looking right at it and not seeing it. Any ideas what's causing this error? How to fix it?
If it can't be fixed, how do you disable the function or disable the link?
ozzy47
02-07-2014, 11:03 AM
You need to get the error from your server error logs, that message is to generic.
Lionel
02-07-2014, 11:09 AM
look at your htaccess. You might have the problem in there if you are using it to redirect that link
setishock
02-07-2014, 11:12 AM
How do I disable the link?
ozzy47
02-07-2014, 11:29 AM
What about the server error logs?
Lionel
02-07-2014, 12:07 PM
Why don't you remove that htaccess and see if it works. If it does then you worry about disabling it. If it does not then it was not that
setishock
02-07-2014, 07:45 PM
Last 300 Error Log messages in reverse order:
[Fri Feb 07 14:28:47 2014] [error] [client 75.66.73.69] File does not exist: /home/computer/public_html/404.shtml, referer: http://www.computervitals.org/forum.php
[Fri Feb 07 14:28:47 2014] [error] [client 75.66.73.69] File does not exist: /home/computer/public_html/collapse_40b_collapsed.gif, referer: http://www.computervitals.org/forum.php
[Fri Feb 07 14:28:36 2014] [error] [client 75.66.73.69] File does not exist: /home/computer/public_html/500.shtml, referer: http://www.computervitals.org/forum.php
[Fri Feb 07 14:28:31 2014] [error] [client 75.66.73.69] File does not exist: /home/computer/public_html/404.shtml, referer: http://www.computervitals.org/forum.php
[Fri Feb 07 14:28:31 2014] [error] [client 75.66.73.69] File does not exist: /home/computer/public_html/collapse_40b_collapsed.gif, referer: http://www.computervitals.org/forum.php
[Fri Feb 07 14:18:06 2014] [error] [client 75.66.73.69] File does not exist: /home/computer/public_html/404.shtml, referer: http://www.computervitals.org/forum.php
[Fri Feb 07 14:18:06 2014] [error] [client 75.66.73.69] File does not exist: /home/computer/public_html/collapse_40b_collapsed.gif, referer: http://www.computervitals.org/forum.php
The top 2 are when I clicked on the link and then went back to see the error. The 14:28 was the last time I clicked the link so that's the freshest data I have.
That came out of cpanel. If I need to contact my host let me know.
This is the htacess file.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://computervitals.org/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://computervitals.org$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.computervitals.org/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.computervitals.org$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ www.wallbase.net [R,NC]
<Files 403.shtml>
order allow,deny
allow from all
</Files>
The wallbase.net is when I turned on the antileach in cpanel last night and added a redirect link. I disabled that but looks like the rule remains. I can just edit that line out, right?
The problem was there before I did the antileach. Matter of fact the new posts link has never worked.
I'm using friendly url's. Could that be the problem? Maybe it doesn't work in that mode. ???
ozzy47
02-07-2014, 09:52 PM
Hmmmm, I don't see anything that stands out, but I am no expert either.
setishock
02-07-2014, 11:47 PM
Ok so what template has the link in it so I can disable it?
ozzy47
02-07-2014, 11:49 PM
What version of vB4 are you running? I assume you want to remove the New Posts link?
setishock
02-07-2014, 11:51 PM
4.1.2 PL 8 Yes remove link and disable function. The Neon Black theme has a button in the top row that links to the function also so need to disable the function.
ozzy47
02-07-2014, 11:55 PM
I would assume the ones in the top are in the header, and the other one is in the navbar.
setishock
02-08-2014, 12:49 AM
Alright then I'll scope it out after Smack Down. Thanks.
ozzy47
02-08-2014, 12:50 AM
If not let me know, and we will see what can be done.
--------------- Added 1391824591 at 1391824591 ---------------
Ya know what, it is not only the New Posts search, it is all search links, go to http://www.computervitals.org/search.php and click on any of the links in the sub-navbar.
Also it happens while doing any search.
Try the following:
On a unmodified default style.
With all mods disabled.
setishock
02-09-2014, 11:44 AM
Good morning Ozzy47.
I had the host disable mod_security and that didn't fix it. Created a virgin default theme and the problem was still there.
Upgraded to 4.2.2 and that fixed the search problem but brought on a couple more. One is the styles changer is blank. The other is the general tools in the ACP stops loading at clear and rebuild search index. This warning message appears right above the search tool:
Warning: Declaration of vBForum_Item_SocialGroupMessage::getLoadQuery() should be compatible with that of vB_Model::getLoadQuery() in ..../packages/vbforum/item/socialgroupmessage.php on line 261
Have no idea what that's about. With out the style selector I can't see how much damage was done to the other styles.
ozzy47
02-09-2014, 11:55 AM
In class_core.php around lines 5683-5685
Find:
case E_NOTICE:
// Just ignore these completely //
break;
Replace with:
case E_NOTICE:
case E_STRICT;
case E_DEPRECATED;
// Just ignore these completely //
break; And see if that solves the problems.
setishock
02-09-2014, 12:21 PM
No joy
ozzy47
02-09-2014, 12:23 PM
No joy what, the warning is still there?
setishock
02-09-2014, 12:56 PM
Not only is it in the tools in the ACP now when I click on advanced under the search box it's there too.
ozzy47
02-09-2014, 01:02 PM
OK let's try this then.
Add the following line to your config.php under the <?php line:
define('SKIP_ALL_ERRORS', true);
setishock
02-09-2014, 01:24 PM
DING!!! That got it. I assume that traps the error?
At any rate I'm back in business. I guess I can reinstall Black Neon since it wasn't the problem.
Thanks ozzy, thank you very much.
ozzy47
02-09-2014, 01:35 PM
Not a problem, glad to help. :)
Should you run into your styles not having the style selector, see this article, https://vborg.vbsupport.ru/showthread.php?t=301925
setishock
02-09-2014, 01:40 PM
It's white with no text but when you click the arrow it opens up and shows the menu. I can live with that.
One last thing. Should I tell my host to turn mod_security back on?
ozzy47
02-09-2014, 01:53 PM
You can try, and see if it causes any issues.
setishock
02-09-2014, 01:56 PM
Thanks again. Have a tall cool one on me.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.