Closed (fixed)
Project:
phpBB2Drupal
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2006 at 11:02 UTC
Updated:
29 Jun 2006 at 06:45 UTC
viewtopic.php requires two Drupal files:
include_once 'includes/bootstrap.inc';
include_once 'includes/common.inc';
the include_once() should be replaced with requires().
the redirect will fail if the forum was not in the Drupal root directory.
The include should be changed to include the full path to the files.
For example:
include_once '/var/www/drupal/includes/bootstrap.inc';
include_once '/var/www/drupal/includes/common.inc';
Comments
Comment #1
beginner commentedI have just commited a quick fix to cvs, but a better long term solution could be found.
http://drupal.org/cvs?commit=30627
Comment #2
hadishon commentedI still get this error after updated to the new version and putting the full directory path:
I'm using 4.7 rc 3.
Comment #3
beginner commentedHm. Download and use this version of viewtopic.php and adjust the path accordingly at the top.
If the path is not set properly, you'll have an error like:
Adjust the path and it should work.
Comment #4
beginner commentedOh! ok, sorry. I see your real problem, now. I'm investigating...
Comment #5
beginner commentedHere's the deal.
the new viewtopic.php should be placed within the drupal root directory otherwise Drupal is fooled and can't include the proper setting files. :/
If your phpBB installation was not in the root directory (say it was in a sub-directory called 'phpbb' and Drupal is in the root directory of your server), then you can create a simple .htaccess file that you can place in your phpbb sub-directory with the following content:
Also, revert to relative path requires:
Does this work for you?
Comment #6
beginner commentedActually, you can even place the redirect code above in your main Drupal .htaccess file, so that you can completely empty your phpbb/ directory and remove it.
Comment #7
beginner commentedThe redirect is now handled by a new phpbb_redirect.module.
Comment #8
(not verified) commented