Cron Error With safe_mode

Discussion in 'Troubleshooting' started by mdelacruz, May 28, 2007.

  1. mdelacruz

    mdelacruz New Member

    Joined:
    Apr 15, 2004
    Messages:
    26
    After migrating a server and turn on safe_mode I'm getting this error when cron is run:

    Warning: set_time_limit() [<a href='function.set-time-limit'>function.set-time-limit</a>]: Cannot set time limit in safe mode in /home/useraccount/public_html/amember/cron.php on line 17

    Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/useraccount/public_html/amember/cron.php:17) in /home/useraccount/public_html/amember/common.inc.php on line 1714

    Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/useraccount/public_html/amember/cron.php:17) in /home/useraccount/public_html/amember/common.inc.php on line 1714
    WARNING: Cannot modify header information - headers already sent by (output started at /home/useraccount/public_html/amember/cron.php:17)
    in line 1524 of file common.inc.php

    If I go back to safe_mode off all seems to work fine.

    As safe_mode on is a security issue I'd like to turn it on? Is it possible? Maybe Am I missing something?

    Thank you
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    These messages does not indicate any real errors, so you can ignore it.
    Try to comment out line 17 in amember/cron.php

Share This Page