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

Wordpress On ZC [Support Thread]

Views: 620,608

Results 881 to 900 of 1,861
24 Jul 2009, 5:57 PM
#881
hkartadi avatar

hkartadi

New Zenner

Join Date:
Jul 2009
Posts:
2
Plugin Contributions:
0

Wordpress On ZC [Support Thread]

Hi all,

I encountered an error when I tried to read my RSS feed from my wordpress. The link to my side is:
http://ikimura.com/?feed=rss2
(The hosting is free by godaddy... :blush:)

I am using zen cart 1.3.8a and wordpress 2.8.2.. I have read the posting from Kiddos to insert a patch at extra_configures/wordpress-config.php.

So basically this is my wordpress-config.php:

<?php
//
// wordpress on zencart by [url]http://www.s-page.net/[/url]
//
//define ('ABSPATH','/var/www/vhost/example.com/public_html/blog/');
define ('ABSPATH','/home/content/h/k/a/hkartadi/html/blog/');

$woz_install=0;

if (file_exists(ABSPATH.'wp-config.php')) {
	$woz_install=1;
	define('WP_USE_THEMES', true);
	$wp_did_header = true;
	
	require_once(ABSPATH.'wp-config.php');

	$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']);
	}

	if(isset($_GET['feed'])){
		wp();
		gzip_compression();
		//	require_once('./wordpress/wp-includes/template-loader.php');
		//	require_once(ABSPATH . WPINC . '/template-loader.php');
		require_once('/home/content/h/k/a/hkartadi/html/blog/wp-includes/template-loader.php');

		exit();
	}
}
?>

I have spent few days to figure this out and google for hint. But found no luck...
I will be very appreciate if someone could help me! Thanks!

Regards,

Handi

18 Aug 2009, 5:54 PM
#882
magicmike avatar

magicmike

New Zenner

Join Date:
Jun 2009
Posts:
6
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hello,

I have a problem when installing a wordpress addon, upon loading the addon I get the following error. I know that this addon works in a standalone wordpress install. So I am directing my debugging efforts towards the WOZ module.

This is the error returned on the Zen Cart page & in the Zen Cart debugger log

Fatal error: Call to a member function add_current_page() on a non-object in /home/elektrk2/public_html/isellortrade/includes/autoload_func.php on line 90

And here is the code from line 90 of autoload_func.php.
Line 90 itself is blank??? but this is the code bellow

       * include an init_script as specified by autoloader array

       */

      if (file_exists($baseDir . $entry['loadFile'])) include($baseDir . $entry['loadFile']); else $debugOutput .= 'FAILED: ';

      $debugOutput .= 'include(\'' . $baseDir . $entry['loadFile'] . '\');' . '<br />';

      break;

      case 'class':

      if (isset($entry['classPath'])) {

        $classPath = $entry['classPath'];

      } else {

        $classPath = DIR_FS_CATALOG . DIR_WS_CLASSES;

      }

The wordpress debugger returns this on the first line

# 1 PHP error  
mysql_num_rows()  
/!\ PHP WARNING : mysql_num_rows(): supplied argument is not a valid MySQL result resource /!\ 

Then about 18 lines that follow this pattern

/!\ PHP WARNING : dir(includes/templates/apple_zen/images/icons) [function.dir]: failed to open dir: No such file or directory /!\ 

After this a lot of results (about 400 lines)most of which follow the pattern of
```
PHP notice : Constant FOOTER_TEXT_REQUESTS_SINCE already defined
PHP notice : xxxxx_xxxx_xxxx already defined


then the end of the file has this 

432 PHP error mysql_num_rows() /!\ PHP WARNING : mysql_num_rows(): supplied argument is not a valid MySQL result resource /!\

433 PHP error mysql_num_rows() /!\ PHP WARNING : mysql_num_rows(): supplied argument is not a valid MySQL result resource /!\

434 PHP error functions_lookups.php 494 zen_get_configuration_key_value() PHP notice : Undefined property: queryFactoryResult::$fields

435 PHP error functions_lookups.php 494 zen_get_configuration_key_value() PHP notice : Undefined property: queryFactoryResult::$fields

436 PHP error fopen() /!\ PHP WARNING : fopen(/home/elektrk2/public_html/isellortrade/includes/configure.php) [function.fopen]: failed to open stream: Permission denied /!\

437 PHP error mysql_num_rows() /!\ PHP WARNING : mysql_num_rows(): supplied argument is not a valid MySQL result resource /!\

438 PHP error mysql_num_rows() /!\ PHP WARNING : mysql_num_rows(): supplied argument is not a valid MySQL result resource /!\

439 PHP error wordpress.php 26 require_once() PHP notice : Undefined variable: cat


I also attached the complete debug file for wordpress. 
Attachment #6330


So I am a bit lost at this point as to what I should be searching for. I am just a beginner at PHP, but I know how to read the code fairly well.  
Any suggestions or help on which files I should be looking at? 

Thanks
18 Aug 2009, 7:13 PM
#883
rainthebat avatar

rainthebat

Zen Follower

Join Date:
Feb 2007
Posts:
314
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

magicmike:

Hello,

I have a problem when installing a wordpress addon, upon loading the addon I get the following error. I know that this addon works in a standalone wordpress install. So I am directing my debugging efforts towards the WOZ module.

Where is the add-on supposed to show up on your page, i.e. is it a sidebox widget, or is it a module that runs on the page, or both? Also, what is the add-on called?

As well, if you have a link to add, that may be helpful for someone to visualize where beginning of the error starts (and how the two systems code might be interacting with each other).

The info you gave is useful, but at my knowledge level, I would need these other things to help look into a solution.

18 Aug 2009, 8:25 PM
#884
magicmike avatar

magicmike

New Zenner

Join Date:
Jun 2009
Posts:
6
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

The plugin name is "Another Wordpress Classifieds Plugin"

If you have a WOZ setup and want to test it out for yourself the plugin is here.
http://wordpress.org/extend/plugins/another-wordpress-classifieds-plugin/

The standalone install of the plugin on wordpress is here.
http://www.michaelouellet.com/
The link Trade Page under Pages is the plugin.

But it does not matter what page I am on on my Zen Cart store I get the
Fatal error: Call to a member function add_current_page() on a non-object in /home/elektrk2/public_html/isellortrade/includes/autoload_func.php on line 90

and nothing else the site is blank except for the error code.
I have to deactivate the AWPC plugin on wordpress for my website to come back.

19 Aug 2009, 10:39 AM
#885
loosefast avatar

loosefast

Zen Follower

Join Date:
Jun 2005
Posts:
199
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

digsshowroom:

I've sifted through this whole forum, and I apologize if I've missed the answer to my problem.

I got WOZ installed fine, and when the Blog Sidebar heading is clicked, it brings my blog up on the main page. However, if you click the Archives link (or categories, search, anything), it pops up a new window that doesn't look anything like my blog. The same is true when you click the comments link within the blog.

I can't tell if this is what Kiddo's patch is supposed to fix, but I've tried to use that without luck.

I also tried changing the settings in WP admin to use http://www.digsshowroom.com/index.php?main_page=wordpress as my blog address. This fixed it so the links didn't pop up a new window, but brought up a 404 on the main page and the following error messages on my WP admin:

Can anyone point me in the right direction? I would prefer the archives/categories/search to come up on the main page, but would settle for them coming up in a new window IF the styling was the same.

I'm using ZC 1.3.7 and WP 2.8.2. (Maybe I need an older version of WP?). WP is installed in /blog directory.

Site is here: http://www.digsshowroom.com

Thanks in advance.

Looks like you have fixed your issue?

What a beautiful site! Very very nice.

20 Aug 2009, 5:40 PM
#886
kt_naturals avatar

kt_naturals

Inactive

Join Date:
Jun 2009
Posts:
25
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Great addon!

I get this error:
Warning: Cannot modify header information - headers already sent by (output started at /home/nakayama/public_html/includes/templates/lambe_green_lite/common/html_header.php:22) in /home/nakayama/public_html/blog/wp-includes/pluggable.php on line 865

20 Aug 2009, 5:52 PM
#887
kt_naturals avatar

kt_naturals

Inactive

Join Date:
Jun 2009
Posts:
25
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Okay, I cannot figure out where the functions.php is? I looked in every folder.

kennyhoward:

I have spent the last day trying to find a fix for the headers already sent error:

Here is the all too easy fix:

http://www.velvetblues.com/web-development-blog/turn-off-wordpress-homepage-url-redirection/

I hope this helps those that haven't already figured this out. The reason the site was trying to redirect was because of the www or lack-there-of in the url. By that I mean the blog displayed correctly when viewing from http://domain-name.com but did not display correctly when viewing from http://www.domain-name.com

Good luck.

20 Aug 2009, 6:07 PM
#888
kt_naturals avatar

kt_naturals

Inactive

Join Date:
Jun 2009
Posts:
25
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

KT Naturals:

Okay, I cannot figure out where the functions.php is? I looked in every folder.

Also tried Kiddo's fix, but couldn't find the original code in wordpress-config.php

I have ZC and WP in diff. directories

20 Aug 2009, 6:36 PM
#889
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]

Deleted

20 Aug 2009, 6:39 PM
#890
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]

KT Naturals:

Okay, I cannot figure out where the functions.php is? I looked in every folder.
To turn off Canonical URL Redirection, you can add the following code to your theme’s functions.php file.
As the article states, functions.php is in your WordPress folders.. (Usually with the theme/template files)

KT Naturals:

Also tried Kiddo's fix, but couldn't find the original code in wordpress-config.php

I have ZC and WP in diff. directoriesAs there have been ZERO updates to this add-on in well over a year, no reason this code would be different.. You may not have the right files.. Re-download WOZ and get a fresh copy of the mod files.. and then try applying kiddo's fix again..

20 Aug 2009, 10:13 PM
#891
kt_naturals avatar

kt_naturals

Inactive

Join Date:
Jun 2009
Posts:
25
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Okay, so I did Kiddo's patch correctly and same error.:shocking:

20 Aug 2009, 10:34 PM
#892
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]

KT Naturals:

Okay, so I did Kiddo's patch correctly and same error.:shocking:It would help a lot if you posted a link to your site and what URL you were attempting to access when you got the error..

ETA: Nevermind.. I found your site and blog.. What URL were you accessing when you got the error?? I went here and it looks good (http://www.ktnaturals.com/index.php?main_page=wordpress) which indicates to me that kiddos fix is doing what it is supposed to..

20 Aug 2009, 10:43 PM
#893
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]

DivaVocals:

It would help a lot if you posted a link to your site and what URL you were attempting to access when you got the error..

ETA: Nevermind.. I found your site and blog.. What URL were you accessing when you got the error?? I went here and it looks good (http://www.ktnaturals.com/index.php?main_page=wordpress) which indicates to me that kiddos fix is doing what it is supposed to..But here's what I did find strange.. When you access the blog, the background of the page header (where the logo is located) changes to the same color as the WordPress theme header.. and it didn't happen right away.. only after I clicked the link to read the one comment on your blog.. Weird..

BTW.. NICE site..:clap: very clean!!!

20 Aug 2009, 10:47 PM
#894
kt_naturals avatar

kt_naturals

Inactive

Join Date:
Jun 2009
Posts:
25
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

I did Kiddos fix and then I did the other fix on functions.php THEN it worked... however, when I log in to the admin panel it shows:

**Not Found

The requested URL /blog/http://www.ktnaturals.com/blog/wp-admin/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.**

So... what do I do now? It worked earlier before the 'fixes'.

DivaVocals:

It would help a lot if you posted a link to your site and what URL you were attempting to access when you got the error..

ETA: Nevermind.. I found your site and blog.. What URL were you accessing when you got the error?? I went here and it looks good (http://www.ktnaturals.com/index.php?main_page=wordpress) which indicates to me that kiddos fix is doing what it is supposed to..

20 Aug 2009, 11:15 PM
#895
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

DivaVocals:

But here's what I did find strange.. When you access the blog, the background of the page header (where the logo is located) changes to the same color as the WordPress theme header.. and it didn't happen right away.. only after I clicked the link to read the one comment on your blog.. Weird..

I believe that is because zen and wp share some id and class names, I had to go into the wordpress theme files and change the names of some of the classes and IDs for the formatting to completely assume my zen template. Some needed to be different than zen and some needed to be the same to get it to work.

20 Aug 2009, 11:16 PM
#896
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]

KT Naturals:

I did Kiddos fix and then I did the other fix on functions.php THEN it worked... however, when I log in to the admin panel it shows:

Not Found

The requested URL /blog/http://www.ktnaturals.com/blog/wp-admin/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

So... what do I do now? It worked earlier before the 'fixes'.

You got me..:laugh: Try reversing the changes to the functions.php file.. Otherwise I'm fresh outta ideas.. I know that's of little help to you.. So let me add this..

I'm gonna be honest with you, I have lost ALL interest in messing around trying to get this add-on to work..

I can't afford to have a mod that is not stable (and frankly this mod IS NO LONGER STABLE!) on a client site. A dead mod like this would be a HUGE risk for me to take on support for, and I will have to support it if I put it on a client's site..

Now there are others who don't mind screwing around with this code to get it to work.. However, I am not skilled enough with PHP to take this on myself, and I have zero interest in slugging my way through this mod to learn PHP.. I haven't see a real "fix" posted for the many problems which continue to plague a lot of folks who install this mod.. Perhaps one day I will pay a developer to take a look at this add-on and fix it for me, (I have NO PROBLEM paying for a developer if I need one) but for now I won't for three really good reasons..1. In the BIG picture, embedding the blog doesn't REALLY buy you anything. It is PLENTY easy to skin WordPress to match your store as in this example:
Store: http://clients.overthehillweb.com/anomalyrecords/catalog/
Blog: http://clients.overthehillweb.com/anomalyrecords/anomalyblog/
or

Store: http://clients.overthehillweb.com/hairisle/index.php?main_page=index&cPath=0
Blog: http://clients.overthehillweb.com/hairisle/hairisleblog/
2. Now while the embedding part does not work well for many folks.. the WOZ sideboxes do in fact work.. (I have instructions posted in this thread for how to install ONLY the WOZ sideboxes if you are interested) In the REALLY BIG picture, this is (IMO) PLENTY adequate to link the blog to the store.
3. There are also RSS add-ons which will alo serve well to link you store to your blog.I know there are those who disagree, and that's fine.. Different strokes, but there is nothing IMO that is gained by wacking away at this dead mod for those of us who are not PHP savvy. I will continue to monitor this thread and this add-on for the next real release (with everything fixed). However, I'm done trying to get this thing to "work".. I will continue to use the WOZ sideboxes (they DO work) and skin my own WP templates to match my sites..

20 Aug 2009, 11:17 PM
#897
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

KT Naturals:

I did Kiddos fix and then I did the other fix on functions.php THEN it worked... however, when I log in to the admin panel it shows:

**Not Found

The requested URL /blog/http://www.ktnaturals.com/blog/wp-admin/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.**

So... what do I do now? It worked earlier before the 'fixes'.

I don't think Kiddo's fix would do that, what other fix did you do to functions.php? Reverse one change and upload and see if it works so we know which modification it is that is causing the error.

20 Aug 2009, 11:19 PM
#898
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]

lankeeyankee:

I believe that is because zen and wp share some id and class names, I had to go into the wordpress theme files and change the names of some of the classes and IDs for the formatting to completely assume my zen template. Some needed to be different than zen and some needed to be the same to get it to work.If they do, it's because the default WP template's CSS and Zen Cart do.. I don't think this is true across the board for all WP templates.. Based on my experience, many of these WP templates do not use a standard set of IDs and classes...

20 Aug 2009, 11:20 PM
#899
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

DivaVocals:

If they do, it's because the default WP template's CSS and Zen Cart do.. I don't think this is true across the board for all WP templates.. Based on my experience, many of these WP templates do not use a standard set of IDs and classes...

Yeah, I should have clarified my point, I was referring to the default theme in wp.:D

21 Aug 2009, 4:40 AM
#900
kt_naturals avatar

kt_naturals

Inactive

Join Date:
Jun 2009
Posts:
25
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

It was the functions.php that messed up the admin. So, now back to the same old original problem.

It may be easy for some to modify a WP theme to look like their ZC, but to me it's not and takes a lot of work.

Sigh, wish I could get this to work.