Uncaught VBridgeException after server move

vertikal.dk - July 24, 2009 - 10:44
Project:phpBBforum Integration module
Version:6.x-2.0-beta5
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

After having moved my phpBB and the Drupal-installation from a local development server to an online server I get the following error message:

Fatal error: Uncaught VBridgeException: [1]: exit thrown in /var/www/vhost/dsf.vertikal.dk/sites/all/modules/phpbbforum/includes/phpbbvbridge/phpbb_api_hooks.php on line 147

The site as well as the board has been running before on the online server, but this last upgrade seems to have broken something. Since the whole site is under development and the forums are still empty, I installed a fresh phpBB, ran the whole install procedure with patching, created a new set of database tables and configured the board again. This procedure ran smoothly, but I still can't run Drupal. I get the above error in spite of the new install.

I thought it might be connected with my style and template changes, so I ditched them and installed brand new versions of the embed-styles.

No effect.

The only thing I can get to work right now is simply renaming the /phpBB3. That makes Drupal work, but leaves me without a forum.

Up to now the module has been running smoothly and I really appreciate the work put into this. Kudos!

My only grudge is phpBB's extreme complexity and the pain of working with its arcane template and style system... Yikes! I can only praise Drupal for its simplicity and efficiency in this regard. But the client runs phpBB now and wants everything moved over.

Hope somebody can give me a friendly push in the right direction.

Martin

#1

vb - July 24, 2009 - 11:07

First, try this:
Clear all caches in Drupal (module devel or somehow)
Clear phpbb cache (you can simple clear folder phpBB3/cache)
If you can enter phpbbforum setings, check the paths and save settings even though you have not changed it.

#2

vertikal.dk - July 24, 2009 - 14:35

Vadim,

Thanks for the tip!

I wound up reinstalling the forum and the module in sheer frustration. I will have to do my design changes again, but at least I know I have a clean installation that works.

This time I installed on the online server (Linux) and had no problems.

But after having copied back the files and the database to the local development server (Windows) I got a hint to a possible source of errors - maybe including the original problem. The path to phpBB obviously gets saved in the database, and upon transferring that I of course transfer a "wrong" path - /var/www... on Linux versus C:\Program files\Apache... on Windows.

So now I have the opposite problem, although not as severe. My Windows-installation runs, but wont's show the forum, and no matter what path I enter in /admin/settings/phpbbforum I get the same errors:

Error locating phpBB installation. Please fix your settings!
Error locating . Please fix your settings!
Unable to connect to the phpBB database. Please fix your settings!

The module can't seem to find the forum software, the config file and hence the database.

I have tried all kinds of strange paths to no avail. I have my htdocs folder mapped to a separate drive z: on my Windows server, but z:\[mysitefolder]\phpBB3\ as well as z:/[mysitefolder]/phpBB3/ or any full path using drive c: fails. I can of course develop online, but particularly theme and style work is easier to do locally IMO.

What's the right syntax for entering a Windows path?

My Windows phpBB3 directory is C:\Programmer\Apache Software Foundation\Apache2.2\htdocs\[mysitefolder]\phpBB3 as well as z:\[mysitefolder]\phpBB3

Martin

#3

vb - July 24, 2009 - 15:04

I do not recommend mapping.
In windows should work in both variants with \ or /
If your forum in
C:\Programmer\Apache Software Foundation\Apache2.2\htdocs\vertikal.dk\phpBB3\
first open in browser http://localhost/vertikal.dk/phpBB3
if it works then

phpBB forum root path:

C:\Programmer\Apache Software Foundation\Apache2.2\htdocs\vertikal.dk\phpBB3\

Enter the full directory path where phpBB is installed.

Path to phpBB api file:
sites/all/modules/phpbbforum/includes/

phpBB api file name:
phpbb_api.php

Do not forget to add trailing slash to phpBB3/ and phpbbforum/includes/ path.

Install xampp. No problem with it.

#4

aviddv1 - August 19, 2009 - 16:32

I had the same error. For me, the fix was simply deleting the install directory from phpBB3.

#5

kakajoe - October 27, 2009 - 23:53

is this a bug ?? cause i have the same error too...and that make my website can not be access, because the error page.

#6

ore - October 29, 2009 - 08:21

When moving a site with this module I highly reccomend doing the following.

Put the site in maintenance mode, disable the phpbbforum module. move the site. Once on the new server use the devel module to delete all variables labeled phpbbforum. (you could probably get away with just the path ones but i did all), renable the module and your good to go.

#7

filip_tc - December 9, 2009 - 23:38

Had the same error after updating to phpBB3.0.6.

Hope flushing caches + removing install = works.

#8

filip_tc - December 9, 2009 - 23:40

Confirming, worked. No idea which one of them did but I my guess is that removing the install directory prevented the phpBB from giving the exit error.

 
 

Drupal is a registered trademark of Dries Buytaert.