Page 1 of 2 1 2 LastLast
Results 1 to 15 of 23

vbSEO stops working upon switch to PHP5

This is a discussion on vbSEO stops working upon switch to PHP5 within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hello everyone, I have a Managed Dedicated Server that has installations of PHP3, PHP4, and PHP5. By default, all of ...

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

    Exclamation vbSEO stops working upon switch to PHP5

    Hello everyone,

    I have a Managed Dedicated Server that has installations of PHP3, PHP4, and PHP5. By default, all of my .php scripts are processed in PHP4, but I can switch the .php extension files to be processed in PHP5 by adding the following to the top of my .htaccess file:

    Code:
    AddType x-mapp-php5 .php
    I did this, and vBulletin (and all of my vBulletin-related applications) ran just fine under PHP5 (and phpinfo() and the vB admincp were reporting my PHP version of 5.2.4 accurately). However, vBSEO stopped working, and URL's were no longer being rewritten. Furthermore, my users were being redirected to the front page of my site rather than to their forum or thread.

    Any clue as to why this happens? I had to remove the above line in order to get vBSEO to work properly once more. I'm using the latest version of vBSEO 3.1.0.

    Thanks!

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Do you get anything related in server's error log?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Senior Member
    Real Name
    Juan
    Join Date
    Aug 2007
    Posts
    116
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Do you get anything related in server's error log?
    Not that I can see; I will keep checking, however.

    Update: I reviewed my Error logs and I saw no error entries or reports; there was also no database error either. Is this some sort of rewrite error? I discovered the following when PHP5 was active:

    1. The forum URLs were not being rewritten (links were showing up as /forums/forumdisplay.php?f=1 rather than /forums/general for instance). Disabling vBSEO and Re-Enabling vBSEO did not fix this issue. Clicking on these links sent you back to my web site's root (/).

    2. My non vBulletin URLs were being rewritten using the custom rewrite rules that I had in the vBSEO configuration area. (Specifically, transforming /index.php?page=name to /index-name.html.) Clicking on these rewrites worked.
    Last edited by Kaelon; 01-10-2008 at 07:54 PM.

  4. #4
    Senior Member
    Real Name
    Juan
    Join Date
    Aug 2007
    Posts
    116
    Liked
    0 times
    For the record, here is the entire .htaccess file being used located at root (/). My forums are located at /forums.

    Code:
    AddType x-mapp-php5 .php
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.domain\.com
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
    RewriteEngine On
    RewriteBase /
    RewriteCond %{THE_REQUEST} !forums/
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ forums/vbseo.php?vbseourl=$1&vbseorelpath=../&%{QUERY_STRING} [L]
    RewriteCond %{THE_REQUEST} !forums/
    RewriteRule ^(.*.php)$ forums/vbseo.php?vbseourl=$1&vbseorelpath=../&%{QUERY_STRING} [L]

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Replied to your support ticket.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  6. #6
    Senior Member
    Real Name
    Juan
    Join Date
    Aug 2007
    Posts
    116
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Replied to your support ticket.
    Thanks; updated with requested information. Appreciate your help, Oleg, and especially the quick turn-around!

  7. #7
    Senior Member
    Real Name
    Chris
    Join Date
    Aug 2005
    Location
    North Carolina
    Posts
    358
    Liked
    9 times
    I had this same issue. Is there a solution publically?

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Defining VBSEO_CUSTOM_DOCROOT in config_vbseo.php file resolved the issue in this case:
    PHP Code:
          define('VBSEO_CUSTOM_DOCROOT',         '/path/to/domain/root'); 
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  9. #9
    Junior Member
    Real Name
    Gaz Thomas
    Join Date
    Jun 2007
    Posts
    29
    Liked
    0 times
    I'm having the same problem.

    Quote Originally Posted by Oleg Ignatiuk View Post
    Defining VBSEO_CUSTOM_DOCROOT in config_vbseo.php file resolved the issue in this case:
    PHP Code:
          define('VBSEO_CUSTOM_DOCROOT',         '/path/to/domain/root'); 
    Just a quick question, my forum is in a sub-domain, should it be the path to the subdomain root that the forum is in?

  10. #10
    Junior Member
    Real Name
    Gaz Thomas
    Join Date
    Jun 2007
    Posts
    29
    Liked
    0 times
    I keep getting this error message:

    Code:
    Site error: the file /homepages/includes/functions_vbseo.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.
    When I try to load a page :S

  11. #11
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Yes, that should be the path to the subdomain then.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  12. #12
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    I keep getting this error message:
    Make sure that you install vBSEO3.1.0 - it's unencoded and doesn't require Ioncube or Zend.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  13. #13
    Junior Member
    Real Name
    Gaz Thomas
    Join Date
    Jun 2007
    Posts
    29
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Yes, that should be the path to the subdomain then.
    Ok I've added that in config_vbseo.php When I run the site in php4 everything seems good but then when I switch to php5 still the same error.


    Edit:

    Quote Originally Posted by Oleg Ignatiuk View Post
    Make sure that you install vBSEO3.1.0 - it's unencoded and doesn't require Ioncube or Zend.
    Ok will take a look at that now

    Edit 2:

    That did the trick, thanks!
    Last edited by okgaz; 03-19-2008 at 09:45 PM.

  14. #14
    Member
    Real Name
    Gregory
    Join Date
    Dec 2006
    Posts
    32
    Liked
    0 times
    Hi,
    Where abouts do I put: define('VBSEO_CUSTOM_DOCROOT', '/path/to/domain/root');

    In my config_vbseo.php?

    I'm getting the below error after upgrading my PHP

    Warning: preg_match_all() expects parameter 2 to be string, array given in [path]/includes/functions_vbseo_hook.php on line 752

    Warning: Invalid argument supplied for foreach() in [path]/includes/functions_vbseo_hook.php on line 753

  15. #15
    Member
    Real Name
    Gregory
    Join Date
    Dec 2006
    Posts
    32
    Liked
    0 times
    Here is my htaccess file:

    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On

    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /

    #RewriteCond %{HTTP_HOST} !^www\.treasurequestxlt\.com
    #RewriteRule (.*) http://www.treasurequestxlt.com/community/$1 [L,R=301]

    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
    RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]

Page 1 of 2 1 2 LastLast

Similar Threads

  1. vbseo php5 compatible?
    By amnesia623 in forum General Discussion
    Replies: 2
    Last Post: 06-18-2007, 11:13 PM
  2. PHP5.2.3 ve vbseo
    By alpozdemir in forum Türkçe
    Replies: 1
    Last Post: 06-13-2007, 07:33 AM
  3. Will vBSEO help when I switch to vB from UBB Threads
    By len backus in forum General Discussion
    Replies: 3
    Last Post: 06-10-2007, 03:30 AM
  4. Vbseo + Php5
    By stickman373 in forum Troubleshooting
    Replies: 9
    Last Post: 03-23-2007, 05:43 AM
  5. [Help]Changed my ip - vBSEO Stops working
    By Hemanth in forum Troubleshooting
    Replies: 3
    Last Post: 12-31-2006, 07:05 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
  •