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

Wordpress On ZC [Support Thread]

Views: 620,617

Results 821 to 840 of 1,861
5 Jun 2009, 12:46 AM
#821
divavocals avatar

divavocals

Totally Zenned

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

Wordpress On ZC [Support Thread]

proteus:

Can anyone give me an idea of what the problem is based on the information i have provided?You have indeed missed it.. Your ABSPATH is wrong because you entered a relative path based on your site's URL. The ABSOLUTE PATH (ABSPATH) that is needed in the wp-config.php file is the actual location on your hosts webserver where your files are located. You can find this by opening your ZenCart configure.php file. Then go back to the posts I suggested or read niccol's post.. It explains what to do next..

Absolute path

Also known as the full path, the absolute path is a path that contains the root directory and all other sub directories required to get into the directory you're currently in or wish to get to. Below is a basic example of a generic path and an absolute path.

Absolute path:
/home/users/c/computerhope/public_html/cgi-bin

Non absolute path (relative path):
public_html/cgi-bin As can be seen from the above example, the absolute path contains the full path instead of a few directories contained within the absolute path.

Read more: http://www.computerhope.com/jargon/a/absopath.htm#ixzz0HVnuFoPv&C

More info..

To find out what your absolute path is[1], copy the following code into a text editor (i.e. Notepad, TextEdit etc), save the file as a .php naming it whatever you want (i.e anyfilename.php.).

Using your FTP software, ftp the file you have just created to your root folder. Open a web browser and type in http://www.yourdomain.com/filename.php.

<?php $path = getcwd(); echo "Your Absoluthe Path is: "; echo $path;?>
>  
> ***IMPORTANT: For security reasons, delete this file as soon as you have ascertained the information you require.*** 
 
Hope this all helps..
7 Jun 2009, 7:03 PM
#822
k4satin avatar

k4satin

New Zenner

Join Date:
Mar 2006
Location:
Sacramento, CA
Posts:
93
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Nevermind - what I was going to say was already said, and I don't see where to delete this. :-)

7 Jun 2009, 7:57 PM
#823
k4satin avatar

k4satin

New Zenner

Join Date:
Mar 2006
Location:
Sacramento, CA
Posts:
93
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

My installation went alright more or less, but having WP installed messes up several existing things on my site. The most critical is that I receive the following errors:

Parse error: syntax error, unexpected T_STRING in .../includes/classes/seo.url.php(1067) : eval()'d code on line 7

Parse error: syntax error, unexpected T_STRING in .../includes/classes/seo.url.php(1067) : eval()'d code on line 7

Line 1067 of my seo.url.php reads:

eval("$cache_data");

I think line 7 is referring to wordpress-config.php

Any suggestions?

8 Jun 2009, 6:33 PM
#824
high_octane avatar

high_octane

New Zenner

Join Date:
Jan 2006
Posts:
37
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

I am having a similar issue.
So far only on the ZenCard/WP blog combination page, I have an error that shows at the top of the page.

Here is the link: http://lasersurplusparts.com/?page_id=2

Here is the error:
Warning: fopen(ip2country.csv) [function.fopen]: failed to open stream: No such file or directory in /site/nav/public_html/lasersurplusparts/includes/ipcheck.php on line 12

Warning: fgets(): supplied argument is not a valid stream resource in /site/nav/public_html/lasersurplusparts/includes/ipcheck.php on line 16

Warning: rewind(): supplied argument is not a valid stream resource in /site/nav/public_html/lasersurplusparts/includes/ipcheck.php on line 34

Any ideas?

Thanks

8 Jun 2009, 9:12 PM
#825
high_octane avatar

high_octane

New Zenner

Join Date:
Jan 2006
Posts:
37
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

I found the problem, Its due to this mod ""geo4zen".
After removing the edits, everything is hunky dory.

9 Jun 2009, 6:04 PM
#826
high_octane avatar

high_octane

New Zenner

Join Date:
Jan 2006
Posts:
37
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

I found this code that is suppose to show WP latest post link on your main page when you insert it using the "define pages editor".

Heres the code:

<fieldset> <legend>Latest Post</legend> <?php $posts = get_posts(‘numberposts=5‘); foreach($posts as $post) : setup_postdata($post); ?> <a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a> <?php /*the_content();*/ ?> <br /> <?php endforeach; ?> </fieldset>

If you don't have any posts, then you will get an error, other than that so far so good, testing still in process.

9 Jun 2009, 9:18 PM
#827
high_octane avatar

high_octane

New Zenner

Join Date:
Jan 2006
Posts:
37
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Best theme I have found, very easy to customize in Admin area. 200 options!

Atahualpa
http://wordpress.org/extend/themes/download/atahualpa.3.2.zip
Download Build your own unique, professional and browser-safe WordPress theme: Over 200 theme options, drop down menus for pages and categories, fluid or fixed width layout, 1, 2 or 3 columns, rotating header images, auto image resizing, integrated Feedburner form, 4 extra widgets and more. WP 2.2-2.7 and WPMU. English plus DE, HU, PT, CZ, SI, TR, FR, PL, NL, BG, IT, VN, JP, ES. Support at the BFA WP Forum

12 Jun 2009, 5:14 AM
#828
schtoo avatar

schtoo

New Zenner

Join Date:
Apr 2009
Location:
Japan.
Posts:
21
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hi.

I just installed this and it does not work.

The admin area works just fine, but clicking out of there to view site, I get an index of wordpress only.If I tweak the path, I get a 'does not exist' in the store.

The absolute path is correct AFAIK, being the same as the store path with wordpress tacked onto the end.

the line copy/paste from the config file is

define ('ABSPATH','/var/www/public_html/store/wordpress/');

Which is exactly where it is.

The install docs mention removing the index.php file from wordpress, which I did. Would this be the problem? I installed the wordpress files into the zencart directory, just to keep it separate from my regular blog and prevent messing that up as well, which I seem to have a habit of doing. I just installed the index file and it works, but it seems that zencart and wordpress just won't talk to each other.

Oh yes, Zencart 1.3.1a and Wordpress 2.8

Any suggestions?

12 Jun 2009, 5:54 AM
#829
misty avatar

misty

Inactive

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

Re: Wordpress On ZC [Support Thread]

If you added wordpress into zencart folder then you wont need /wordpress added to config file...

12 Jun 2009, 8:37 AM
#830
k4satin avatar

k4satin

New Zenner

Join Date:
Mar 2006
Location:
Sacramento, CA
Posts:
93
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

k4satin:

My installation went alright more or less, but having WP installed messes up several existing things on my site. The most critical is that I receive the following errors:

Parse error: syntax error, unexpected T_STRING in .../includes/classes/seo.url.php(1067) : eval()'d code on line 7

Parse error: syntax error, unexpected T_STRING in .../includes/classes/seo.url.php(1067) : eval()'d code on line 7

Line 1067 of my seo.url.php reads:

eval("$cache_data");

I think line 7 is referring to wordpress-config.php

Any suggestions?

Does anybody have any input on this? Do you think it can be addressed on the Wordpress end without modifying the seo.url.php file? Something related to the cache...

12 Jun 2009, 10:29 AM
#831
schtoo avatar

schtoo

New Zenner

Join Date:
Apr 2009
Location:
Japan.
Posts:
21
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

misty:

If you added wordpress into zencart folder then you wont need /wordpress added to config file...

Tried it that way too, no joy...

Removing the index.php file from wordpress/wp-includes (as suggested by the readme) puts it back to an index of the files there, and it really doesn't work.

Really lost now. Changed all manner of things to get it to work, and it just flat out doesn't.

Ok, changed the address stuff and it's really pointing in the right direction now, but I still have troubles.

Got a warning (Warning: Cannot modify header information - headers already sent by (output started at /home/toolsfro/public_html/store/includes/templates/template_default/common/html_header.php:22) in /home/toolsfro/public_html/store/wordpress/wp-includes/pluggable.php on line 865) when I type in store/index.php?main_page=wordpress into the browser address window, and it's still pointing to index pages when I click on the now working links in the Zencart main page.

Maybe re-install wordpress?

FWIW I am not too bothered about breaking the Zencart and whatever data I have in there. Already did that this morning by having to load up a week old sql database... :censored:

12 Jun 2009, 11:17 AM
#832
schtoo avatar

schtoo

New Zenner

Join Date:
Apr 2009
Location:
Japan.
Posts:
21
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Tried to re-install and it asked me to delete it first, but being the last thing I tried before it actually now working, it might have done something?!?

So it is working, don't need any more assistance. Thanks. :)

13 Jun 2009, 7:05 PM
#833
ribbonsbaskets0 avatar

ribbonsbaskets0

New Zenner

Join Date:
Nov 2008
Location:
Seattle, WA
Posts:
52
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hi, I have looked over this forum with no luck. I am using the latest version of Zencart 1.3.8 I think it was. https://www.ribbonsbaskets.com

The comments link doesn’t seem to work, when I click on it I get a "page not there error":blink:. Does anyone know what could have caused this? Any help would be greatly appreciated!

Thanks!

16 Jun 2009, 7:31 PM
#834
aesthetics avatar

aesthetics

New Zenner

Join Date:
Nov 2007
Posts:
54
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Has anybody used the nav_links code to add Next/Previous type tags to the bottom of each link?

We're using the WOZ patch successfully on our site (aestheticsbodymod.com/store) and I'd like to add navigation links to the bottom of the entries. I've found this line of code in wordpress's codec files:

<div class="navigation"><p><?php posts_nav_link('∞','Go Forward In Time','Go Back in Time'); ?></p></div>

...I tried adding that to The Loop code in the define pages editor via define main page, but it doesn't show up. Any advice?

18 Jun 2009, 5:50 PM
#835
ladyink avatar

ladyink

Zen Follower

Join Date:
Oct 2007
Posts:
105
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Ok, I have spent 3 solid days trying to figure this out and as a last resort, I'm am looking for help here- mainly because ya'll are great!

Anyway, here is the problem... I have installed Wordpress on Zen Cart (I believe it is successful). I have used the plugin XML Sitemap Generator (which is highly recommended in several places) but when I click on the RSS feed "button" under my posts, the page is empty. I can goto the feed directly and view it. When I goto Feedburner in Google, I put the direct link to the feed to add it and I get:

The URL does not appear to reference a valid XML file. We encountered the following problem: Unknown feed format encountered (The root element is [Element: <urlset [Namespace: http://www.sitemaps.org/schemas/sitemap/0.9]/>])

The top part of my feed reads:
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

I went to http://www.w3.org/2001/XMLSchema-instance
and it very clearly says...

This schema should never be used as such: the XML Schema Recommendation forbids the declaration of attributes in this namespace

I don't know what the heck to change the namespace to- I know where to change it. I replaced it once with the namespace information that is in my RSS feed on another Zen Cart that does validate but then nothing was in the site map.

I don't know if this is because I'm using Wordpress on Zencart or if it's because I'm using the latest and greatest Wordpress. It's one of those things that I just thought I'd ask here. I asked on the Wordpress forum and no response :frusty:

If anyone has any thoughts, ideas- I'm willing to give it a try- worst case- I break it!!

Thanks
Nancy

18 Jun 2009, 6:05 PM
#836
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]

ladyink:

Ok, I have spent 3 solid days trying to figure this out and as a last resort, I'm am looking for help here- mainly because ya'll are great!

Anyway, here is the problem... I have installed Wordpress on Zen Cart (I believe it is successful). I have used the plugin XML Sitemap Generator (which is highly recommended in several places) but when I click on the RSS feed "button" under my posts, the page is empty. I can goto the feed directly and view it. When I goto Feedburner in Google, I put the direct link to the feed to add it and I get:

The URL does not appear to reference a valid XML file. We encountered the following problem: Unknown feed format encountered (The root element is [Element: <urlset [Namespace: http://www.sitemaps.org/schemas/sitemap/0.9]/>])

The top part of my feed reads:
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

I went to http://www.w3.org/2001/XMLSchema-instance
and it very clearly says...

This schema should never be used as such: the XML Schema Recommendation forbids the declaration of attributes in this namespace

I don't know what the heck to change the namespace to- I know where to change it. I replaced it once with the namespace information that is in my RSS feed on another Zen Cart that does validate but then nothing was in the site map.

I don't know if this is because I'm using Wordpress on Zencart or if it's because I'm using the latest and greatest Wordpress. It's one of those things that I just thought I'd ask here. I asked on the Wordpress forum and no response :frusty:

If anyone has any thoughts, ideas- I'm willing to give it a try- worst case- I break it!!

Thanks
NancyIf this is a WordPress plugin, you may get very little help here on this forum.. This is largely a dead mod (dead = no new updates in quite sometime), and so getting help with a WP specific issue will require someone who has worked through a similar issue.. Also if there are folks on this forum who can help, a link to your site is helpful..

My suggestion is to install the blog software standalone, work out the issues with the WP plugin (you may have to enlist assistance from the WP forums for this), then using those blog files and try re-doing the WOZ install/setup again.

18 Jun 2009, 6:34 PM
#837
ladyink avatar

ladyink

Zen Follower

Join Date:
Oct 2007
Posts:
105
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

DivaVocals:

If this is a WordPress plugin, you may get very little help here on this forum.. This is largely a dead mod (dead = no new updates in quite sometime), and so getting help with a WP specific issue will require someone who has worked through a similar issue.. Also if there are folks on this forum who can help, a link to your site is helpful..

My suggestion is to install the blog software standalone, work out the issues with the WP plugin (you may have to enlist assistance from the WP forums for this), then using those blog files and try re-doing the WOZ install/setup again.

I know- It's one of those times that it's not a zen cart thing- its not a wordpress thing and I'm somewhere in between. I thought the Wordpress on Zen Cart area would be worth a try! I was just hoping that someone may have had the same issue and would share the fix. If nothing else, the people that make this community sure do try and help each other out.

I'll try getting it to stand alone and see what happens. Quite honestly, I hope the fix isn't too easy- after all I've spent 3 days working with it!!

Nancy

18 Jun 2009, 8:09 PM
#838
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]

ladyink:

I know- It's one of those times that it's not a zen cart thing- its not a wordpress thing and I'm somewhere in between. I thought the Wordpress on Zen Cart area would be worth a try! I was just hoping that someone may have had the same issue and would share the fix. If nothing else, the people that make this community sure do try and help each other out.

I'll try getting it to stand alone and see what happens. Quite honestly, I hope the fix isn't too easy- after all I've spent 3 days working with it!!

NancyI hope so too.. but isn't that just how it is sometimes!!:yes:

18 Jun 2009, 10:43 PM
#839
busymom avatar

busymom

New Zenner

Join Date:
Jul 2007
Posts:
61
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

There have been a lot of suggestions for the headers-already-sent problem, but the one I have is unique to WOZ. I'm not sure why I'm the only one who has been seeing this, but maybe it has to do with me using the pretty permalinks. Anyway, the problem itself has to do with the wp_redirect() in pluggable.php call for many reasons (examples follow):

  • Whenever a 404 needs to be reported due to a wrong blog post name it would be processed by this code instead of the ZC 404 handler
  • When the trackback suffix is added to the post name directly (not through the authentic trackback path), the code tries to re-post the code, but with a 302 temporary redirect
    The problem that occurs is that the wp_redirect code redirects the code to a (new) page via the php header() function. Since ZC has already posted headers by this time in the code, a call to the wp_redirect function under WOZ will always cause the wp_redirect function to result in the dreaded headers-already-sent error. I did a little research to find out if there is a php method to redirect the page without using the header() command and discovered the existence of ob_start function which allows the WP code to redirect the headers even after the ZC code has sent them. I did a quick search in the ZC support forum to see if I could find any concerns about using it and discovered this post which made me feel much better about adopting this technique:
    http://www.zen-cart.com/forum/showthread.php?t=58452&highlight=ob_start

So, by adding an ob_start() call at the top of my
includes/templates/myTEMPLATE/common/html_header.php file, the existing wp_redirect code started working as expected without any additional modifications. I tested this by clicking on the trackback link in my post as well as forcibly modifying the postname in my browser address bar to be a (slightly) invalid postname and WP processed the 404 instead of a ZC 404.

This was really kicking my ########, so I hope it helps someone else! Now to fixing the feed code should be a breeze!

Karen

18 Jun 2009, 11:09 PM
#840
ladyink avatar

ladyink

Zen Follower

Join Date:
Oct 2007
Posts:
105
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

DivaVocals:

I hope so too.. but isn't that just how it is sometimes!!:yes:

Well, I uninstalled WOZ and everything works fine now. I don't like not finding out what caused the issue and finding a fix for it but I'll have to move forward from here. Three solid days is all I have~ If anyone ever figures it out, please post it because I would really like to know what happened!

Nancy