Page 82 of 186 FirstFirst ... 3272808182838492132182 ... LastLast
Results 811 to 820 of 1859
  1. #811
    Join Date
    Jun 2009
    Posts
    12
    Plugin Contributions
    0

    Idea or Suggestion Re: Wordpress On Zencart / Released

    I have spent the last day trying to find a fix for the headers already sent error:
    Warning: Cannot modify header information - headers already sent by (output started at /home/domain-name/public_html/shop/includes/templates/orange/common/html_header.php:22) in /home/domain-name/public_html/blog/wp-includes/pluggable.php on line 850
    Here is the all too easy fix:
    To turn off Canonical URL Redirection, you can add the following code to your theme’s functions.php file.

    remove_filter('template_redirect','redirect_canonical');
    http://www.velvetblues.com/web-devel...l-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.

  2. #812
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by kennyhoward View Post
    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-devel...l-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.
    Thanks for posting your fix.. Give folks a second option for fixing this error... (if you search through this thread, kiddo also posted another fix that works as well..)

  3. #813
    Join Date
    Jun 2009
    Posts
    2
    Plugin Contributions
    0

    Default K, ive been trying this for days.

    I've searched all over the place and nothing seems to make this work. I have changed the Define ABSPATH in step 4 to be the directory of my blog. Ive done installs in both seperate, and the same directories. Ive tried every conceivable definition for ABSPATH, but no matter what i do it always says it cant wp-config.php, even when i have made copies of wp-config.php and pasted them into every directory that the error says it cannot find the file in. Look:




    I realize the text is small, but it says: file not found /storefront/blog/wp-config.php

    Which is exactly where the file is. so......WTF?! Im starting to rage its been three days and ive read a solid 50 pages of this thread.

    Here is my wordpress config file:


    <?php
    //
    // wordpress on zencart by http://www.s-page.net/
    //
    define ('ABSPATH','/storefront/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';
    }

    if(isset($_GET['feed'])){
    wp();
    gzip_compression();
    // require_once('./wordpress/wp-includes/template-loader.php');
    require_once(ABSPATH . WPINC . '/template-loader.php');

    exit();
    }
    }

    ?>

  4. #814
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: K, ive been trying this for days.

    Quote Originally Posted by proteus View Post
    I've searched all over the place and nothing seems to make this work. I have changed the Define ABSPATH in step 4 to be the directory of my blog. Ive done installs in both seperate, and the same directories. Ive tried every conceivable definition for ABSPATH, but no matter what i do it always says it cant wp-config.php, even when i have made copies of wp-config.php and pasted them into every directory that the error says it cannot find the file in.
    Try this: READ posts 438 - 442 of this thread the answer should be here

  5. #815
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: K, ive been trying this for days.

    Also from Hira's instructions:
    [a] Wordpress and Zen-Cart into separate directories.

    [Path of Zen-Cart]
    /var/www/vhost/example.com/public_html/(shop/)

    [Path of WordPress]
    /var/www/vhost/example.com/public_html/blog/
    [WordPress admin URL]
    http://example.com/blog/wp-admin/eg)

    ============================================

    [b] Wordpress and Zen-Cart into the same directory. eg)
    [Path of Zen-Cart]
    /var/www/vhost/example.com/public_html/

    [Path of WordPress]
    /var/www/vhost/example.com/public_html/
    [WordPress admin URL]
    http://example.com/wp-admin/

  6. #816
    Join Date
    Jun 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: K, ive been trying this for days.

    Quote Originally Posted by DivaVocals View Post
    Also from Hira's instructions:
    [a] Wordpress and Zen-Cart into separate directories.

    [Path of Zen-Cart]
    /var/www/vhost/example.com/public_html/(shop/)

    [Path of WordPress]
    /var/www/vhost/example.com/public_html/blog/
    [WordPress admin URL]
    http://example.com/blog/wp-admin/eg)

    ============================================

    [b] Wordpress and Zen-Cart into the same directory. eg)
    [Path of Zen-Cart]
    /var/www/vhost/example.com/public_html/

    [Path of WordPress]
    /var/www/vhost/example.com/public_html/
    [WordPress admin URL]
    http://example.com/wp-admin/
    I have tried the posts 438, and i have read the readme. I have also tried installing wordpress into a seperate directory. Three times. If the answer is in 438-442, then i have missed it. Can anyone give me an idea of what the problem is based on the information i have provided?

  7. #817
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Wordpress On Zencart / Released

    The point DivaVocals (who pretty much singlehandedly keeps this thread active and useful out of the goodness of his heart) is making is that your abspath looks wrong.

    You don't need to understand why. Look at post 440. It will tell you how to find out what the abspath should look like for your server.

    Quote Originally Posted by thebasher View Post
    In your ZenCart configure.php (includes/configure.php) what does it say here:

    Code:
    // * DIR_FS_* = Filesystem directories (local/physical)
      //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
      define('DIR_FS_CATALOG', 'WHAT DOES IT SAY HERE?');
    This should be around line 40. This is the direct path to your ZC. If you are putting WP in it's own directory, as in "blog", all you would have to do in your wordpress-config.php file is add the path to ZC and then add "blog/" at the end.

    The wordpress-config.php is part of the WOZ install and is located in includes/extra_configures/wordpress-config.php. This is the file where you need to define the path to WP.
    Nik

  8. #818
    Join Date
    Mar 2006
    Location
    Sacramento, CA
    Posts
    93
    Plugin Contributions
    0

    Default Need help getting around my existing htaccess rewrites

    Hi there. All the posts I've seen here regarding rewrites seem to relate to the Wordpress pages. I need help getting around my existing rewrites I'm using for my zencart urls before I can even get into my Wordpress installation.

    I've installed Wordpress in a subdirectory of my site, but my htaccess file is rewriting the url so I can't even go to the Wordpress admin. Does anyone know the code to add to my htaccess to tell it to NOT rewrite this particular subdirectory filepath. I don't want to change the rest of my rewrites - just the path to wordpress.

    Thank you!

  9. #819

    Default Re: K, ive been trying this for days.

    Quote Originally Posted by proteus View Post
    Can anyone give me an idea of what the problem is based on the information i have provided?
    I ran into the same type of problem. If you have both Zen Cart and Wordpress in the root, try these:

    Code:
    define ('ABSPATH','./');
    
    $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');

  10. #820
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: K, ive been trying this for days.

    Quote Originally Posted by proteus View Post
    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...xzz0HVnuFoPv&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.

    Code:
    <?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..
    Last edited by DivaVocals; 5 Jun 2009 at 01:49 AM.

 

 

Similar Threads

  1. EasyPopulate 4.0 Support Thread
    By chadderuski in forum Addon Admin Tools
    Replies: 3615
    Last Post: 2 Jun 2024, 04:02 PM
  2. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 AM
  3. WordPress® for Zen Cart® (wp4zen) [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 107
    Last Post: 13 Jan 2019, 12:32 PM
  4. PurpleShades Support Thread
    By kobra in forum Addon Templates
    Replies: 122
    Last Post: 18 May 2011, 07:18 PM
  5. ZJ Black 2 support thread
    By Liamv in forum Addon Templates
    Replies: 1
    Last Post: 15 Feb 2010, 02:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR