Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2007
    Posts
    48
    Plugin Contributions
    0

    Default Errors setting up a multishop system.

    Hi All,

    I am having some issues setting up a multishop site.

    I am using Gerome's Multishop module, which is still in beta.

    Having said that I do not think that the errors are related to the module.

    The errors can be seen below. If anyone has any hints or tips as to what these messages really mean I would appreciate any help I can get. The messages can be seen live at http://shop1.dcinet.com.au/catalog/

    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/virtual/web/w0951/subdomain/shop1/catalog/includes/classes/category_tree.php:202) in /var/virtual/web/w0951/subdomain/shop1/catalog/includes/functions/sessions.php on line 108

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/virtual/web/w0951/subdomain/shop1/catalog/includes/classes/category_tree.php:202) in /var/virtual/web/w0951/subdomain/shop1/catalog/includes/functions/sessions.php on line 108

    Warning: Cannot modify header information - headers already sent by (output started at /var/virtual/web/w0951/subdomain/shop1/catalog/includes/classes/category_tree.php:202) in /var/virtual/web/w0951/subdomain/shop1/catalog/includes/init_includes/overrides/init_templates.php on line 79

    The method that I took to get to this stage is as follows:

    1. upload zen to webserver using SmartFTP to run at http://www.scinet.com.au/catalog/
    2. Installed zen using the installer scripts. everything went swimmingly, no errors and no problems.
    3. Uploaded the red_passion template to play with.
    4. applied the template to the "Primary" site, this is www.dcisnet.com.au/catalog/.
    5. saw the difference, kinda liked it, set the template back to the classic default template.
    6. installed the multishop module, which you can get from here at the moment: http://www.medea.co.uk/dev/multisite.zip. "BETA BETA BETA"
    6. came across a couple of errors which Gerome helped me rectify. Back to happy happy happy.
    7. copied the catalog directory back to my machine in a shop1 folder.
    8. deleted the admin directory from the local copy of th catalog directory in the shop1 folder.
    9. edited the /includes/configure.php file and made the following changes:

    Code:
     
      define('HTTP_SERVER', 'http://shop.dcinet.com.au');
      define('HTTPS_SERVER', 'https://shop.dcinet.com.au');
     
      define('DIR_WS_CATALOG', '/catalog/');
      define('DIR_WS_HTTPS_CATALOG', '/catalog/');
     
      define('DIR_FS_CATALOG', '/var/virtual/web/w0951/subdomain/shop1/catalog/');
     
      define('DIR_FS_SQL_CACHE', '/var/virtual/web/w0951/subdomain/shop1/catalog/cache');
    10. uploaded everything to http://shop1.dcinet.com.au/catalog/ and now I get Barfo.

    As I said before any and all help is greatly appreciated. I am posting this in the hope that someone can give me a hand. I have already sent an email to Gerome, but as I do not think that this is related to his module I am posting it here too.

    Kind regards,

    David Buckley.

    :)

  2. #2
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: Errors setting up a multishop system.

    Translation - There is a problem in /includes/classes/category_tree.php round about line 202 that is causing function session_start to be unhappy.

    In installing multisite you have replaced several of the Zen Cart release files, one of them being category_tree.php. Your replacement file has 1 or 2 blank lines at the bottom of the file. Remove them, so the file ends on the line with ?> as required by the unwritten law.

  3. #3
    Join Date
    Mar 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Errors setting up a multishop system.

    Thanks heaps for that. I'll have a look a bit later and let you know what I find.

    :)

    Thanks again.

    DAVE

    :)

  4. #4
    Join Date
    Mar 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Errors setting up a multishop system.

    Nope not the category tree file at /includes/classes/category_tree.php.

    This file ends at line 199.

    bugger.

    I've been to 108 in the sessions.php and had a peek there, but I cannot see anything erroneous.

    Next tip?

    :)

    I've also just realised that I have a couple of typo's in my original post. all the domain names should read dcinet.com.au not scinet.com.au and not dcisnet.com.au.
    Last edited by david.buckley; 12 Apr 2007 at 11:18 AM.

  5. #5
    Join Date
    Mar 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Errors setting up a multishop system.

    Hey with the wonderful help of Gerome I sorted it out.

    There was something screwy going on as category_tree.php was reporting errors on line 202, but the file only went to line 199, not even any blank spaces.

    I ended up deleting everything from the server and uploading it again and no all is wonderful.

    Check out the results at:

    http://dcinet.com.au/catalog/
    http://shop1.dcinet.com.au/catalog/
    http://shop2.dcinet.com.au/catalog/

    These are three shops being served from the one database/one list of products with different products being offered at each site.

    Yaaaaaaaaayyyyyy!!!!

    Dave

    Thanks again to everyone who offered help, it is really nice that everyone helps out with everyone elses dramas.

  6. #6
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: Errors setting up a multishop system.

    Thats interesting Dave, before I replied to you I grabbed a copy of the multisite mod and had a look at category_tree.php, and it did indeed have 2 blank lines at the bottom.
    Repeating the exercise there are no blank lines. Strange.

  7. #7
    Join Date
    Mar 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Errors setting up a multishop system.

    Hmmm.

    Maybe dreamweaver fixed it for me when I opened it.

    Oh well all's well that ends well.

    Thanks again for your help Chuckles.

    :)

 

 

Similar Threads

  1. Setup - System Inspection errors
    By dave_ in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 5 Feb 2012, 11:28 PM
  2. Help with setting up a proofing system
    By eriswerks in forum General Questions
    Replies: 3
    Last Post: 9 Sep 2008, 09:43 PM
  3. Confused by System Setup errors
    By gwaisner in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 24 Dec 2007, 07:39 AM

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