Download & Extend

Uncaught VBridgeException after server move

Project:phpBB Forum Integration
Version:6.x-2.0-beta5
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

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

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

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

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

#5

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

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

Had the same error after updating to phpBB3.0.6.

Hope flushing caches + removing install = works.

#8

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.

#9

I simply moved the phpbbforum module out of the drupal sites/all/modules directory.

Still didn't work, so I restored the phpBB3 database from a backup.

Verified phpBB3 was working.
Verified drupal site was working.

Re-applied the phpbbforum module and it worked fine.

Cause:
I experienced a hard lockup where I had to power off the machine.

#10

Thanks, deleting the install folder worked for me.

#11

Good folks,

Now, I don't want to shy people away from PHPbb3 and this module, but just refer to my own story. I fought long and hard to get the PHPbb3 to work properly on a site with many thousands of users and posts. It all went wrong: login and registration sync failed, theming and design was a menace and there were lots of strange errors (including this one as you can read above). I finally buckled and turned to Advanced Forum.

I haven't looked back!

There is a facility to convert all previous PHPbb3-threads to Drupal's forum format (It supports PHPbb3 in spite of the name), which did a very nice job for me, and it's a relief to be "back" in standard Drupal with regards to login, roles, templates, theming, modules and all the options that I'm used to.

I lost some functions from PHPbb, but most of them I don't miss. Some can be reestablished with standard Drupal functions or modules built for the purpose.

So the deepest respect for the people who built and maintains the PHPbb3-module, but converting to Advanced Forum took me a day and it has run perfectly since quickly growing in usage and functions. And that after having struggled with implementing PHPbb for weeks.

Martin

#12

I was getting similar errors:

[Thu Aug 12 16:46:36 2010] [error] [client 127.0.0.1] PHP Fatal error:  Uncaught VBridgeException: [1]: exit\n\n  thrown in /var/www/vhosts/XXXX/httpdocs/sites/all/modules/phpbbforum/includes/phpbbvbridge/phpbb_api_hooks.php on line 144
[Thu Aug 12 16:46:36 2010] [error] [client 127.0.0.1] PHP Fatal error:  SQL ERROR [ mysql4 ]<br /><br />Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) [2002]<br /><br />An SQL error occurred while fetching this page. Please contact the <a href="mailto:XXX@example.com">Board Administrator</a> if this problem persists. in /var/www/vhosts/XXXX/phpBB3/includes/db/dbal.php on line 697

My problem was the phpBB3 board was put in disabled mode. I have to imagine this is a fairly common workflow. I upgraded my forums from phpBB2 to phpBB3 and put them in offline mode during the upgrade. Then, I installed the phpbbforum module and WSOD'd the whole site. It is fairly unacceptable that simply setting the forums to disabled white screens the whole Drupal site. This module is very fragile with regards to its settings (WSOD if you don't have a trailing / in your settings paths, etc.). That said, this is still beta software and will have time to improve (this was in beta-12).

#13

Status:active» closed (fixed)
nobody click here