Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2006
    Posts
    3
    Plugin Contributions
    0

    Default header errors with autoloader

    I'm trying to create an autoloader+ observer that adds a custom shipping surcharge for a particular product.

    My autoloader is like so:
    $autoLoadConfig[90][] = array('autoType'=>'class', 'loadFile'=>'observers/class.customShipping.php');
    $autoLoadConfig[90][] = array('autoType'=>'classInstantiate', 'className'=>'customShipping', 'objectName'=>'customShipping');

    When I install it, I get this:
    $autoLoadConfig[90][] = array('autoType'=>'class', 'loadFile'=>'observers/class.customShipping.php'); $autoLoadConfig[90][] = array('autoType'=>'classInstantiate', 'className'=>'customShipping', 'objectName'=>'customShipping');
    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /usr/home/hairfo/www/htdocs/store/includes/auto_loaders/config.customShipping.php:2) in /usr/home/hairfo/www/htdocs/store/includes/functions/sessions.php on line 100

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /store/includes/auto_loaders/config.customShipping.php:2) in /store/includes/functions/sessions.php on line 100

    Anyone know what's going on here? Or if there's an easier hack/mod to switch shipping rates for a particular product to a secondary rate table?

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: header errors with autoloader

    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 

Similar Threads

  1. Don't load non-php files in admin autoloader
    By swguy in forum Bug Reports
    Replies: 0
    Last Post: 6 Dec 2010, 02:27 AM
  2. Converting call from application_top to autoloader! Auction Cron Job
    By davewest in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 29 Jun 2010, 06:22 PM
  3. Admin errors on fresh installation - module errors and language definition errors
    By etrader in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 5 Oct 2007, 09:05 AM
  4. Autoloader question
    By jarsa in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Aug 2006, 06:52 PM

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