vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

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

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > Troubleshooting

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Reply

 

LinkBack Thread Tools
  #1  
Old 01-10-2008, 07:24 PM
Member
Big Board Administrator
 
Real Name: Juan
Join Date: Aug 2007
Posts: 59
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 01-10-2008, 07:31 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,616
Do you get anything related in server's error log?
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 01-10-2008, 07:39 PM
Member
Big Board Administrator
 
Real Name: Juan
Join Date: Aug 2007
Posts: 59
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 01-10-2008, 08:09 PM
Member
Big Board Administrator
 
Real Name: Juan
Join Date: Aug 2007
Posts: 59
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]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 01-10-2008, 08:14 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,616
Replied to your support ticket.
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #6  
Old 01-10-2008, 08:25 PM
Member
Big Board Administrator
 
Real Name: Juan
Join Date: Aug 2007
Posts: 59
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #7  
Old 01-30-2008, 07:16 PM
Senior Member
Big Board Administrator
 
Real Name: Chris
Join Date: Aug 2005
Location: North Carolina
Posts: 164
Send a message via AIM to TheComputerGuy
I had this same issue. Is there a solution publically?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #8  
Old 01-30-2008, 07:26 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,616
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.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #9  
Old 03-19-2008, 07:12 PM
Junior Member
 
Real Name: Gaz Thomas
Join Date: Jun 2007
Posts: 29
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #10  
Old 03-19-2008, 07:17 PM
Junior Member
 
Real Name: Gaz Thomas
Join Date: Jun 2007
Posts: 29
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #11  
Old 03-19-2008, 07:19 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,616
Yes, that should be the path to the subdomain then.
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #12  
Old 03-19-2008, 07:21 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,616
Quote:
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.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #13  
Old 03-19-2008, 07:22 PM
Junior Member
 
Real Name: Gaz Thomas
Join Date: Jun 2007
Posts: 29
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #14  
Old 04-20-2008, 02:23 PM
Member
 
Real Name: Gregory
Join Date: Dec 2006
Posts: 32
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #15  
Old 04-20-2008, 02:29 PM
Member
 
Real Name: Gregory
Join Date: Dec 2006
Posts: 32
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]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Tags
php, php5

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -4. The time now is 11:13 PM.


Powered by vBulletin Version 3.8.0 Release Candidate 1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.