I have a content type set up to allow posting to phpBB.

After selecting which forum to post to and clicking save I get the following error:

# user warning: Table 'mydatabase.phpbbforum_drupal2phpbb' doesn't exist query: SELECT topic_id FROM phpbbforum_drupal2phpbb WHERE node_id = 3 in /home/admin/mywebsite.com/modules/phpbbforum/phpbbforum.module on line 658.
# user error: in /home/admin/mywebsite.com/phpBB3/includes/db/dbal.php on line 654.
# user error: SQL ERROR [ mysqli ]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 [1064]

Im using MySQLi if that means anything.

Comments

problue solutions’s picture

any thoughts on this? Its a feature I'd find incredibly useful and I really really want to get it working!

problue solutions’s picture

FYI - this error still appears when posting a 'story' node even when Drupal to phpBB submission is disabled

user warning: Table 'drupal_sandbox.phpbbforum_drupal2phpbb' doesn't exist query: SELECT topic_id, linked FROM phpbbforum_drupal2phpbb WHERE node_id = 4 in /home/admin/mywebsite.com/sandbox/modules/phpbbforum/phpbbforum.module on line 726.

The error message is permanently on display above the story teaser after the node has been posted.

problue solutions’s picture

Is there any more info I can provide to diagnose this bug?

Treidge’s picture

There is drupal_sandbox.drupal2phpbb Table, not drupal_sandbox.phpbbforum_drupal2phpbb, as required. So, you can go to drupal_sandbox database and rename table drupal_sandbox.drupal2phpbb to drupal_sandbox.phpbbforum_drupal2phpbb

Be careful, i can't guarantee anything, because i'm using drupal for the first day.

problue solutions’s picture

Thanks, but why would phpbbforum have named the table wrong, or why is it trying to use the wrong name?

problue solutions’s picture

I implemented phpbbforum on my main site (new installation, different databases etc) and I am no longer getting this error message, but nothing is being posted to the phpBB forum, all settings ARE correct, content type story has the feature enabled, when posting a story node, I select which forum to post it to etc. Nodes posts ok, no error message, but nothing is posted in the forum.

any ideas?

problue solutions’s picture

is this feature compatible with CCK fileds?

Treidge’s picture

Why it's using wrong table name? Maybe it's just a bug. For CCK fields better ask developers of phpbb integraton module.

Do you try to rename table, as i mentioned before? As far as i know, errors displayed only first time - if there is no error message, this is not 100 % proof that all is fine. Maybe first time that error is displayed you just didn't notice it. On my site i'm able to get working phpbb submission only after i renamed table drupal2phpbb to phpbbforum_drupal2phpbb. After that, all works perfect.

Sorry for my ugly english :)

problue solutions’s picture

Thanks for the info Treidge, I will try this on my test site.

Any input from the developer on this?

problue solutions’s picture

Thanks Treidge, your suggestion worked.

Why has there been no reply from the developer on this? I'm assuming it's a bug in the code yes?

Also I'm assuming the drupal to phpbb posting does not work with CCK fields like I asked before?

This is an excellent module despite any problems :)

vb’s picture

I have fixed table prefix in beta2. The name should be drupal2phpbb. Read release notes to beta2.
Please tell me if beta2 still have CCK issue, i will fix.

fizk’s picture

Status: Active » Closed (fixed)