Login Fails

17 years 5 months ago #26896 by insidejazz
Login Fails was created by insidejazz
Hi ,
I'm new about CB... I've installed joomla 1.0.11 and CB latest version... First problem phpbb connector could't recognized my phpbb table prefix. when i've tried to go "plugin control panel" said "dbname.users cannot find".. I've deleted phpBB forum's table prefixes and then works:) But now , when login with cblogin the error is ;

Fatal error: Call to undefined function encode_ip()
in C:\%path%\phpbbconnector.php on line 138


what's the problem :(

Post edited by: insidejazz, at: 2006/12/13 16:20

Please Log in to join the conversation.

17 years 5 months ago #26900 by geeffland
Replied by geeffland on topic Re:Login Fails
Not sure I know what you mean by

I've deleted phpBB forum's table prefixes and then works


Based on your issues that you mentioned:
1) Connector did not know the phpbb table prefix
2) can not find encode_ip or session_begin

What the issue is:
1) The connector is not able to load the phpbb common.php file (which loads the config.php and other files from phpbb)

The most likely cause for these issues is the "forum directory" not being set correctly in the plugin parameters for the connector. If this forum directory is set wrong then it will not be able to load the phpbb files and will cause these errors...

Default for the "forum directory" is "forum" which means that your website is at

www.yoursite.com
and your forum is at
www.yoursite.com/forum

If they are not installed in the same website and database then the connector won't work... I assume that since you got the database to not give an error that they are indeed in the same database...

Greg

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

Please Log in to join the conversation.

17 years 5 months ago #26902 by insidejazz
Replied by insidejazz on topic Re:Login Fails
thanx geeffland ,
I meaned that , my phpBB tables had table prefix like "phpbb_users" table and i deleted all "phpbb_" table prefixes otherwise bridge couldn' recognize it.

and my forum directory is the default.also plugin setting is default diretory.

the user sync works but can't login from cblogin . gives that encode_ip() error...

Please Log in to join the conversation.

17 years 5 months ago #26903 by geeffland
Replied by geeffland on topic Re:Login Fails
You probably should not have deleted the prefixes off of the table names... Does phpbb work anymore by itself? If you did not also change the config.php file for phpbb it probably can't get to its own tables...

encode_ip is one of phpbb's functions... so again if it can not find the forum files then it won't work.

Any other errors visible?

Are the following statements correct?
1) the forum directory is "forum"
2) your website is www.yoursite.com
3) You can access your forum by going to www.yoursite.com/forum and it is working
4) You are using phpbb 2.0.19 or newer
5) Using Joomla 1.0.10 or newer
6) Using CB 1.0.1 or CB 1.0.2

Greg

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

Please Log in to join the conversation.

17 years 5 months ago #26905 by insidejazz
Replied by insidejazz on topic Re:Login Fails
yes also i reconfigured phpBB's config.php and works alone without any problems.

1) yes directory is forum
2) yes my site "www.mydomain.com"
3) yes without any problem
4) phpBB 2.0.21
5) Joomla 1.0.11
6) CB 1.0.2

very strange and i don't understand why.

thanx...

Please Log in to join the conversation.

17 years 5 months ago #26907 by geeffland
Replied by geeffland on topic Re:Login Fails
In phpbbconnector.php try changing the following code

From

[code:1] function includephpBBFiles() {
global $phppBBsessionID, $phpBBforumPath;
global $db, $phpEx, $phpbb_root_path;
global $lang, $table_prefix, $theme, $style, $board_config, $userdata;
$phpbb_root_path = $this->forumPath();
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'common.'.$phpEx);
return true;
}[/code:1]

to


[code:1] function includephpBBFiles() {
global $phppBBsessionID, $phpBBforumPath;
global $db, $phpEx, $phpbb_root_path;
global $lang, $table_prefix, $theme, $style, $board_config, $userdata;
$phpbb_root_path = $this->forumPath();
require_once($phpbb_root_path . 'extension.inc');
require_once($phpbb_root_path . 'common.'.$phpEx);
return true;
}[/code:1]

basically change include_once to require_once... this will cause a fatal error if the file can not be found...

After changing this post back the error message that you are getting... (FWIW, encode_ip is in the functions.php file in the includes directory of phpbb)

Greg

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

Please Log in to join the conversation.

Moderators: beatnantgeefflandmartijn189krileon
Time to create page: 0.205 seconds