Results 1 to 12 of 12

3.2.0 RC8 - Require Error when Clicking on Last Post

This is a discussion on 3.2.0 RC8 - Require Error when Clicking on Last Post within the Bug Reporting forums, part of the vBSEO SEO Plugin category; Hi there, Similar to this error reported here , when users click on the "last post" arrow icon on forumhome ...

  1. #1
    Senior Member
    Real Name
    Juan
    Join Date
    Aug 2007
    Posts
    128
    Liked
    0 times

    Exclamation 3.2.0 RC8 - Require Error when Clicking on Last Post

    Hi there,

    Similar to this error reported here, when users click on the "last post" arrow icon on forumhome to a specific thread (all other threads are fine), they get this error message:

    Warning: require(/home/aelyria/public_html/forums/82546-heads-up-search-index.php) [function.require]: failed to open stream: No such file or directory in /home/aelyria/public_html/forums/vbseo.php on line 1464

    Fatal error: require() [function.require]: Failed opening required '/home/aelyria/public_html/forums/82546-heads-up-search-index.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/aelyria/public_html/forums/vbseo.php on line 1464
    The URL in question is:
    http://www.aelyria.com/forums/genera...ml#post1319809

    Running vBulletin 3.7.2, and vBSEO 3.2.0 RC8. Clicking on the last post title itself (taking you to "new_post") is fine, but clicking on the arrow (taking you to a specific postid a-name) results in this error in the above thread.

  2. #2
    Senior Member
    Real Name
    Juan
    Join Date
    Aug 2007
    Posts
    128
    Liked
    0 times
    I just figured out why it does this. If the thread's subject title ends with the word "index", it produces this error. I changed my thread's subject title from "Index" to "Indexing"... and the bug went away.

  3. #3
    Senior Member
    Real Name
    Juan
    Join Date
    Aug 2007
    Posts
    128
    Liked
    0 times
    Accoridng to feedback from other users on this topic, it seems that this bug occurs when the following applies:
    • Using the .html extension for SEO paths
    • Subject name ends with the word "index"
    Any patch/fix for this?

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Hello,

    looks like you have a Custom Rewrite Rule defined in vBSEO CP with "index" in it, you should locate it and change or remove.

  5. #5
    Senior Member
    Real Name
    Juan
    Join Date
    Aug 2007
    Posts
    128
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Hello,

    looks like you have a Custom Rewrite Rule defined in vBSEO CP with "index" in it, you should locate it and change or remove.
    You are right, actually. The custom rewrite rule I have is for vBadvanced which takes my "index.php?page=suchandsuch" and turns it into "index-suchandsuch.html". Does this mean that I can't use this rewrite rule? If so, what rewrite rule can I use for my vBadvanced pages (or is this not possible)?

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    What exactly is your current CRR?

  7. #7
    Senior Member
    Real Name
    Juan
    Join Date
    Aug 2007
    Posts
    128
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    What exactly is your current CRR?
    'index\.php\?realm=(\w+)$' => 'index-$1.html'

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Try to add the leading "^":
    Code:
    '^index\.php\?realm=(\w+)$' => 'index-$1.html'

  9. #9
    Senior Member
    Real Name
    Juan
    Join Date
    Aug 2007
    Posts
    128
    Liked
    0 times
    Thanks, Oleg, but that doesn't work. My index.php file is located on my root (i.e., /index.php) whereas my forums are located at /forums/ -- inserting the carot on the CRR makes the index rewrite not function at the root level.

    Any thoughts?

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    inserting the carot on the CRR makes the index rewrite not function at the root level.
    What exactly is the error you get in this case?

  11. #11
    Senior Member
    Real Name
    Juan
    Join Date
    Aug 2007
    Posts
    128
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    What exactly is the error you get in this case?
    There is no error, but the CRR does not rewrite /index.php?page=abc to /index-abc.html. Only the CRR without the carrot (^) succeeds in doing that.

  12. #12
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Please try to modify functions_vbseo.php file:
    FIND:
    PHP Code:
    ($is_vbdir $base_script $url_script
    REPLACE WITH:
    PHP Code:
    $base_script 

Similar Threads

  1. Require Error in vB 3.6
    By leeko in forum Bug Reporting
    Replies: 7
    Last Post: 07-01-2008, 10:05 AM
  2. Clicking a post from the forum index doesn't go to the newest post
    By ChrisGuthrie.net in forum Troubleshooting
    Replies: 2
    Last Post: 06-29-2007, 12:02 AM
  3. Require CRR for Unanswered posts.
    By Future in forum Custom Rewrite Rules
    Replies: 3
    Last Post: 05-21-2007, 08:48 AM
  4. Require Admin Emails
    By majordude in forum Off-Topic & Chit Chat
    Replies: 0
    Last Post: 08-25-2006, 01:50 AM
  5. Require vBDrupal CRR
    By piepo in forum Custom Rewrite Rules
    Replies: 1
    Last Post: 02-17-2006, 09:34 AM

Posting Permissions

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