Results 1 to 3 of 3

500 server error while using vaultwiki simplified links and vbseo

This is a discussion on 500 server error while using vaultwiki simplified links and vbseo within the Bug Reporting forums, part of the vBSEO SEO Plugin category; I have Vaultwiki installed alongside vbseo . I had vbseo all set up and working and my vaultwiki was throwing ...

  1. #1
    Junior Member
    Real Name
    Jay
    Join Date
    Feb 2011
    Location
    United States
    Posts
    9
    Liked
    0 times

    500 server error while using vaultwiki simplified links and vbseo

    I have Vaultwiki installed alongside vbseo. I had vbseo all set up and working and my vaultwiki was throwing 500 server errors when I tried to use their simplified link system. When I turned off vbseo, vaultwiki worked fine. I had the Vaultwiki guy take a look and he said the issue was with vbseo. Here is the fix he implemented.

    In vbseo/includes/functions_vbseo_hook.php, find:

    Code:
    if(!strstr($_SERVER['HTTP_REFERER'],$_SERVER['VBSEO_URI']) AND !vbseo_is_threadedmode())
    Not sure why, but this throws a 500 server error on your server when: $_SERVER['HTTP_REFERER'] is empty, and this is common IIRC.

    To account for this possibility, the line should instead be:

    Code:
    if((!$_SERVER['HTTP_REFERER'] OR !strstr($_SERVER['HTTP_REFERER'],$_SERVER['VBSEO_URI'])) AND !vbseo_is_threadedmode())
    See this thread for the whole story.
    mod rewrite question

  2. #2
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    54
    Liked
    0 times
    Just to follow-up, this wasn't an instant case of blame-the-other-guy for me. I spent a good amount of time tracing hundreds of lines of code in VaultWiki / vBulletin until I came to the vBSEO sec function call, and finally pin-pointed this line as the culprit of server 500.

    Even if the error cannot be reproduced with empty $_SERVER['HTTP_REFERER'], the edit definitely doesn't hurt. If nothing else it will avoid a function call in some cases (php.net says strtr is slower than strpos). And it will prevent the issue from resurfacing for tagman on the next vBSEO update.
    - the makers of VaultWiki

  3. #3
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    A strange issue, we will add the modification in next vBSEO build.

Similar Threads

  1. vBulletin 4.x Enabling likes system on vbseo comes with 500 Internal Server Error
    By =Master= in forum Troubleshooting
    Replies: 3
    Last Post: 01-11-2011, 02:05 PM
  2. CES VaultWiki rewrite rules help?
    By dvsDave in forum Custom Rewrite Rules
    Replies: 5
    Last Post: 06-10-2009, 02:47 PM
  3. Replies: 3
    Last Post: 02-02-2009, 01:26 PM
  4. vbseo 3.2.0 rc7 - 500 Internal Server Error
    By osss in forum Bug Reporting
    Replies: 7
    Last Post: 06-04-2008, 07:00 PM
  5. Replies: 4
    Last Post: 04-27-2006, 03:35 PM

Posting Permissions

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