vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - HTTP Error Response Codes by BOP5 (Soft 404 Solution) (https://vborg.vbsupport.ru/showthread.php?t=309415)

joeychgo 06-04-2014 03:06 PM

php ---- 5.4.20

Plugin Version 1.0.0

I just upgraded to the current version, same issues.

BirdOPrey5 06-04-2014 03:48 PM

Wow... 1.0.0 is a super-simple script... there is really nothing that can go wrong. A lot of people seem to be using it without this issue. Is it possible there is something on your site that somehow overrides the data sent when a 404 or similar error message is generated?

I really can't conceive how this mod could be causing the error because, especially version 1.0.0, you can see the only plugins are on error_ hooks which mean the code isn't even ran until vBulletin is already set to produce an error. If vBulletin is in error mode for example then the css isn't going to be returned anyway on a call to css.php for example.

Perhaps some sort of caching system that reads a 404 error and caches a 404 error page for a short time rather than returning then passing the data to vBulletin and waiting for a real page to be generated?

I'm kind of grasping at straws here... Are there any PHP errors in the error logs when this happens?

joeychgo 06-04-2014 04:14 PM

Nope, no errors in the logs....

Alibass 06-04-2014 10:06 PM

Quote:

Originally Posted by joeychgo (Post 2500672)
Nope, no errors in the logs....

I just went to your website and get this error ising IE, FF and Chrome
Code:

Invalid Page URL. If this is an error and the page should exist, please  contact the system administrator and tell them how you got this message.
Have you changed anything in your settings/site name/url/contact details or do you possibly have an old cookie

joeychgo 06-05-2014 12:48 AM

haven't changed anything

where did you see that

AusPhotography 06-05-2014 05:04 AM

PHP 5.4.29, Apache 2.4.9, MySQL 5.6.16, vB4.2.2pl1 -- all goodness here.

joeychgo 06-05-2014 08:22 AM

1 Attachment(s)
Quote:

Originally Posted by AusPhotography (Post 2500750)
PHP 5.4.29, Apache 2.4.9, MySQL 5.6.16, vB4.2.2pl1 -- all goodness here.

No its not...

I get this when I click LOG IN on your site

BirdOPrey5 06-05-2014 09:40 AM

Quote:

Originally Posted by joeychgo (Post 2500761)
No its not...

I get this when I click LOG IN on your site

I don't... Tried Chrome and IE... What version of IE are you using? Looks old?

BirdOPrey5 06-05-2014 09:47 AM

Quote:

Originally Posted by joeychgo (Post 2500672)
Nope, no errors in the logs....

I see you have vB Optimise and DBSEO... My guess is a conflict with one of these.

It is my understand DBSEO has added this feature (or will soon) - double check it's not trying to do the same thing already.

However now you have issues with the photography site a browser issue is possible too.

joeychgo 06-05-2014 10:56 AM

I don't have either..... vB Optimise or DBSEO

Browser issue is possible, but I only have trouble with sites that have this mod installed. It also is happening on 2 separate computers, so its likely not a browser issue past a common setting.

Alibass 06-05-2014 03:03 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2500780)
I see you have vB Optimise and DBSEO... My guess is a conflict with one of these.

It is my understand DBSEO has added this feature (or will soon) - double check it's not trying to do the same thing already.

However now you have issues with the photography site a browser issue is possible too.

Quote:

Originally Posted by joeychgo (Post 2500733)
haven't changed anything

where did you see that

I got this link http://www.forcbodiesonly.com/mopar-forum/forum.php from another thread you posted in and when I went there yesterday I got that error, but today all is working with that link. Perhaps you or someone else was working on your site at the time of my visit.

Alibass 06-05-2014 03:07 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2500780)
I see you have vB Optimise and DBSEO... My guess is a conflict with one of these.

It is my understand DBSEO has added this feature (or will soon) - double check it's not trying to do the same thing already.

However now you have issues with the photography site a browser issue is possible too.

BOP5

DBSEO has this feature and I am using it and your mod along with DBOptomise. I am not having any conflicts.

BirdOPrey5 06-05-2014 06:11 PM

Quote:

Originally Posted by joeychgo (Post 2500784)
I don't have either..... vB Optimise or DBSEO

Browser issue is possible, but I only have trouble with sites that have this mod installed. It also is happening on 2 separate computers, so its likely not a browser issue past a common setting.

My mistake, I thought Alibass's signature link was yours.

Boothby 06-05-2014 07:39 PM

When the error happens again, can you open the Developer Tools Network Tab and make a screenshot of it?

joeychgo 06-05-2014 10:15 PM

1 Attachment(s)
Quote:

Originally Posted by Boothby (Post 2500841)
When the error happens again, can you open the Developer Tools Network Tab and make a screenshot of it?

Sure

AusPhotography 06-06-2014 03:05 AM

1 Attachment(s)
Quote:

Originally Posted by joeychgo (Post 2500761)
No its not...
I get this when I click LOG IN on your site

Hmm strange. I can't replicate that. I get a normal rejection screen.

Also: A link to content hidden from guests... http://www.ausphotography.net.au/for...-in-Launceston

Quote:

Originally Posted by joeychgo (Post 2500784)
I don't have either..... vB Optimise or DBSEO

We don't either. We do run DBOptomise.
We also have xCache.

DemOnstar 06-06-2014 04:48 PM

Not sure about this Joe.
I noticed a 60% drop in visitors since install.

A user informed me that they were unable to access the site and so I went along to see for myself.
They are getting error 500.

I normally have no problem accessing the site from where I stay but, I went along to the users place and I couldn't access and got the same 500 error. (misconfiguration on the server).

I disabled the mod and the error went away.

Tested in IE, Firefox, Chrome.

EDIT: the error went away for me but she still had the same error.
She is using a Samsung Galaxy device with Chrome as her browser.

She has not ever been able to access the site.

Weird one as I was in the same bar, I got the error, disabled the mod from another bar and gained access but she still cannot.

BirdOPrey5 06-07-2014 06:52 AM

Quote:

Originally Posted by DemOnstar (Post 2500937)
Not sure about this Joe.
I noticed a 60% drop in visitors since install.

A user informed me that they were unable to access the site and so I went along to see for myself.
They are getting error 500.

I normally have no problem accessing the site from where I stay but, I went along to the users place and I couldn't access and got the same 500 error. (misconfiguration on the server).

I disabled the mod and the error went away.

Tested in IE, Firefox, Chrome.

EDIT: the error went away for me but she still had the same error.
She is using a Samsung Galaxy device with Chrome as her browser.

She has not ever been able to access the site.

Weird one as I was in the same bar, I got the error, disabled the mod from another bar and gained access but she still cannot.

A 500 is a server error... usually not from PHP. The good thing is that a 500 error should be logged- You should be able to get more info from the error log.

What is your PHP version?

Boothby 06-07-2014 07:06 AM

Quote:

Originally Posted by joeychgo (Post 2500857)
Sure

You should then reload the page to see the network traffic and the headers sent. ;)

DemOnstar 06-07-2014 07:31 AM

Apache version 2.2.27
PHP version 5.2.17
MySQL version 5.5.37-log

Not sure what is happening really. All a bit random. I get access from one place but not from another.

BirdOPrey5 06-07-2014 11:30 AM

Quote:

Originally Posted by DemOnstar (Post 2500999)
Apache version 2.2.27
PHP version 5.2.17
MySQL version 5.5.37-log

Not sure what is happening really. All a bit random. I get access from one place but not from another.

Do you have cloudflare? They were having problems yesterday- unsure if they were solved- I'm guessing they were at some point.

DemOnstar 06-07-2014 03:27 PM

I don't have cloudflare.

It is wrong to blame this mod for this error as I am not entirely sure what the problem is yet.

ezak 06-15-2014 11:53 AM

not working for me , or I don't understand well
testing thread that is hidden from guest or it has been deleted
like this
http://www.gem-flash.com/vb/showthread.php?t=1
http://httpstatus.io/ said 404
also google webmaster said not found

I have DBoptimize, DBSEO, XCache all enabled

BirdOPrey5 06-15-2014 12:27 PM

Quote:

Originally Posted by ezak (Post 2502045)
not working for me , or I don't understand well
testing thread that is hidden from guest or it has been deleted
like this
http://www.gem-flash.com/vb/showthread.php?t=1
http://httpstatus.io/ said 404
also google webmaster said not found

I have DBoptimize, DBSEO, XCache all enabled

404 means it is working, at leas partially. If it wasn't working it would show 200.

The exact code it should show in this case is configurable in settings.

ezak 06-15-2014 03:08 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2502049)
404 means it is working, at leas partially. If it wasn't working it would show 200.

The exact code it should show in this case is configurable in settings.

so to be useful from the mod
change all status to 200 ?

its realy working when change Generic Error HTTP Code to 200 , its wokring and send 200 status
what should I do then , change all to 200 ?
your site is sending 404 in your wrong thread

BirdOPrey5 06-15-2014 05:03 PM

If you disable the mod Google will get 200.

The purpose of this mod is to change 200 to 404 (or some other number.)

When google gets 200 but can'tr read the thread it's considered a "soft 404" error which is bad for SEO.

When google gets a 404 it knows it is a bad page and stops looking for it- it is less bad for SEO.

ezak 06-16-2014 07:21 AM

thanks for your reply
I want to know something about another error
vb/showthread.php?t=222053
this thread is hidden from guest
and from HTTP status got error 403

is that normal ? and good for seo ?

BirdOPrey5 06-16-2014 11:34 AM

403 is again from this mod and yes it is better Google sees a 403 than a 200 on a page they cannot read the real content of.

Black Snow 06-27-2014 10:42 AM

Could you add a rewrite rule to your .htaccess file that directs all 200 pages to 403 pages instead of insalling this mod? Was curious about what difference it would make.

BirdOPrey5 06-27-2014 05:55 PM

Quote:

Originally Posted by Black Snow (Post 2504021)
Could you add a rewrite rule to your .htaccess file that directs all 200 pages to 403 pages instead of insalling this mod? Was curious about what difference it would make.

All "200" pages would mean every page on your site- that would be worse than not doing anything at all.

geovadim 02-26-2015 02:22 PM

Great mod. Thanks.

hilaryl 04-14-2015 01:02 AM

Our PHP version is currently 5.2.11 - what can we do to effectively get the same result as this mod?

BirdOPrey5 04-14-2015 07:06 AM

It may work on PHP 5.2 but it works best on PHP 5.4 or higher. You should try it, I don't think there is any major difference between 5.3 and 5.2 and I know it works OK on 5.3.

hilaryl 04-15-2015 12:03 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2543026)
It may work on PHP 5.2 but it works best on PHP 5.4 or higher. You should try it, I don't think there is any major difference between 5.3 and 5.2 and I know it works OK on 5.3.

Thanks.

I was also wondering - I only wanted to change the response header for the No Permission pages, and just leave the other pages for now.

Is there a way I can do this? With the plugin, or just by creating my own plugin for those particular pages?

Cheers

BirdOPrey5 04-15-2015 07:34 AM

Quote:

Originally Posted by hilaryl (Post 2543064)
Thanks.

I was also wondering - I only wanted to change the response header for the No Permission pages, and just leave the other pages for now.

Is there a way I can do this? With the plugin, or just by creating my own plugin for those particular pages?

Cheers

Easiest way would be to set the options you don't want to change to 200 in the mod settings. 200 is what they would be normally. Keep only the No Permission pages as 403/404 whatever you choose.

hilaryl 04-29-2015 12:14 AM

Just thought I would update to say that I have successfully implemented this plugin in vBulletin 4.1.9 - running PHP 5.2.11.

All response headers are returning as per the settings.

Cheers!

hilaryl 05-14-2015 11:44 PM

Hi BOP5,

I've added the plugin to our site and all is going well.

I've found that in addition to pages that require a user login to access particular areas, we also have pages where the administrator sets a specific password just for that forum.

With the plugin installed the pages header response code is returning a 404, where as it would be better if this was a 403 response, like the other login required pages.

Is that possible?

We only have a small amount of these pages, so it's not a big deal - just thought I would ask.

Thanks,
hilaryl

Stratis 05-15-2015 04:26 PM

Tested in PHP 5.2.17

PHP Code:

Date:Fri15 May 2015 18:20:28
GMTServer
:Apache
X
-Powered-By:PleskLin
Cache
-Control:private
Pragma:private
X-UA-Compatible:IE=Edge
X
-PHP-Response-Code:404 

I will see after some days with google, thank you very much, I appreciate this.

BirdOPrey5 05-15-2015 04:35 PM

I'm sure it's not impossible but it isn't something I can implement quickly. VB just uses the generic error call to display the request for the password so the response code will be whatever you have configured for generic errors, 404 by default.

To be honest very few people use forum passwords so I don't think I'll be adding functionality just for forum passwords.

hilaryl 05-17-2015 09:36 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2545574)
I'm sure it's not impossible but it isn't something I can implement quickly. VB just uses the generic error call to display the request for the password so the response code will be whatever you have configured for generic errors, 404 by default.

To be honest very few people use forum passwords so I don't think I'll be adding functionality just for forum passwords.

Hi BOP5,

That's cool - I wasn't sure how that page was generated, but that makes sense as to why it's returning the 404.

Thanks for your quick reply.

Cheers


All times are GMT. The time now is 01:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01374 seconds
  • Memory Usage 1,845KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete