Results 1 to 5 of 5

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 ...

  1. #1
    Senior Member webwizzy's Avatar
    Real Name
    Vinayak
    Join Date
    Aug 2008
    Location
    India
    Posts
    257
    Liked
    0 times

    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
    Last edited by webwizzy; 11-22-2008 at 08:52 AM.

  2. #2
    Senior Member webwizzy's Avatar
    Real Name
    Vinayak
    Join Date
    Aug 2008
    Location
    India
    Posts
    257
    Liked
    0 times
    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

  3. #3
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    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.

    ?>

  4. #4
    Senior Member webwizzy's Avatar
    Real Name
    Vinayak
    Join Date
    Aug 2008
    Location
    India
    Posts
    257
    Liked
    0 times
    wow thank you soo much! worked great. So we can't call it a bug?

  5. #5
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    not a bug. poor plugin development

Similar Threads

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •