Sql error on characterprofiler upload using phpbblogin

Use phpBB to authenticate users in Roster

Moderator: Munazz

Sql error on characterprofiler upload using phpbblogin

Postby wgamble » Thu Jul 10, 2008 11:45 am

Everything has been working fine, but when I began using phpbb login, whenever a user uploads their characterprofiler.lua file, it gives me this error:

Database Error1146: Table 'wowroster.phpbbusers' doesn't exist
SQL:
update phpbbusers u, roster_members m set u.user_from=m.zone where ucase(u.name)=ucase(m.name)
File: lib\dbal\mysql.php
Line: 234

I didn't know if this was a problem with the databases communicating or not, however merging them with a fresh install didn't fix the issue either so I thought I would come to the geniuses that created this for help. Thank you in advance. :D
wgamble
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Thu Jul 10, 2008 2:13 am

Sql error on characterprofiler upload using phpbblogin

Postby PleegWat » Thu Jul 10, 2008 1:16 pm

Are your phpbb and roster in the same database?
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Sql error on characterprofiler upload using phpbblogin

Postby wgamble » Thu Jul 10, 2008 5:57 pm

They are now. Initially they were not and I thought this might be what was causing the error. Its very strange because once yesterday it didn't come up at all, but every time after that it did.

Thanks for the help!
wgamble
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Thu Jul 10, 2008 2:13 am

Re: Sql error on characterprofiler upload using phpbblogin

Postby Munazz » Tue Jul 15, 2008 8:38 pm

Hm, I'm not sure why the fact that they are in seperate databases would cause the problem.

The phpbb_login class includes the files from PHPBB directory to load those configuration values and creates a new SQL connection using the PHPBB values and sql class calls. And that connection is stored within the login class specifically to avoid any conflicts.

Any thoughts, PleegWat?
Image
User avatar
Munazz
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 36
Joined: Mon Jul 31, 2006 7:50 am
Location: Fairfax, VA

Sql error on characterprofiler upload using phpbblogin

Postby PleegWat » Wed Jul 16, 2008 3:19 am

From the looks of the error, that query is a join between a roster table and a phpbb table, and that query is being run via the roster DB layer.

The simplest way to fix it would be explicitly specifying the database for the phpbb table. To do this the roster user would need SELECT permission on the relevant phpbb tables.

Alternatively, do the join in memory.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Sql error on characterprofiler upload using phpbblogin

Postby Munazz » Tue Jul 29, 2008 9:34 pm

phpbb_Login class never calls an SQL string of that format. Are you using another addon that interacts with PHPBB and Roster? Perhaps a mod that modifies their posting profile on the forums?
Image
User avatar
Munazz
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 36
Joined: Mon Jul 31, 2006 7:50 am
Location: Fairfax, VA


Return to phpBB Login

Who is online

Users browsing this forum: No registered users and 0 guests

cron