Tried many times to mke tabbed product pro work on zencart1.39h, but failed! At last I find out there is some conflict between tabeed product and woz! When I check the debug file, I find:
[18-Dec-2011 14:50:30] PHP Warning: require_once(/var/www/zc138/wordpress/wp-config.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home2/fesmallc/public_html/includes/init_includes/init_woz.php on line 39
Then I went to admin and turn off woz, tabbed product pro work well! anyone know how can I make tabbed product pro and woz work together?
PHP Code:1.<?php
2./**
3.* Do not delete this copyright link/text when you use free edition.
4.* When you want to delete it, please purchase a professional edition.
5.* Please understand that I spend time on development.
6.*
7. * @package WordPress On ZenCart
8. * @author HIRAOKA Tadahito (hira)
9.* @copyright Copyright 2008-2010 S-page
10.* @copyright Copyright 2003-2007 Zen Cart Development Team
11.* @copyright Portions Copyright 2003 osCommerce
12.* @link http://www.s-page.net/products/62.html
13.* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
14.*/
15.if (!defined('IS_ADMIN_FLAG')) {
16. die('Illegal Access');
17. }
18.
19.if (defined('WOZ_CONFIG_STATUS') && WOZ_CONFIG_STATUS == 'true') {
20. $woz_dir = "";
21. $sql = "select woz_dir
22. from " . TABLE_WOZ . "
23. where woz_language = 0";
24. $woz_query = $db->Execute($sql);
25. $woz_dir = $woz_query->fields['woz_dir'];
26.
27. $sql = "select woz_dir
28. from " . TABLE_WOZ . "
29. where woz_language = '" . $_SESSION['languages_id'] . "'";
30. $woz_query = $db->Execute($sql);
31. if ($woz_query->RecordCount() > 0) {
32. $woz_dir = $woz_query->fields['woz_dir'];
33. }
34.
35. define('ABSPATH', $woz_dir);
36. define('WP_USE_THEMES', true);
37 $wp_did_header = true;
38.
39. require_once(ABSPATH . 'wp-config.php');
40 wp();
41.
42. /*$i = strlen(DIR_WS_CATALOG);
43 $req = substr($_SERVER['REQUEST_URI'],$i,1);
44. if($req == '?'){
45. $_GET['main_page'] = FILENAME_WORDPRESS;
46. }*/
47.
48. if ($_GET['main_page'] == FILENAME_WORDPRESS && isset($_GET['feed']) && ($_GET['feed'] == 'rss2' || $_GET['feed'] == 'comments-rss2')) {
49 gzip_compression();
50 require_once(ABSPATH . WPINC . '/template-loader.php');
51. exit();
52. }
53.}
54.?>
55.


Reply With Quote
