I'm not sure if this is the right place to post this. Someone please tell me if it should be elsewhere.
I'm having problems installing the phpbb module. I have followed the instrustions at http://kepp.net/drupal/ very carefully including installing phpBB in a sub-directory of my drupal installation called forums. This seems to be the source of my problems as both phpbb.module and the .htaccess file appear to conatin references to phpBB2 as the phpbb directory.
I got as far as instruction 28 - install the integration module. I did this as instructed. However, when I tried to open my site in my browser to carry out intruction 29 I got this error message:
_phpbb_db(): Failed opening 'phpBB2/config.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/15/d159382655/htdocs/cms/modules/phpbb.module on line 277.
I have tried changing the name of the phpbb directory through my FTP programme with limited success. It got rid of the error message and let me back into my drupal pages. This let me perform instruction 29 though the phpbb module was already enabled when I got there. However, I am now stumped on intsructions 30 and 31. When I go to administer | settings | phpbb there are no dialogue boxes - just the single word Array along with two buttons, one to save changes and the other to return to default settings.
So, my questions:
Is changing the name of the phpbb directory an OK thing to do at this stage, or do I really need to uninstall phpbb and reinstall in a directory called phpBB2?
Could I instead modify the phpbb.module and .htaccess files changing any references to phpBB2 to forums?
If what I have done so far is OK, how can I get rid of the Array error message and get into administer | settings | phpbb?
Comments
catch 22
I think you may have found a catch 22 that I avoid because I always symlinks. Sorry, I'll look at it over the weekend.
One easy way to get access to the phpBB settings is to copy (not move) the forum directory to phpBB2 temporarily, fix the settings to point to /forum, then delete the phpBB2 directory.
If you are following the instructions, and naming everything forum, you also have to edit the .htaccess file (I had it backwards in the documentation 10 days ago). There should be no reason to edit the module file if you are using the latest version (14 days old or so), but you're correct, that's another way of solving the problem you're seeing.
Thanks for your suggestion.
Thanks for your suggestion. I have created a copy of the forums directory and called it phpBB2. Mt drupal pages open without an error message but I still can't get into administer | settings | phpbb. It still shows the single word Array plus the 'Save Configuration' and 'Reset to defaults' buttons.
If I could get into this page and change the paths to my phpbb directory it would presumably save that information to the database. Is there any way to edit that database directly without going through this page? I guess I need to solve the problem that is giving the Array message anyway, so perhaps it would not help.
To avoid wasting your time, could any of the following be issues:
Although I am using the most up-to-date version of phpbb.module (downloaded yesterday) and of phpbb (2.0.21) my drupal installation is 4.6.5.
The drupal installation has been running the built-in forums which have proved to be much too limited, hence the wish to use phpBB which I have used elsewhere for some time. I have disabled the forum module in administer | modules but I have not removed the forum.module file from the modules directory as I want to be able to re-activate the module if I can't get the phpbb link working as I wish. Could this be creating a problem? Would it be sufficient just to rename the forum.module? If I do, will I lose the whole built-in forum setup or will the associated database remain intact?
I have not yet installed the privatemsg module as it is something that I am not too fussed about. I have, however, enabled the profile module.
4.7 required
Hi,
with regards to the phpbb path I'm puzzled too. I made a mistake in the past and tried to fix it through phpmyadmin, but I couldn't find where that variable is stored :(
But: You really need to use 4.7.x, as stated. The way forms are defined in Drupal has changed.
Below is the old 4.6 code, from revision 1.6
That one is misssing the complete URL-path of the installation and the charsets. There are other forms you have to edit too, the user profile I think.
It's not a problem to skip private messages, but I don't have time to backport the current version (and necessary fixes) to 4.6.x, sorry. Consider upgrading to 4.7, it's really not that hard if your theme plays along.
Thanks for your help
Thanks for that. I had a feeling the drupal version might be significant. The upgrade route seems to be the way to go.