SMF & WordPress

Started by Stixsmaster, March 31, 2007, 08:15:55 PM

Previous topic - Next topic

brainiac744

#100
It would probably be more helpful for people with similar setups if we stayed here and did it, but if you'd rather PM that's fine.

The problem is that anytime I log into SMF I'm not logged into WP, and the same is true for the reverse. Another little glitch is that no matter what I set the cookie duration to when I log into SMF it defaults to an arbitrary value. That's not such a large deal, but everybody keeps having to log back in. If that time value could change, I'd set it to something like this:
time()+60*60*24*365

That SHOULD make the cookie stick for a year, unless they log out.

I -think- that most of my users got integrated before the max execution was reached, but SMF and WP are reporting a different number of users. WP is reporting about 200 more than SMF (all users were integrated from SMF to WP, so if I need to toast everything in the WP database, that's not a large deal). A couple of my users are also reporting problems logging in, I haven't experienced that though. For them I've just been logging into WP and manually changing their password there.

jjgallow

Hello brainiac744,

I will be around later today, and hopefully we can find a time to fix some of these problems.

I have addressed a number of them already, involving the cookies.  I have not updated the version number, but fresh downloading fresh builds from my site:

http://www.earthorbit.com/opensource

Should help with a lot of your compatibility problems.

You could re-install, or simply replace these two files:

yourblog/wp-content/plugins/wp_smf.php
and
yourforum/Sources/SMF_Wordpress.php


cheers!

I willl PM you as well.

brainiac744

#102
Okiedokie, I'll update those files now.

You might want to wait a few days to look into my problems because I just got word from my server admin that one of the drives in the mysql server's raid array died, and a replacement won't be here until probably the weekend.


UPDATE:
OK, here's what seems to be happening now:
-Logging in and out from each package (SMF and WP) seem to only affect that package for users integrated from SMF to WP. I can login to either one with my username and password from SMF though.
-Logging in from the login form on my home page (which is connected to SMF's SSI.php) only logs me into SMF
-Logging into WP from the only account that was there before integrating (admin) logs me into both SMF and WP, but SMF doesn't show a username for me. (i.e. instead of saying "Hey, USER, you have 0 messages" it says "Hey, , you have 0 messages" in the header)

From these symptoms I'd say that when I integrated users it probably didn't completely finish before dying on me. At this point would it be easier for me to just deactivate the plugin on the WP side and clear out all the users? As far as I know (since I called it a beta and launched it only yesterday) only a couple blogs have been made so I wouldn't feel bad about erasing them.


Here's a bit more information about how my blogs and forum are set up:
-The forum is in a subdirectory from the main site (domain.com/smf)
-The blogs are in subdirectory mode, but are on a subdomain of the main site (blogs.domain.com/user)


Also, testing things on the server has become very difficult because since the RAID array is running in degraded mode, I'm getting a lot of mysql errors (not related to the bridge).



Oh and I almost forgot. The SMF plugin page on WP won't seem to load for me anymore, I just get a blank white page. Not sure if that's a result of the database server fluctuating or not...

shortyb

#103
Hey sorry works had me all over trying to make me an IT guy when Im not that skilled with bs. ANY WHO! Nice work man! I have installed the new twin plugin works good got all the current users added to WP now. So far I have not gave a real hard testing but I will so far all looks to be a lot better thanks for making the looks for stats better can be viewed here. [nofollow] Still waiting on the News/Announcements wp.display though! (I have had no time to work on tracking down how to do it )

Issue: User Deletion! When deleted from wordpress admin it gives this error

Warning: implode() [function.implode]: Bad arguments. in /wp-content/plugins/WP_SMF/smf_api_1.1.php on line 394

Warning: implode() [function.implode]: Bad arguments. in /wp-content/plugins/WP_SMF/smf_api_1.1.php on line 394

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /wp-content/plugins/WP_SMF/smf_api_1.1.php on line 395

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /wp-content/plugins/WP_SMF/smf_api_1.1.php on line 403

Warning: Cannot modify header information - headers already sent by (output started at /wp-content/plugins/WP_SMF/smf_api_1.1.php:394) in /wp-includes/pluggable.php on line 329

But does delete the user from both database's. However it leaves the member counter and latest member stats the same. Deletion from SMF Works for all SMF features but does not delete from WP.

I'm thrilled I can now use the SMF registration for my whole site thanks man!

jjgallow

#104
Thank you too, shortyb!

Great stats integration!  I can't wait to get all user issues ironed out so I can just work on the site integration features...which have huge potential.

I was actually aware of that error, and I will address it, but since the deletion actually works, I have not gotten there yet.  Absolutely, the next version will clear any error messages up for deletion and get the counts right too.  The problem is in the way the function loops, because it only gives errors when multiple users are deleted.

Thanks for the heads up...  I promise to take care of that for 1.07.  And congrats for successfully bridging your site!

jjgallow

Hello brainiac744,

That's unfortunate!  Sorry I haven't caught you today. 

Tonight, I'm going to build a site with the same configuration as yours, and get everything working.  I'll even add 4000 users and subdomains.

cheers

brainiac744

Thanks for all the help and for doing that. Unfortunately I've just gotten word that the new drive won't be here until Friday, and until then that database server is inaccessible. That means I unfortunately won't be able to provide any more feedback until then.

jjgallow

#107
Quote from: brainiac744 on July 18, 2007, 01:06:29 PM

-Logging into WP from the only account that was there before integrating (admin) logs me into both SMF and WP, but SMF doesn't show a username for me. (i.e. instead of saying "Hey, USER, you have 0 messages" it says "Hey, , you have 0 messages" in the header)

From these symptoms I'd say that when I integrated users it probably didn't completely finish before dying on me.

Hello brainiac,

For this particular situation, the way the integration tool works, wordpress's admin would have been the first user integrated.  So there wouldn't have been any timeout problem.  My guess is this is also a cookie problem.  If you check in SMF, you should be able to tell if "admin" is a member or not...this would help narrrow down the problem.

p.s....sorry to hear about your RAID drive.  best luck with it.

jjgallow

Quote from: brainiac744 on July 17, 2007, 03:13:32 PM

I installed the bridge on my site with 4000+ members. It DID eventually bridge all the users after I clicked the button many times, but since I had so many members to bridge, the max execution time was reached before the script finished entirely. I can't raise the limit since my host is running in safe_mode, but I thought you should know so that in the next version you could perhaps have some kind of detection for that?

Hello brainiac,

It's too bad you're stuck in safe_mode here, but my guess is that you did complete the integration.  For the next version, I have increased the maximum time to 5 minutes.  However, since you're in safe_mode, as you described, it will not fly for you.  It is very easy to detect safe_mode, but not so easy to get around it. 

I will try to figure out a workaround for this, but it won't be simple.  Let's see if your repeated clicking method turns out to have worked!  I think it should.

jjgallow

Ok brainiac and shortyb,  I have addressed a number of issues brought up, and fixed the script for them.    These include:

shortyb:  deletion error warnings  --> Identified and  fixed.

brainiac:  WPMU cookie problems with subdomains --> Identified and fixed.
(this includes all your login and logout problems)

brainiac:  Blank screen in WP_SMF admin  -->  Identified and fixed.

brainiac:  Integration timeouts for large databases  -->  Identified, improved...but will still timeout in safe_mode.  I will work on this.


I am including these fixes in version 1.07, now available at:
http://www.earthorbit.com/opensource

Both plugins need to be updated for the changes to take effect, and the SMF path may need to be set again in "Plugins-->SMF".


Please let me know if they work for you.  If they do, I can move onto some of the other issues.

cheers  :)


p.s....mmPS, I have not forgotten you!  I have PM'd you.

mpMS

Hi jj,

I have good news and bad news....

I have installed the WP_SMF 1.07 and SMF_Wordpress 1.07 and it works fine except for SMF to WP  :-[

I forgot to tell you that I am using Internet Explorer 6 & 7, so I decided to use Firefox and tried if I will also encounter this problem.

You know what? IT WORKED!!!  8) 8) 8)

There is something to do with the browser.

Its almost time for a celebration... Just a little more....  ;D

shortyb

mpMS I know this is probably a stupid Q but you do have your databases able to interact with each other right? you gave your wp db and smf db access to each other? Im not sure if you even have to with this script I just do it out of habbit because of other bridges working that way. I how ever have not tested IE6/7 yet other than looks being I use Firefox by default.

jjgallow

Hello mpMS,

That's good news, sort of  :)

I'm glad you can do it in firefox.  I've tested it over and over again in IE 7, and it always works.  I don't have IE 6.

I know that IE can get very confused with cookies, and no doubt you have a lot of garbage in there with all this testing.  Have you deleted all your cookies in IE?  That may solve the problem right there.

mpMS

Quote from: jjgallow on July 19, 2007, 02:37:05 PM
Hello mpMS,

That's good news, sort of  :)

I'm glad you can do it in firefox.  I've tested it over and over again in IE 7, and it always works.  I don't have IE 6.

I know that IE can get very confused with cookies, and no doubt you have a lot of garbage in there with all this testing.  Have you deleted all your cookies in IE?  That may solve the problem right there.
Actually I have tried in some computers (5 different PCs) and encounter the same scenario. It only works on firefox.

mpMS

I have use some theme integration code like this:

<?php echo SMF_EnSonBasliklar($limit=10,'<ul>','<li>','</li>','</ul>'?>

It was ok but notice something. It displays the UTC system time and not the local time. How can I set it to display the local system time?

jjgallow

Hello mpMS,

I have emailed you a solution to your time zone issue, although I must say I am mainly focused on user integration at this stage.

When I know that users are integrated without issue, then I'll focus on site integration.


As for your IE issue, I'm not sure.  It's very hard to evaluate when I'm not able to see your site or its details.

-Did you try the modified script I sent you?

-What are your Privacy and Security settings for IE?  Medium?  High?  Custom?

cheers

mpMS

About the time issue, does it have 2 instance of these lines on wp_smf.php? I have tried to add the $time on two lines but it made the topic to display nothing, like 000 on WP.

About the security of IE, we just set IE to Medium-Low Security. Also, I didnt modify the script unless you told me to do it. ;D

jjgallow

Hello mpMS,

did you give $time a value?

and about the other thing...

I sent you a modified script when I released 1.07.  I sent you an email, explaining that it might work better on your internet site.  I'm wanting to know if you tried that script.

zerone

Hello,

I've a problem. I have a clean fresh install of WP and SMF (v2.2.1 & v1.1.3). Now i want install the Bridge (v1.07). I activated the WP Plugin and it seems to work. After that, i had to set the Path to SMF:

/is/htdocs/wp1020627_38PLQCKE3N/www/smf/

And at this point I get this messages:


Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/SSI.php) is not within the allowed path(s): (/tmp:/bin:/usr:/is/default.errors:/is/htdocs/wp1020627_38PLQCKE3N) in /is/htdocs/wp1020627_38PLQCKE3N/www/wordpress/wp-content/plugins/WP_SMF/smf_api_1.1.php on line 1240
...


my folder structure is simple:

/www
   /wordpress
   /smf

Any idea?
Thx for help!
hxxp:blog.fantasquad.de/ [nonactive]

jjgallow

Hello zerone,

I really appreciate you pointing this out...

there's actually no reason for the script to be there that's causing you this trouble.  It was just some code I hadn't edited out yet.  It doesn't create warnings on my system, so I never noticed.

I've removed the junk code, and hopefully your errors as well.

If you download a new copy of the WP_SMF plugin here:

http://www.earthorbit.com/opensource

And replace it, you should be good to go.  I did not change the version for this...but the site is updated as of now.  There should be no need to re-install the SMF_Wordpress plugin for this.

cheers  :)

Advertisement: