Forum

MamboHacks.com => Mambo-SMF Forum 1.3.0 Support => Topic started by: Damienov on April 27, 2005, 12:03:53 PM



Title: error when sync ing user
Post by: Damienov on April 27, 2005, 12:03:53 PM
when i sync user, the page load takes a long time to process, and i finnaly ended in a 404
the login/logout works but it display an error in between please check it at http://www.ubertastic.com

try logging with this:
user= test
pass= 123456


Title: Re: error when sync ing user
Post by: Matthew Kragness on April 27, 2005, 12:17:18 PM
mine is doing the same funky thing in between login, and logout! It does what it is suppose to but is sloppy getting there? with the errors?


Title: Re: error when sync ing user
Post by: Damienov on April 27, 2005, 12:30:32 PM
I know, this didnt happen on my testing server, because it only has 15 users
but with a live site 3600+ user snyc ing IS a problem.
all i need to know, did this happen because i get a page timeout when sync ing? Is there a manual way to re sync it? is there a way to un nsyc it so if a timeout acour, there is way to continue/re-sync? because even when i get the page timeout, the config says that the user have been synchorized  ???


Title: Re: error when sync ing user
Post by: Damienov on April 27, 2005, 12:37:59 PM
this is the erro that i found
Code:
2: call_user_func(): First argument is expected to be a valid callback
File: /var/www/html/forum/Sources/Subs.php
Line: 1241


Title: Re: error when sync ing user
Post by: cowboy on April 27, 2005, 01:52:54 PM
Quote from: Damienov on April 27, 2005, 12:37:59 PM
this is the erro that i found
Code:
2: call_user_func(): First argument is expected to be a valid callback
File: /var/www/html/forum/Sources/Subs.php
Line: 1241


Did you get the patch2 here (http://www.mambohacks.com/component/option,com_smf/Itemid,66/expv,0/topic,168.0)


Title: Re: error when sync ing user
Post by: robbievk on April 27, 2005, 01:55:26 PM
yes we downloaded that but the error persists... i got some screenshots for you if that would help...


Title: Re: error when sync ing user
Post by: robbievk on April 27, 2005, 01:59:15 PM
both the screenshots that show for 2 seconds, look at the generation time by the double footer (?)


Title: Re: error when sync ing user
Post by: cowboy on April 27, 2005, 02:06:27 PM
this looks like a an issue with installing the SMF mod. Did your install went well? Because your error should be resolved by the SMF mod.


Title: Re: error when sync ing user
Post by: robbievk on April 27, 2005, 02:10:08 PM
Quote from: admin on April 27, 2005, 02:06:27 PM
this looks like a an issue with installing the SMF mod. Did your install went well? Because your error should be resolved by the SMF mod.


damienov installed for me, and i understood he got a timeout resyncing the members, it's a live forum with 3600+ members, can that be the cause and if so, is there a way to solve it?


Title: Re: error when sync ing user
Post by: cowboy on April 27, 2005, 02:15:48 PM
About the sync issue, do you still see that "click to sync" link at the component admin? If you don't, it means it's done syncing.

But.. i'm talking about the SMF mod. It seems like the install didn't go well and it's not moded properly. Can you try uninstalling the mod and install it again. You should not see any failure.


Title: Re: error when sync ing user
Post by: robbievk on April 27, 2005, 02:30:40 PM
oh yeah one thing in between, there's a undefined variable in functions.smf.php at line 264 called $temp... thought you'd like to know if you didn't already.

i'll check the package...


Title: Re: error when sync ing user
Post by: robbievk on April 27, 2005, 02:39:55 PM
no failures whatsoever...

i really don't get it.
got more suggestions?


Title: Re: error when sync ing user
Post by: cowboy on April 27, 2005, 02:57:08 PM
Quote from: robbievk on April 27, 2005, 02:30:40 PM
oh yeah one thing in between, there's a undefined variable in functions.smf.php at line 264 called $temp... thought you'd like to know if you didn't already.

i'll check the package...

This should not be causing problems on live sites. But thanks for letting me know.


Title: Re: error when sync ing user
Post by: cowboy on April 27, 2005, 03:00:13 PM
Quote from: robbievk on April 27, 2005, 02:39:55 PM
no failures whatsoever...

i really don't get it.
got more suggestions?

actually me too, i have my demo site and it's not doing your errors. One thing you can try is uninstall the SMF mod, then re-install it.


Title: Re: error when sync ing user
Post by: robbievk on April 27, 2005, 03:15:10 PM
Quote from: admin on April 27, 2005, 03:00:13 PM
One thing you can try is uninstall the SMF mod, then re-install it.


didn't i just do that?


Title: Re: error when sync ing user
Post by: cowboy on April 27, 2005, 03:24:44 PM
I really can't reproduce your error so all i can suggest for you is re-install. So if you're sure that install went smoothly, i guess i need to see it from your server to understand the problem.


Title: Re: error when sync ing user
Post by: robbievk on April 27, 2005, 03:27:49 PM
Quote from: admin on April 27, 2005, 03:24:44 PM
I really can't reproduce your error so all i can suggest for you is re-install. So if you're sure that install went smoothly, i guess i need to see it from your server to understand the problem.


you are very welcome to join the fun/troubleshooting! :)


Title: Re: error when sync ing user
Post by: cowboy on April 27, 2005, 03:35:44 PM
Quote from: robbievk on April 27, 2005, 03:27:49 PM
you are very welcome to join the fun/troubleshooting! :)


I think your issue should be solve by this SMFMamboMod_1.3.0.b1a.zip.
It's on the announcement board. http://www.mambohacks.com/component/option,com_smf/Itemid,66/expv,0/topic,168.0


Title: Re: error when sync ing user
Post by: robbievk on April 27, 2005, 03:45:34 PM
Quote from: admin on April 27, 2005, 03:35:44 PM
I think your issue should be solve by this SMFMamboMod_1.3.0.b1a.zip.
It's on the announcement board. component/option,com_smf/Itemid,66/expv,0/topic,168.0

that's the one i installed twice now... don't get me wrong but i tried all you said...

aargh  :P ;D


Title: Re: error when sync ing user
Post by: robbievk on April 27, 2005, 03:48:30 PM
Code:
session-check error

That's the error i get at one of my other sites, does that maybe ring a bell?


Title: Re: error when sync ing user
Post by: cowboy on April 27, 2005, 03:52:17 PM
Quote from: robbievk on April 27, 2005, 03:45:34 PM
that's the one i installed twice now... don't get me wrong but i tried all you said...

aargh  :P ;D


Are you sure?  ??? coz' i'm still seeing the call_user_func() error on the logout that i believe should be fixed by this mod.

Can you open the file <smf>/Sources/Subs.php and look for
"if (defined( '_VALID_MOS' ))"
Tell me what's under that condition statement.


Title: Re: error when sync ing user
Post by: robbievk on April 27, 2005, 04:02:12 PM
Code:
global $mainframe, $mosConfig_live_site;
if ($_REQUEST['action'] == "logout") call_user_func($mainframe->logout());
if ($_REQUEST['action'] == "login2" || $_REQUEST['action'] == "logout") $setLocation = $mosConfig_live_site;
$setLocation = str_replace("&?", "&", $setLocation);

that's what it states underneath...


Title: Re: error when sync ing user
Post by: cowboy on April 27, 2005, 04:06:14 PM
Quote from: robbievk on April 27, 2005, 04:02:12 PM
Code:
global $mainframe, $mosConfig_live_site;
if ($_REQUEST['action'] == "logout") call_user_func($mainframe->logout());
if ($_REQUEST['action'] == "login2" || $_REQUEST['action'] == "logout") $setLocation = $mosConfig_live_site;
$setLocation = str_replace("&?", "&", $setLocation);

that's what it states underneath...


You see haha... you have not installed it  ;D
uninstall that mod... and install the one in announcement board.

you can actually replace "call_user_func($mainframe->logout());" with just "$mainframe->logout();". But I don't want you to do that as you will have a problem uninstalling the mod in the future.

then let me know what happens.


Title: Re: error when sync ing user
Post by: robbievk on April 27, 2005, 04:13:08 PM
Oh man i hoped that would solve it all....

so there is something i did wrong... but at my test site the php states what you said, but indeed the site where it's all about had wrong code.

But i still get the error, when i logout it says: session verification failed, please try logging out and logging back in again.

Or something like that atleast, the login error remains the same as before...

man i'm already filled with joy that we found atleast something!  ;D
Sorry if i didn't follow correct instructions, that's what working on two sites at the same time will do for ya...


Title: Re: error when sync ing user
Post by: cowboy on April 27, 2005, 04:41:45 PM
Quote from: robbievk on April 27, 2005, 04:13:08 PM
Oh man i hoped that would solve it all....

so there is something i did wrong... but at my test site the php states what you said, but indeed the site where it's all about had wrong code.

But i still get the error, when i logout it says: session verification failed, please try logging out and logging back in again.

Or something like that atleast, the login error remains the same as before...

man i'm already filled with joy that we found atleast something!  ;D
Sorry if i didn't follow correct instructions, that's what working on two sites at the same time will do for ya...


Your session error is due to failed initial login to SMF. I really still don't know why you're failing the SMF login from Mambo. You see in my demo site (squaresite.com), the login process is fine.

Are you sure you installed patch2?  ;D Can you open /administrator/components/com_smf/functions.smf.php and look for:
"if (syncToSMF())"
tell me what's under it.


Title: Re: error when sync ing user
Post by: Damienov on April 27, 2005, 09:21:40 PM
I have uninstall and reinstall the mod and mod works fine

the lines is
Code:
mosRedirect( $mosConfig_live_site.'/index.php?option=com_smf&Itemid=28...
return;
}


Title: Re: error when sync ing user
Post by: cowboy on April 27, 2005, 10:06:09 PM
Damienov,

About your concern I did test it coz I know it would be a big issue. Trust me, I know  :D. Now for uberstatic.com, it's a big issue, coz it's failing the login to MSF.

It will never be in your history, try testing test1/test123 in squaresite.com. You'll see that you'll never find it in history. If I am wrong, I have to find another way.


Title: Re: error when sync ing user
Post by: Damienov on April 27, 2005, 10:42:03 PM
Quote from: admin on April 27, 2005, 10:06:09 PM
Damienov,

About your concern I did test it coz I know it would be a big issue. Trust me, I know  :D. Now for uberstatic.com, it's a big issue, coz it's failing the login to MSF.

It will never be in your history, try testing test1/test123 in squaresite.com. You'll see that you'll never find it in history. If I am wrong, I have to find another way.

I have tested as you suggested.
i'm sorry, i can still see it  :)
i'm using FF btw

also are you editing/uploading the squaresite.com (SELL this Domain for a gaming site, believe me! expecialy squaresoft fans :))
I login using the user you provided, and i see error much worse than the ubersite.
Code:
Notice: 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 'AND g2.group_id='Registered'' at line 4 in /home/roceller/public_html/includes/database.php on line 184

Notice: 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 'AND g2.group_id='Administrator'' at line 4 in /home/roceller/public_html/includes/database.php on line 184

Warning: Cannot modify header information - headers already sent by (output started at /home/roceller/public_html/includes/database.php:184) in /home/roceller/public_html/includes/mambo.php on line 352

Warning: Cannot modify header information - headers already sent by (output started at /home/roceller/public_html/includes/database.php:184) in /home/roceller/public_html/includes/mambo.php o

if you like, you can contact me trogh YM, i have sent you my adress to your pm. I just cant seem to find a live chat anywhere here :)


Title: Re: error when sync ing user
Post by: cowboy on April 27, 2005, 11:20:24 PM
Actually I just noticed the error and trying to fix it. Squaresite is mambo 4.5.1, the error does not happen in 4.5.2, where i initially tested it.


Title: Re: error when sync ing user
Post by: Wolfgang Bornath on April 28, 2005, 11:54:18 AM
Quote from: admin on April 27, 2005, 03:35:44 PM
I think your issue should be solve by this SMFMamboMod_1.3.0.b1a.zip.
It's on the announcement board. component/option,com_smf/Itemid,66/expv,0/topic,168.0

Could this help in my case as well (not synching all users)?

wobo


Title: Re: error when sync ing user
Post by: robbievk on April 28, 2005, 12:01:58 PM
Quote from: Wolfgang Bornath on April 28, 2005, 11:54:18 AM
Could this help in my case as well (not synching all users)?

wobo


i guess you got the same issues as i do


Title: Re: error when sync ing user
Post by: cowboy on April 30, 2005, 03:16:53 AM
Ok, I just found out why. Just tested with 3000 dummies on my website.

Please get patch2 here (http://www.mambohacks.com/component/option,com_smf/Itemid,66/expv,0/topic,168.0).


Title: Re: error when sync ing user
Post by: Gandalf on April 30, 2005, 03:35:26 AM
ok i'm uploading it and i will get you result, BTW how do i resync members? do ihave to delete them all using phpmyadmin (except admin) and resync but also sync button is disabled no?

EDIT: the button isn't disabled syncing now..


Title: Re: error when sync ing user
Post by: cowboy on April 30, 2005, 03:41:29 AM
yes, if all your member are from SMF.


Title: Re: error when sync ing user
Post by: Gandalf on April 30, 2005, 03:43:28 AM
nope i still have 10 pages out of 81 :'(
what i've done, uploaded the new patch, "click to sync"

quoting still doesn't work for me :'(

EDIT: ok since you answered yes, i will delete all users from phpmyadmin


Title: Re: error when sync ing user
Post by: Gandalf on April 30, 2005, 03:54:20 AM
hmmmmmmm.. still in the same situation, neither usermanager neither quoting works :o


Title: Re: error when sync ing user
Post by: Gandalf on April 30, 2005, 04:33:06 AM
I apologise man, i didn't notice that files permission was screwed up and ftp failed to upload the patch, so far so good, i actually see now 72 pages out of 81 (50 user each page) so still some members missing

quoting also works great!!!

man can i know what was the problem with users since they was successfully transfered why they didn't appear???


Title: Re: error when sync ing user
Post by: cowboy on April 30, 2005, 11:50:55 AM
they were suppose to be inserted to 3 mambo tables. I didn't realize that it was not executed in mos_core_acl_aro and  group_id_aro_id_groups_aro_map tables.


Title: Re: error when sync ing user
Post by: Gandalf on April 30, 2005, 01:11:11 PM
k then there's still a problem

mos_core_acl_aro :  3,838
mos_core_acl_groups_aro_map :  3,573
mos_users :  4,034


Title: Re: error when sync ing user
Post by: Gandalf on April 30, 2005, 02:37:52 PM
ok guys i already fixed mine by a simple dirty script (manually) it's already sync and i have all users in usermanager now, here i attach the script (fill in the first values of the script)

P.S: don't look at the code it's dirty 5 minutes job so a lot of useless maybe there's a better way also in it but it just do the trick) :P :P

P.P.S:this script will not touch SMF database, it suppose that you have already done the sync using the bridge, also don't forget to make a backup of the whole database just in case..

Code:
<?
$username="";
$password="";
$database="";
$mos_prefix="";



$missing = array();
$mos_users_temp=array();
$mos_users=array();
$mos_core_acl_aro_temp=array();
$mos_core_acl_aro=array();
$handle=mysql_connect("localhost","$username","$password");
mysql_select_db("$database");
$result = mysql_query("SELECT id FROM {$mos_prefix}users");
while ($mos_users_temp[] = mysql_fetch_assoc($result)){
$mos_users[] = $mos_users_temp[count($mos_users_temp) - 1]['id'];
}

$result=mysql_query("SELECT value FROM {$mos_prefix}core_acl_aro");
while($mos_core_acl_aro_temp[] = mysql_fetch_assoc($result)){
$mos_core_acl_aro[] = $mos_core_acl_aro_temp[count($mos_core_acl_aro_temp) - 1]['value'];
}

foreach ($mos_users as $value)
{
    if(!in_array($value,$mos_core_acl_aro))
        $missing[]=$value;
}

/*print_r($missing);
print_r($mos_users);
print_r($mos_core_acl_aro);*/
foreach($missing as $value)
{
    $result=mysql_query("SELECT name FROM {$mos_prefix}users WHERE id=$value");
    $name=mysql_fetch_assoc($result);
    $result=mysql_query("INSERT into {$mos_prefix}core_acl_aro (value, name) VALUES ($value,'$name[name]')");
}


$aro_id_temp=array();
$aro_id=array();
$aro_id_temp2=array();
$aro_id2=array();
$missing=array();
$result=mysql_query("SELECT aro_id FROM {$mos_prefix}core_acl_aro");
while ($aro_id_temp[] = mysql_fetch_assoc($result)){
$aro_id[] = $aro_id_temp[count($aro_id_temp) - 1]['aro_id'];
}

$result=mysql_query("SELECT aro_id FROM {$mos_prefix}core_acl_groups_aro_map");
while ($aro_id_temp2[] = mysql_fetch_assoc($result)){
$aro_id2[] = $aro_id_temp2[count($aro_id_temp2) - 1]['aro_id'];
}

foreach ($aro_id as $value)
{
        if(!in_array($value,$aro_id2))
                $missing[]=$value;
}

foreach($missing as $value)
{
      $result=mysql_query("INSERT into mos_core_acl_groups_aro_map (group_id, aro_id) VALUES (18,$value)");
}

print "done";
?>

or just copy
http://www.siemens-mobiles.org/blablo.phps and rename it to whatver .php


Title: Re: error when sync ing user
Post by: Wolfgang Bornath on April 30, 2005, 10:02:17 PM
YOU DA MAN!

Now I'm able to see at least all 265 users which were synched  (out of 2,000). Good job!

wobo


Title: Re: error when sync ing user
Post by: Gandalf on April 30, 2005, 10:03:09 PM
no problem it's just a 5min job lol, i'm laughing when i see my code lol :D


Title: Re: error when sync ing user
Post by: cowboy on April 30, 2005, 10:16:35 PM
good job man.

anyway, i guess we're ready for the main release.
I also fixed this issue plus 2-way syncing.


Title: Re: error when sync ing user
Post by: Gandalf on April 30, 2005, 10:19:37 PM
is it already there( i mean the fixed one, because i'm trying to find out now why the modify doesn't work by installing fresh install of both mambo + SMF


Title: Re: error when sync ing user
Post by: Gandalf on April 30, 2005, 10:42:16 PM
man please before going with final release, verify that no problems with statistics as i describe it [ur=http://www.mambohacks.com/component/option,com_smf/Itemid,66/expv,2/topic,205.0]here[/url]


Forum | Powered by SMF 1.0.5 & Mambo-SMF.
© 2001-2005, Lewis Media. All Rights Reserved.