Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2008
    Location
    UK
    Posts
    326
    Plugin Contributions
    1

    Default require(DIR_WS_INCLUDES . 'header.php'); problems

    Hi

    I have this script which I am trying to configure, but I seem to be having trouble with the header.

    I keep getting this error message when I view the file from my admin -

    Warning: session_start() [function.session-start]: Cannot send session cache limiter -

    headers already sent (output started at /home/username/public_html/shopping/admin/filename.php:2) in /home/username/public_html/shopping/includes/functions/sessions.php on line 108

    Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/shopping/admin/filename.php:2) in /home/username/public_html/shopping/admin/includes/init_includes/init_templates.php on line 36

    All the information is there in terms of all the links to various parts of the admin, such as configuration, catalog, customers are there - they are all on the left hand side of the screen.

    Any ideas anyone?

    Thanks,

    Phil

  2. #2
    Join Date
    Apr 2008
    Location
    UK
    Posts
    326
    Plugin Contributions
    1

    Default Re: require(DIR_WS_INCLUDES . 'header.php'); problems

    Hi

    I have managed to remove the errors from the page, but I can't seem to get the link going accross the top of the page with green background.

    Any thoughts?

    Thanks

    Phil

  3. #3
    Join Date
    Apr 2008
    Location
    UK
    Posts
    326
    Plugin Contributions
    1

    Default Re: require(DIR_WS_INCLUDES . 'header.php'); problems

    Hi

    I have sussed it out, it all works now.

    Sorry to have taken up space here.

    Thanks

    Phil

  4. #4
    Join Date
    Sep 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: require(DIR_WS_INCLUDES . 'header.php'); problems

    Can you write as to how you fixed it? I am getting same error.

  5. #5
    Join Date
    Apr 2008
    Location
    UK
    Posts
    326
    Plugin Contributions
    1

    Default Re: require(DIR_WS_INCLUDES . 'header.php'); problems

    Hi

    Make sure there is no white space before the first <?php tag in your page, in other words, make sure the <?php tag is at the very top of your page.

    That's what was wrong with my error!

    Hope this helps,

    Phil

  6. #6
    Join Date
    Sep 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: require(DIR_WS_INCLUDES . 'header.php'); problems

    You are right. Since I used Textpad and I tried to indent the code properly, this added some tabs or spaces before first < sign. Thanks for the tip!!!

 

 

Similar Threads

  1. DIR_WS_INCLUDES is pointless
    By texdc in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 14 May 2012, 06:01 AM
  2. Error MessageWarning: require(includes/application_top.php) [function.require]: faile
    By valbuhagiar in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 31 Oct 2011, 07:44 PM
  3. Problems after modifying header.php
    By eazy in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jan 2010, 07:17 AM
  4. problems with header.php
    By stevepickup in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Sep 2007, 03:13 AM
  5. Customer Details - Require Logon Problems
    By notrub225 in forum Managing Customers and Orders
    Replies: 2
    Last Post: 13 Dec 2006, 05:02 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