Zen Cart Logo
Forums / All Other Contributions/Addons / Wordpress On ZC [Support Thread]

Wordpress On ZC [Support Thread]

Views: 620,645

Results 561 to 580 of 1,861
2 Feb 2009, 7:06 AM
#561
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Wordpress On ZC [Support Thread]

So, is this how it's supposed to work?

http://www.zen-fu.com/index.php?main_page=wordpress

(try it)

This is vanilla ZC 1.3.8 and WP 2.7

2 Feb 2009, 7:09 AM
#562
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

kiddo:

So, is this how it's supposed to work?

http://www.zen-fu.com/index.php?main_page=wordpress

(try it)

This is vanilla ZC 1.3.8 and WP 2.7

SNAP! You did it! So glad this is finally working...

Now, can you tell us how? Please:)

2 Feb 2009, 7:32 AM
#563
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

kiddo:

So, is this how it's supposed to work?

http://www.zen-fu.com/index.php?main_page=wordpress

(try it)

This is vanilla ZC 1.3.8 and WP 2.7Yep.. (according to the WOZ install instructions this is how you validate the installation) but clearly it doesn't work for everyone which means that there really is a problem.. A couple of us have figured out a workaround that works..

To share what I did, I tried it on a vanilla Zen Cart install and still got the same error.. In fact I did two completely SEPARATE vanilla Zen Cart installs with WordPress v2.7 and the WOZ mod and the result was EXACTLY the same.. (and yes they were fresh downloads of the two apps and the WOZ mod just to make DOUBLY sure I was sure of my test results)

So clearly there are other factors that play into why it works for some and not others.. So my question remains the same.. Those of us who are having issues would like those who are not having the issue to give us some insight as to what they have done to get it to work..

Please don't take this the wrong way, but if your only secret is that you installed it and it just worked "somehow", that is not going to provide much insight for those of us who are having the issue with this mod and WordPress v2.7.. A vanilla Zen Cart install isn't resolving the issue for me.. There has to be more to this solution than that.. In the meantime there appears to be an adequate workaround..

2 Feb 2009, 7:34 AM
#564
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

kiddo:

So, is this how it's supposed to work?

http://www.zen-fu.com/index.php?main_page=wordpress

(try it)

This is vanilla ZC 1.3.8 and WP 2.7
Added test post for you..
:smile:

2 Feb 2009, 7:49 AM
#565
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

No, it just didn't work. I spend some time figuring it out. Oddly, other sites I've upgraded to 2.7 seem to have no problem. But as someone point out, this may be because of other (seo) mods masking the problem.

So I read these posts and try to figure out what it's really supposed to do (or what you think it's supposed to do) and set up test to see if it breaks for me too.

Yes it breaks for me.

So if the demo I make is what you are expecting to do, I post it here. I just trying to be sure Im not misunderstanding and post foolishness. If above is what you want, do this:

In includes/extra_configures/wordpress-config.php
find:

	$i=strlen(DIR_WS_CATALOG);
	$req=substr($_SERVER['REQUEST_URI'],$i,1);
	if($req=='?') {
		$_GET['main_page']='wordpress';
	}

and just BELOW that block, ADD this:

	// kiddos patch for WP 2.7
	$i=strlen(DIR_WS_CATALOG);
	$req=substr($_SERVER['REQUEST_URI'],$i,1);
	if(($req=='i') && ($_GET['main_page']=='wordpress')) {
		$_SERVER['REQUEST_URI'] = str_replace("index.php","",$_SERVER['REQUEST_URI']);
	}

Only do this if the above demo is acting like you think it should.

If this makes other things explode I'll try to fix if I can reproduce the problem.

2 Feb 2009, 8:06 AM
#566
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

misty:

Added test post for you..
:smile:

Thank you :) I'm glad it works.

About your sig...

I think it supposed to go:

"Give a man a fish and you feed him for a day, teach a man to fish and he spend the rest of his life sitting in a boat drinking beer."

:)

2 Feb 2009, 8:12 AM
#567
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

kiddo, Did you install WordPress 2.7 in it's OWN folder or
same directory as Zencart 1.38.a..different/seperate database
or same as zencart?

2 Feb 2009, 8:20 AM
#568
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

This is install in same directory for both ZC and WP. I'm using a separate DB for each, but I've done it with both using the same DB with WP just using the _wp prefix.

I make it like this as it seems that is how most would do it.

I read there are problems with making it in separate directories but I never try that. If it is still unsolved problem, maybe I fix that.

I read a few posts up, there is another fix for the WP 2.7 problem but I don't see it anywhere. If I spent time on something already fixed, I feel silly.

2 Feb 2009, 8:23 AM
#569
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

kiddo:

This is install in same directory for both ZC and WP. I'm using a separate DB for each, but I've done it with both using the same DB with WP just using the _wp prefix.

I make it like this as it seems that is how most would do it.

I read there are problems with making it in separate directories but I never try that. If it is still unsolved problem, maybe I fix that.

I read a few posts up, there is another fix for the WP 2.7 problem but I don't see it anywhere. If I spent time on something already fixed, I feel silly.
Thanks for prompt response.. will attempt myself, using
your method, initially without fix..

2 Feb 2009, 8:36 AM
#570
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

I am up for a while. Hope to hear you confirm it works.

When I do it, I install ZC first.

Then I rename the index.php file to index_ZC.php

Then install WP and make sure it works.

Then rename the index.php that was installed by WP to index_WP.php and rename index_ZC.php back to index.php

Now install the WOZ module as said in the instructions.

Then please test my fix. I am eager to hear.

PS: I am looking for someplace to try the install in different directories.

2 Feb 2009, 8:50 AM
#571
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Vanilla ZenCart 1.38a installed...now for WordPress
:wink:

2 Feb 2009, 9:24 AM
#572
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Misty, quick update...

I did the same install but with WP in a different directory. ie: ZC in the root dir, and WP in /blog and it works just fine.

PM me if you want the link to that demo

2 Feb 2009, 10:12 AM
#573
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

misty:

Vanilla ZenCart 1.38a installed...now for WordPress
Installed WordPress, integrated into zencart.. get following error..

[B]Warning[/B]: Cannot modify header information - headers already sent by (output started at /home/myusername/public_html/includes/templates/template_default/common/html_header.php:22) in [B]/home/myuser/public_html/wp-includes/pluggable.php[/B] on line [B]850[/B]
2 Feb 2009, 10:17 AM
#574
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Good! Now try adding the patch.

2 Feb 2009, 10:32 AM
#575
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

kiddo:

Good! Now try adding the patch.
WITHOUT patch..possible to access via

http://www.mydomain.co.uk/?

WITH patch..access via BOTH..

http://www.mydomain.co.uk/index.php?main_page=wordpress

AND

http://www.mydomain.co.uk/?

Conclusion...patch not absolutely essential to access, BUT have to test blog and all sideboxes yet to confirm this..

2 Feb 2009, 10:36 AM
#576
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

One place where I see this fix things is in the blog sidebar where the sidebox heading text is clickable and the link is /index.php?main_page=wordpress

If you leave the wp sideboxes in the default position, they work well, but I think if you try moving them to the right column a few things break that need a few tweeks to the WP default template. I've had to fix that before and I think it had to do with commenting out calling the proper wp side column. (comment it out I think.

2 Feb 2009, 10:55 AM
#577
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

kiddo:

One place where I see this fix things is in the blog sidebar where the sidebox heading text is clickable and the link is /index.php?main_page=wordpress

If you leave the wp sideboxes in the default position, they work well, but I think if you try moving them to the right column a few things break that need a few tweeks to the WP default template. I've had to fix that before and I think it had to do with commenting out calling the proper wp side column. (comment it out I think.
Tested all zencart WPress sideboxes, both left and right side..
only place where patch is required would be more link on
Blog Sidebar.
Installation/all testing using Classic Template on brand new Vanilla install of zencart 1.3.8a..
Good work with patch Kiddo...

2 Feb 2009, 2:16 PM
#578
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

misty:

Tested all zencart WPress sideboxes, both left and right side..
only place where patch is required would be more link on
Blog Sidebar.
Installation/all testing using Classic Template on brand new Vanilla install of zencart 1.3.8a..
Good work with patch Kiddo...Wow.. You ladies had a busy night I see.. I haven't tried this patch yet.. (gotta get ready for work right now) But I plan to do it tonight.. Your patch is in the file that I suspected needed to be modified.. I just had NO CLUE what the modification was..:smile: I was (kinda) okay using any of the three the workaround links except that I wouldn't be able to use the link on the Blog Sidebox header.. (and I was sorta formulating a workaround for that)

In any case I concur with Misty.. Good work on the patch! You totally ROCK!!!!:clap::clap:

I have been playing with this mod, and doing minor tweaks to the WordPress styles.. I like WordPress, but WordPress is soo not like Zen.. Some styles are located in places you may not intuitively think to look for 'em.. (at least IMO)

2 Feb 2009, 2:33 PM
#579
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Wordpress On ZC [Support Thread]

Okay.. so I took two seconds out to do this while I was brushing my teeth.. and dammed if this didn't do the trick!! Thank you thank you thank you Kiddo!!! You sooo totally rock girl!!!:clap::clap: Now I just have to reactivate the link on the blog sidebox header again, and I'll be cooking with Crisco!!!

kiddo:

No, it just didn't work. I spend some time figuring it out. Oddly, other sites I've upgraded to 2.7 seem to have no problem. But as someone point out, this may be because of other (seo) mods masking the problem.

So I read these posts and try to figure out what it's really supposed to do (or what you think it's supposed to do) and set up test to see if it breaks for me too.

Yes it breaks for me.

So if the demo I make is what you are expecting to do, I post it here. I just trying to be sure Im not misunderstanding and post foolishness. If above is what you want, do this:

In includes/extra_configures/wordpress-config.php
find:

$i=strlen(DIR_WS_CATALOG);
$req=substr($_SERVER['REQUEST_URI'],$i,1);
if($req=='?') {
    $_GET['main_page']='wordpress';
}
> 
> ```
    // kiddos patch for WP 2.7
    $i=strlen(DIR_WS_CATALOG);
    $req=substr($_SERVER['REQUEST_URI'],$i,1);
    if(($req=='i') && ($_GET['main_page']=='wordpress')) {
        $_SERVER['REQUEST_URI'] = str_replace("index.php","",$_SERVER['REQUEST_URI']);
    }
```Only do this if the above demo is acting like you think it should.
> 
> If this makes other things explode I'll try to fix if I can reproduce the problem.
2 Feb 2009, 4:50 PM
#580
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Pleased to hear working for you, Diva...now got to find that shovel...been snowing here in UK for past 8 hours..
need to dig myself out of 6 inches snow..
:smile: