vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now!
vBSEO 2.0 Style Released vBSEO 3.3.0 GOLD Launched vBSEO's "LiveStats" for Google Analytics vB Sitemap Generator, Version 2.5 Success with vBSEO = 600ore Web Visitors + $1400 in a Day!

404 images interfering with WOL

This is a discussion on 404 images interfering with WOL within the Bug Reporting forums, part of the vBSEO SEO Plugin category; hi, I am facing a problem where viewing index.php shows an Unknown location in Who's online. (its pointing to images ...

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > Bug Reporting

Enhancing 80 million pages.

  #1  
Old 11-22-2008, 07:33 AM
webwizzy's Avatar
Senior Member
 
Real Name: Vinayak
Join Date: Aug 2008
Location: India
Posts: 225
Send a message via Yahoo to webwizzy
404 images interfering with WOL

hi,

I am facing a problem where viewing index.php shows an Unknown location in Who's online. (its pointing to images that gives a 404)

I am sure it is not caused by any mod. It is caused due to my editing of forumhome_forumbit_level1_post and level2 template where I have added a code to display image icons for forums (these are not forumstatus icons, just a display icon besides forumtitle). I used forumid variable ofcourse.

Now, I do not want icons for all forums. Thus, there's a 404 for those images in the code, but that doesn't matter and it looks fine.

SO why does WOL having a problem with that? Why 404 images on forumhome interfering with Whos online feature?

In short, Whenever I view index.php or forumdisplay.php, and if any of the forums have 404 image icons, then it shows an Unknown location to that 404 image in WOL.

Disabling vbseo alone does not solve the problem BUT removing htaccess along with it, does solve it.

I am using vbseo 3.2.0 with vbulletin 3.7.4 PL1. My htaccess is here as you can see with one line modified as suggested by oleg sir!

Thank you
__________________
India talks | Tech Info

Last edited by webwizzy; 11-22-2008 at 07:52 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 11-22-2008, 12:04 PM
webwizzy's Avatar
Senior Member
 
Real Name: Vinayak
Join Date: Aug 2008
Location: India
Posts: 225
Send a message via Yahoo to webwizzy
I also tried removing all my template edit and achieved exactly the same thing via plugins. But the WOL problem persists! Showing Unknown location on index.php and forumdisplay.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 11-22-2008, 01:08 PM
briansol's Avatar
Senior Member
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 7,090
vbseo will process anything that isn't a real file or a directory.

so, when it's missing, it hits vbseo.php. vbseo has a 404 handelr built into it, which is why you see the request show as a 404 page.


The real fix here is to do a file system lookup in your plugin, and only display the img src IF the file exists.

PHP Code:

  <?php
$filename 
'/path/to/images/'$foruminfo[forumid].'.gif';

if (
file_exists($filename)) {
//print img src like you're doing now.

?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 11-22-2008, 01:32 PM
webwizzy's Avatar
Senior Member
 
Real Name: Vinayak
Join Date: Aug 2008
Location: India
Posts: 225
Send a message via Yahoo to webwizzy
wow thank you soo much! worked great. So we can't call it a bug?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 11-22-2008, 01:36 PM
briansol's Avatar
Senior Member
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 7,090
not a bug. poor plugin development
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Tags
404, images, who is online

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Images replaced by wrong images Johnny5 Troubleshooting 0 10-11-2008 11:04 AM
Wordpress interfering with VBSEO mrcreditcard Troubleshooting 7 09-26-2008 11:44 AM
Acronyms interfering in What's going on section Neutral Singh Troubleshooting 1 08-19-2008 09:19 AM
interfering with another hack hornstar6969 Relevant Replacements 3 03-20-2007 01:37 AM
No more images near ads... Webnower Google Adsense, YPN, & Other Ad Networks 22 01-02-2007 01:37 PM


All times are GMT -4. The time now is 09:40 PM.


Powered by vBulletin Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.