Joomla cuts the returned error message off in the display of it. Check the URL for that page, the full error message is in the URL.
That was it. Had a few phantom users that were imported a long time ago from my old Geeklog user-base, some had apostrophe's in their names and there was the problem. Many thanks.
There is one more tiny little thing that has changed with RC1.
The Joomla_SMF_Discussbot in the Betas included the discussbot link on the front page articles, which display only the introtext on my Joomla template setup. While the link was there, it would not work unless a user viewed the entire story.
Now, in RC1 the link does not display on the front page and only when the full story is viewed.
I checked all my settings double to see that it wasn't a switch. Is this intended, or something I'm missing?
Hi! I've been trying to redirect a user to the comprofiler on login, but the redirect just doesn't seem to work. It always redirects to main page after login.
Do you have any ideas? Thanks in advance
Version Information: Your Joomla version is: 1.0.11 Your SMF version is: 1.1 RC3 Your Joomla-SMF version: 2.0 RC1 Mad SMF Login 2.0.1
Hey,
I have the exact problem with the above configuration. Im using the mod_smf_login URL redirect but it does not work.
Does anyone have a fix or can you tell me where I can change this in the code?
Cheers
Andrew
« Last Edit: October 23, 2006, 05:32:53 AM by Andrew Morpeth »
Logged
Joomla Version: 1.0.11 SMF Version smf 1.1rc3 Joomla-SMF Forum Integration Version 2.0 RC2 PHP Version: 5.1.2 Apache 2.2.0 mySQL 5.0.18
Same problem on my site: - After I log-in using the form on the SMF forum - I'm redirected to the joomla main page. The same with logout. - After I log-in from community builder native login module - I stay on the same page I was previously. No matter if it was a forum or other component.
It is not a bug, but because there are so many things interacting here I do not redirect unless there is nothing else set for a redirect url. If something is set that is where the bridge will redirect you to. It says as much in the user guide and the help in configuration. For the mod_smf_login this will be improved with the next build. For the other modules it is up to them to set the correct data for the redirects.
better check your smf_members table, it seems an entire column is missing. Did you just upgrade SMF? I have had problems with the SMF upgrade procedure in the past.
I reinstalled smf and the bridge but now i get the following error:
Failed:_JSMF_MSG_SMF_JOOMLA_SYNC_CHECK_ERR: db_error:Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation \\\'=\\\' SQL=SELECT count(*) FROM smf_members
The memberid of the inserted user is not always reported back correctly by db_insert_id()! So subsequent updates on this member fail!
I am not sure, but could it depend in some way on the integrate_register function which is called before the db_query call? Anyhow, i fixed it by adding an explicit query to get the correct $memberID. Now it works without problems.
The context, unchanged:
Code:
//this calls the integrate registry function of smf component, so we cannot disable it! if (isset($modSettings['integrate_register']) && function_exists($modSettings['integrate_register'])) $modSettings['integrate_register']($regOptions, $theme_vars);
// Register them into the database. db_query(" INSERT INTO {$db_prefix}members (" . implode(', ', array_keys($regOptions['register_vars'])) . ") VALUES (" . implode(', ', $regOptions['register_vars']) . ')', __FILE__, __LINE__);
...continues, with my fix:
Code:
//original code: but doesn't always return correct inserted memberID!!! //I just renamed the variable to $memberID0 so one could track the fault situation by comparing the 2 different results! $memberID0 = db_insert_id();
//my workaround: i do a query of the membername to get the corrisponding id, //thus not relying on the value which db_insert() give back, Now it works!
//begin fix $request = db_query(" SELECT ID_MEMBER FROM {$db_prefix}members WHERE memberName = '" .$regOptions['username']. "' LIMIT 1", __FILE__, __LINE__);
The function obviouly was designed to strip the enclosing "'" characters from a string But it fails to remove the closing "'" character, if $val contains a "'" string too! This leads in my case to subsequent database query errors!!
As a simple remedy i substitued the second strpos with strrpos, which searches from right to left.
Code:
function trimQuotes($val) { if (strpos($val, "'") == 0) { $val = substr($val, 1); } if (strrpos($val, "'") == (strlen($val)-1)) { //fixed: strrpos() instead of strpos()! $val = substr($val, 0, strlen($val)-1); } return $val; }
//as eventuel present slashes have been trimmed away by the caller and as //as joomla is designed to run without magic quotes off, as far as i know, //we have to invoke addslashes here, otherwise subsequent queries may fail!
//if(!get_magic_quotes_gpc()) { //better omitt the if statement completely $value = addslashes($value); //}
Together with the bug fix of trimQuotes() (see my posting above!!!) i get no more query errors when the full user name contains quote character "'". (magic_quotes_gpc = off!)
It is not a bug, but because there are so many things interacting here I do not redirect unless there is nothing else set for a redirect url. If something is set that is where the bridge will redirect you to. It says as much in the user guide and the help in configuration. For the mod_smf_login this will be improved with the next build. For the other modules it is up to them to set the correct data for the redirects.
Hi Wolverine,
In regards to the redirects. I need to be able to login and logout and be redirected to ONE specific page on my site. However the redirect to URL in the smf_login module does not seem to work.
Is there any fix for this? OR Could you tell me where in the code I could enter a fixed page that will used when you login or log out?
Thanks
Andrew
Logged
Joomla Version: 1.0.11 SMF Version smf 1.1rc3 Joomla-SMF Forum Integration Version 2.0 RC2 PHP Version: 5.1.2 Apache 2.2.0 mySQL 5.0.18
In regards to the redirects. I need to be able to login and logout and be redirected to ONE specific page on my site. However the redirect to URL in the smf_login module does not seem to work.
Is there any fix for this? OR Could you tell me where in the code I could enter a fixed page that will used when you login or log out?
Thanks
Andrew
the newest version of the mod_smf_login will resolve this. I should have it released this week.
The function obviouly was designed to strip the enclosing "'" characters from a string But it fails to remove the closing "'" character, if $val contains a "'" string too! This leads in my case to subsequent database query errors!!
As a simple remedy i substitued the second strpos with strrpos, which searches from right to left.
Code:
function trimQuotes($val) { if (strpos($val, "'") == 0) { $val = substr($val, 1); } if (strrpos($val, "'") == (strlen($val)-1)) { //fixed: strrpos() instead of strpos()! $val = substr($val, 0, strlen($val)-1); } return $val; }
Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use