Results 1 to 11 of 11

Blog rewrite error 500 with CRR blogs.php => /blogs/

This is a discussion on Blog rewrite error 500 with CRR blogs.php => /blogs/ within the Bug Reporting forums, part of the vBSEO SEO Plugin category; I have found this bug looking ta my php_log file I have found this Code: PHP Warning: require(/<homepath>/forums/best-blog.php) [<a href='function.require'>function.require</a>]: ...

  1. #1
    Senior Member Array
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times

    Blog rewrite error 500 with CRR blogs.php => /blogs/

    I have found this bug looking ta my php_log file I have found this

    Code:
    PHP Warning:  require(/<homepath>/forums/best-blog.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /<homepath>/forums/vbseo.php on line 1128
    [24-Dec-2007 10:28:24] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required '/<homepath>/forums/best-blog.php' (include_path='.:/usr/share/pear:/usr/share/php') in /<homepath>/forums/vbseo.php on line 1128
    so I have been searching then in my lighttpd access log what link contains best-blogs and I find this spider bot querie:

    Code:
    66.249.70.177 website.com - [23/Dec/2007:19:32:00 -0500] "GET /forums/blogs/best-blogs/ HTTP/1.1" 500 0 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    So when I test by clicking manually within Firefox the "Best-Blog" link it appears to work without returning the error 500 but when I'm trying to access it with the full url in my browser like

    Code:
    http://website.com/forums/blogs/best-blogs/
    I get a blank page, error 500 and the php_log mentionned previously is created

    I have tested removing my custorm rewrite 'blog\.php$' => 'blogs/[NF]' , then no more bugs

    Looks like it doesnt happen on vbseo.com however on another site I have found exactly the same bug, check here:

    http://forum.vbulletinsetup.com/blogs/best-blogs/

    blank page , error 500


    Hope it helps

  2. #2
    Senior Member Array
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    is it possible to know how did your write your blog.php CRR for vbseo.com ? because I see it not buggus here

  3. #3
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    Hello,

    try to change CRR to:
    Code:
    '^blog\.php$' => 'blogs/'
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  4. #4
    Senior Member Array
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Hello,

    try to change CRR to:
    Code:
    '^blog\.php$' => 'blogs/'
    not working if I do this with the ^ then the navbar link blog.php is not rewritten to blogs/

  5. #5
    Senior Member Array
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    to note that project.php and blog.php of project tools and vb blogs are the 2 only files I cant custom rewrite with the ^, all others vb files rewrite went fine without both project and blog ...
    Im able to do theses rewrites for example and they are ok:

    '^faq\.php$' => 'faq/[NF]'

    '^search\.php\?do=getnew$' => 'newposts/[NF]'

    '^search\.php$' => 'search/[NF]'

    but for both blog.php and project.php I must remove the ^ else when I mouseover the links , it's still pointing to the php file ..

  6. #6
    Senior Member Array
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    ok found the thing that is because blog and pj tools has their own navbar templates and it wasnt wrote properly in here.

  7. #7
    Senior Member Array
    Real Name
    Chris
    Join Date
    Jan 2009
    Posts
    164
    Liked
    4 times
    I have this same issue that has obviously been producing an error a long time, that I just found. How do I fix this? Thanks!

  8. #8
    Senior Member Array
    Real Name
    Chris
    Join Date
    Jan 2009
    Posts
    164
    Liked
    4 times
    vb4 btw.

  9. #9
    Senior Member Array
    Real Name
    Chris
    Join Date
    Jan 2009
    Posts
    164
    Liked
    4 times
    Example:
    http://recording.org/blogs/kapt-krunch/ doesn't point correctly. His actual username is kapt.krunch so it is turning the . into a hyphen
    It should do this:
    http://recording.org/blogs/kapt.krunch/

  10. #10
    vBSEO Staff Array Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,861
    Liked
    569 times
    Blog Entries
    2
    Hello Chris,

    I could not reproduce the issue on my tests environment using vBSEO 3.6.1 (registered a new account [Kapt.Krunch], created a new blog - currently using preset of URLs #1).
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  11. #11
    Senior Member Array
    Real Name
    Chris
    Join Date
    Jan 2009
    Posts
    164
    Liked
    4 times
    Hi Andre's,

    All I know is any member that has a username with a hyphen, other members cannot see their blog including all search engines. They all come up as 500.

    Notice this member bog has a hyphen. http://recording.org/blogs/kapt-krun...e-sonar-8.html

    Notice that his username is kapt-krunch

    But look how it is changed to kapt.krunch once you are on the page. But the URL has the hyphen.
    But click on the username on the blog that is kapt.krunch it comes up as error

Similar Threads

  1. change /forums/blogs to /blogs
    By magmf in forum URL Rewrite Settings
    Replies: 31
    Last Post: 02-08-2008, 10:20 AM
  2. How to get /blogs instead of /forum/blogs
    By Doug Nelson in forum General Discussion
    Replies: 2
    Last Post: 11-20-2007, 12:04 AM
  3. /blogs/index.php loads /forums/blog.php
    By voteforbird in forum Custom Rewrite Rules
    Replies: 3
    Last Post: 09-20-2006, 05:08 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
  •