Thread: extra_datafiles

Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2006
    Posts
    4
    Plugin Contributions
    0

    extra_datafiles

    How to go about the following?

    I have followed the on-line instructions to include additional pages in ZenCart, but I get a warning when adding the includes/extra_datafiles/myNewPage.php file.

    When opening the on-line catalogue the follow message occurs:

    define('FILENAME_WAServices', 'WA_services');
    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home2/winenl/public_html/includes/extra_datafiles/WA.php:1) in /home2/winenl/public_html/includes/functions/sessions.php on line 100
    Warning: Cannot modify header information - headers already sent by (output started at /home2/winenl/public_html/includes/extra_datafiles/WA.php:1) in /home2/winenl/public_html/includes/init_includes/init_templates.php on line 78

    What is the solution to this problem?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: extra_datafiles

    More than likely, you have a space or blank line before the starting <?php in your file ...

    Remove it and see if that doesn't work better ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jul 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: extra_datafiles

    No spaces or blank lines present in the extra_data file or any of the other files to be added for the myNewPage.

    Would you have an other suggestion?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: extra_datafiles

    Could you post the entire contents of the WA.php file?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Jul 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: extra_datafiles

    It is only the one line:
    define('FILENAME_WAServices','WA_services');

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: extra_datafiles

    That is your bug ...

    A php file looks like:

    PHP Code:
    <?php
    stuff here
    ?>
    Your WA.php ... which really lower case is preferred but up to you ... should read:

    PHP Code:
    <?php
    define
    ('FILENAME_WAServices','WA_services');
    ?>
    NOTE: constants should be UPPERCASE as in: FILENAME_WAServices

    And filenames should really be lower case, as in: wa_services.php

    Your define, depending on its usage will be either wa_services or wa_services.php
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Jul 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: extra_datafiles

    OK I now realize it is just an inconsistency in the WIKI Docs explanation.
    It is working now.

    Thanks for that

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: extra_datafiles

    You are most welcome ... thanks for the update ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. overriding extra_datafiles file deifnintions
    By tifischer in forum General Questions
    Replies: 2
    Last Post: 28 Aug 2015, 02:41 PM
  2. includes/extra_datafiles ignore me
    By kurtrr in forum Code Collaboration
    Replies: 2
    Last Post: 30 Jun 2014, 10:19 PM
  3. Override: extra_datafiles & extra_configures
    By DBB1 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Jul 2010, 04:53 AM
  4. my file in extra_datafiles is not loaded automatically
    By fwso in forum General Questions
    Replies: 1
    Last Post: 12 Nov 2009, 06:52 PM
  5. extra_datafiles VS extra_definitions
    By yellow1912 in forum Contribution-Writing Guidelines
    Replies: 2
    Last Post: 17 Aug 2007, 03:19 AM

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