Due to the language constraints, Hira's install instructions for this module are A LOT confusing (IMO). In reading them over though, here's what I found that I would double check:
1. Make sure your ABSPATH settings are correct.
In Hira's instructions he states:
Dunno what this "check_path.php" file is, but it's NOT included in the WOZ files or in the WordPress files that I can see. The easiest way to check that your ABSPATH is correct is to find the absolute path in your Zen Cart includes/configure.php file. If your blog is in it's own directory, you simply append that directory to the end of the absolute path of your Zen Cart store. This is the path that you should have in your "ZC_ROOT/includes/extra_configures/wordpress-config.php" file.* Please access [URL to your WordPress]/check_path.php when you never understand a pass.
2. Make sure you have re-named the "MY_TEMP" directory in the WOZ Zen Cart files to match your site's template directory name "ZC_ROOT/includes/templates/MY_TEMP/"
3. Make sure that the changes to your includes/templates/YOUR_TEMPLATE/common/html_header.php are correct. If your template does not have a common/html_header.php file, copy the one from the default template over to your template and make the changes.. DO NOT make these changes to the common/html_header.php file in the default template folder.
Lastly I noted one thing.. This section of the install instructions appears includes code which cannot be found in any version of WordPress from version 2.8.6 through present (2.9). I highlighted the questionable part of the instructions in red.
Not sure if you made these changes or if they are required changes or not (Hira's instructions aren't very clear on this..)--------------------------------
Adjustment after the installation
--------------------------------
Installation is completion, but I recommend that you adjust it as follows by the above.
In addition, it is a procedure in case of WordPress 2.8.6 as follows. Because there is the case that a point, methods are different in the other versions, please understand it beforehand.
a.[Root Directory of WordPress/wp-includes/canonical.php]
// trailing /index.php
$redirect['path'] = preg_replace('|/index.php/*?$|', '/', $redirect['path']);
TO
// trailing /index.php
//$redirect['path'] = preg_replace('|/index.php/*?$|', '/', $redirect['path']); // hack for woz
b.[Root Directory of WordPress/wp-includes/canonical.php] (* There are two lines)
return apply_filters('post_link', $permalink, $post, $leavename);
TO
return apply_filters('post_link', str_replace('/?', '/index.php?main_page=wordpress&', $permalink), $post, $leavename); // hack for woz
Last edited by DivaVocals; 28 Dec 2009 at 06:41 PM.
So I've done some testing.. v1.3 of WOZ works fine with WordPress v 2.9 and Kiddo's fix on a vanilla Zen Cart install. (and for the record my host server is running PHP5)
Version 1.4 yields the same results everyone else has reported (blank posts). I am fairly certain that this issue has NOTHING to do with the PHP version and more to do with the nature of the code changes between the two versions of WOZ. In other words even IF the error only occurs on PHP5 (and some have reported that they do indeed have this running on PHP5), this is merely an unintended consequence.. I am fairly certain the author did not intend for this app to ONLY be run under PHP4. A logical conclusion since v1.3 runs fine on PHP4 or PHP5. Also more webhosts are migrating user accounts from PHP4 to PHP5 so it would make little to no sense to develop an app that woul not run on PHP5.
There are also unclear instructions in the readme: most notably the "Adjustment after the installation" section which contains instructions that requires code replacements for code that does not appear to exist. So I'm not completely sure whether or not this would make a difference in the modules performance..
I haven't done a full file by file comparison of the differences between the two WOZ versions. Two things that stand out between the two versions are the configuration file and the addition of a WOZ function file. Also the modifications to the /includes/templates/YOUR_TEMPLATE/common/html_header.php is new. Don't know what would be causing the blank posts, but clearly it is in the parts of the code that changed in v1.4. Perhaps this weekend I'll do a file by file comparison between the two versions and post the full results here.. In the meantime I'm moving on to test other blog integration methods..
My suggestion for those having issues with the latest version of WOZ (v1.4) is to try uninstalling it and installing the 1.3 version.. You only need to uninstall the Zen Cart files.. Keep the WordPress files because the WOZ template for WordPress Hira created fro v 1.4 is PERFECT for an embedded blog (the WOZ template strips out all of the WordPress default template garbage)
Link to test site: http: // zen138blog1 . overthehillweb . com/index.php?main_page=wordpress
Last edited by DivaVocals; 29 Dec 2009 at 08:28 AM.
Version 1.3 had problems as well, such as the posts links in the WP Sidebar not resolving correctly ('Post not found' error). I have an example install of zen 1.3.8a, wordpress 2.8.5, and woz 1.4 that works (http://berkautoguide.com/zen/) even though it does display some odd behavior, post links drop the index.php part of the url (but still resolve) , WOZ install interferes with EZ page display unless WOZ sidebox is turned off & on (EZ Pages create just fine), and the shipping estimator does not update (it does display correctly after you proceed to checkout then go back to Shopping Cart).
I do not have the blank posts issue. My thought is that PHP version might be the difference, but I don't know. I have not heard from anyone else getting some success on a php4 server, and as Diva mentions, hosts are moving to php5, but not without some softwares experiencing problems with their scripts.
I hope this gives somebody a clue as to what the solutions might be!
cheers!
As you can see this is not an issue on my test store..
Actually if you read through this support thread, I believe that I was the only one who reported the "Posts not found" issue. Because I could not resolve it on my two client sites I opted to use my sideboxes only solution.
http://www.zen-cart.com/forum/showpo...&postcount=639
http://www.zen-cart.com/forum/showpo...&postcount=640
http://www.zen-cart.com/forum/showpo...&postcount=643
http://www.zen-cart.com/forum/showpo...&postcount=644
So far I have not been able to replicate this particular issue on my vanilla Zen Cart/WOZ install.
I have also discovered since then that other mods may interfere with this module. (regardless of version) In the case of my two clients, I never fully resolved which modules interfered. The sidebox only solution was working just fine, so I stopped testing the source of the issue with embedding the blog.
I also know that regardless of which version of WOZ you use, WOZ does not work correctly using Simple SEO or Ceon SEO. I know this issue is related to some of the code in the WOZ configuration file.
All of this leads me to look for a better embedding solution. I like the WOZ sideboxes, but I think the rest of WOZ leaves much to be desired.. On to testing the Numinix solution..
Because it's NOT an installation issue.. This isn't an issue at all.. THIS is how WordPress works..
The WOZ Blog sidebar only displays the contents of the WordPress sidebar. When you install WordPress and do not activate any widgets in the sidebar, WordPress by default displays a generic sidebar (which is what you see on my test site). If I were to activate widgets in Wordpress, the default WOrdPress sidebar would be replaced by the widgets I activated, and as a result the WOZ blog sidebox would display those widgets..
You don't see the recent posts in the blog sidebox because I haven't activated the recent posts widget in WordPress.. Like I said this is NOT an installation issue.. I simply haven't configured WordPress to display any widgets so the default sidebar is displayed instead.
Bookmarks