ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SuPHP memory allocation cp errors

September 20, 2011 12:42pm

Subscribe [2]
  • #1 / Sep 20, 2011 12:42pm

    Rob Allen

    3114 posts

    Hi all

    Am running EE2.2.2 on a shared server that runs SuPHP. Normally I don’t get any issues on this server but I have had to increase the memory limit from 32mb to 64mb using .htaccess and custom php.ini because Solspace calendar needs just over 32mb 😊

    The front end works fine but the CP now throws up some errors on all CP pages so this probably isn’t related to the Solpace addon but maybe EE + SuPHP?

    The errors

    A PHP Error was encountered
    Severity: Warning
    Message: date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/London’ for ‘BST/1.0/DST’ instead
    Filename: libraries/Core.php
    Line Number: 227

    A PHP Error was encountered
    Severity: Warning
    Message: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/xxxxx/codeigniter/system/core/Exceptions.php:170)
    Filename: libraries/Functions.php
    Line Number: 767

    A PHP Error was encountered
    Severity: Warning
    Message: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/xxxxx/codeigniter/system/core/Exceptions.php:170)
    Filename: core/Common.php
    Line Number: 405

    .htaccess content
    <IfModule mod_suphp.c>
    SuPHP_ConfigPath /home/xxxxx/public_html/
    </IfModule>

    php.ini content
    memory_limit = 64M
    post_max_size = 20M
    upload_max_filesize = 20M

    Setup of .htaccess and php.ini is as instructed by the host, this works fine on other sites and it looks correct.

    Any ideas appreciated!

  • #2 / Sep 20, 2011 10:02pm

    Dan Decker

    7338 posts

    Hi there bluedreamer,

    Having a look at the first error above:

    A PHP Error was encountered
    Severity: Warning
    Message: date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/London’ for ‘BST/1.0/DST’ instead
    Filename: libraries/Core.php
    Line Number: 227

    Have your host check that “date.timezone = your/timezone” is set properly for your server in php.ini

    That should set you right as rain. Let us know if you need further assistance.

    Cheers,

  • #3 / Sep 21, 2011 4:46pm

    Rob Allen

    3114 posts

    Thanks Dan, all sorted so close this one off!

  • #4 / Sep 22, 2011 12:49am

    Dan Decker

    7338 posts

    Bluedreamer,

    Excellent! Glad I could help 😊

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases