PHP errors in Squirrelmail...?

When I any of our users log into Squirrelmail, they see nothing but a repeat of the following error messages:
Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() 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 'America/Denver' for 'MST/-7.0/no DST' instead in /usr/share/squirrelmail/functions/date.php on line 420
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() 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 'America/Denver' for 'MST/-7.0/no DST' instead in /usr/share/squirrelmail/functions/date.php on line 95
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() 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 'America/Denver' for 'MST/-7.0/no DST' instead in /usr/share/squirrelmail/functions/date.php on line 347
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() 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 'America/Denver' for 'MST/-7.0/no DST' instead in /usr/share/squirrelmail/functions/date.php on line 289
Now, I've already googled it and went intp the php.ini file and edited the timezone to America/Phoenix and restarted the server, still to no avail. Same errors persist.
Any thoughts?
Thanks!

See if setting a timezone in php.ini will make the diagnostic go away.
I set the box default to UTC.
$ grep -i timezone /etc/php.ini
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "UTC"
$
If you don't have the php.ini file around on your server, copy over the default, and then edit that.
$ sudo cp /etc/php.ini.default /etc/php.ini
$ sudo nano /etc/php.ini
Edit the file with nano, vim, emacs or another ASCII text editor. (Don't use a non-ASCII text editor such as TextEdit.)
The Drupal CMS (which is how I first encountered this particular php diagnostic) smacked into a similar case.
If that's not it, start digging around in your php environment, and see if there's something (else) gone weird with the timezone settings. Line 289 of that file is trying to acquire a localized date, so something in the server timezone set-up is wonky here.

Similar Messages

  • Third party contact form widgets no longer working with upgrade - PHP errors

    PHP seems to be even more screwed up with the latest update/upgrade to Muse.  The previous upgrade started producing the following error message when I uploaded my site via FTP:
    "1 Warning - Connection to PHP file failed. Unable to check if this web server supports PHP needed by Muse forms. Be sure the domain name entered in the FTP upload dialog is correct."
    However, everything worked and in participating in some queries here, it seemed to be an oddity versus anything serious (things still worked but an error message popped up for no real discernible reason)
    Since the latest update, however, widgets that I have from two different companies for the purpose of emailing me through the website, sending messages, etc, are no longer working and the following message is displayed upon hitting "submit"
    " Form PHP script is missing from web server, or PHP is not configured correctly on your web hosting provider. Check if the form PHP script has been uploaded correctly, then contact your hosting provider about PHP configuration."
    In checking with my web host provider, I was told
    "the page appears to use the script form-u31652.php which does exist on the
    server.
    Unfortunately that error is not specific enough to point us in the right
    direction. PHP is indeed working on the server. However, looking at the
    apache web server error logs I can see that the contact form appears to be
    looking for a file that does not exist.
    To trouble shoot this issue you will want to work with Muse to determine
    why the sites coding is looking for the file
    /usr/home/NAME/public_html/WEBSITE.com/null."
    Any ideas what this means and how to solve this would be great. I've tried re-uploading the entire website, figuring that maybe something wasn't being uploaded via "Modified Only" but it still is happening
    Thanks!

    That isn't what ended up fixing it, Sanjit. Thanks to this article PHP FAQ for Muse Synchronized Text and help from an online representative from Adobe, was able to troubleshoot with my web provider. Turns out the problem was that a while back Muse deleted the fcgi-bin directory (probably during the previous upgrade, as that is when the PHP errors started to surface with me and others). And it was never put back by Muse even during a clean/full reupload of the website.  Had to have my web provider do it manually.

  • PHP errors not displaying

    While editing my web page i noticed that when i have a PHP error on the site, firefox simply does not attempt to open the page. Like, if im on yahoo, and type in the pages URL, it will start loading it then stop and stay on yahoo (for example). Ive loaded firefox via another user profile and tried it in chrome as well and the error displays as wanted. Ive turned off all addons and extensions in my default user profile and still get the same issue.
    I know that simply creating a new user profile will fix the issue, however i have a LOT of saved passwords, bookmarks, ect that id rather not start over with. Anyone have any ideas of an option that blocks this?

    OK, I got it to work.
    I went to Help->Troubleshooting Information.
    In the upper right corner, I clicked the Reset Firefox button.
    When it came back up, the PHP error messages were finally being displayed from my test file. Some of the options (tab and toolbar settings, etc) were set back to defaults, but all my bookmarks were intact. Not sure about passwords and history, but I'd guess it's OK.
    Good luck.

  • Can't log php errors.

    I installed php 5.2.5 per the instructions on this page:
    http://switch.richard5.net/isp-in-a-box-v2/installing-php-on-mac-os-x/
    I've also installed Apache 2.2.8 and MySQL 5.1.24.
    Everything seems to be working fine, except for one strange problem. I cannot log php errors.
    I have edited my php.ini file so that
    error_log = "/Library/PHP5/logs/php_error.log"
    ... and I have set the permissions on the php_error.log file to 777.
    I have created a test .php file with deliberate errors, but none of the errors show up in the php_error.log file. The test error I am using is "if ($undefinedvariable) { do something }"
    No php error messages are showing up in Apache's log file.

    I contacted Richard Valk, and he suggested checking where my installation of PHP expected the php.ini file to be, by creating a script file to run the phpinfo() command. I found out that my installation expected php.ini to be in /Library/PHP5/lib/, and it was actually in /etc/. I don't remember if I moved it there or what exactly.
    I copied the php.ini file to /Library/PHP5/lib/, toggled Apache, and php error logging works now.
    Big thanks to Mr. Valk!

  • Command To Run The PHP Error Files

    Nothing I've found is working.
    Does anyone know what the command is?
    Thank you.

    MJN1812 wrote:
    Nothing I've found is working.
    Does anyone know what the command is?
    Unless I don't understand what a "PHP error file" is, your topic post makes it seem that you feel the "PHP error files" are executable, which is presumably not the case. Please describe in more detail what you really want to do.

  • Muse form is not working on godaddy and no error message indicating a php error is occuring. Could something else be wrong? Do I have to manually set the form once loaded to go daddy to direct through their mail form system?

    I have read in multiple places on the forum that muse forms are now supported on third party platforms. however I am having a very difficult time getting mine to work on Godaddy. They seem to no longer have the "form mailer" option and told me to look at this PHP: mail - Manual to make the forms work. Muse is not giving any error messages indicating that there is a problem on the go daddy end, the form appears to function but no message is received at email address. can anyone help troubleshoot this for me.
    Thanks.

    Hey Sanjit & Brad,
    Thanks for getting back to me. So, I tried changing the address as Sanjit suggested, and yes an error message came up. But then I tested Brad's theory and looks like the form works with another email address other than that of the actual website email:( So I guess based on Brad's link I should reroute the form to the other (non-godaddy) email...or contact go-daddy to see if they can correct this? Would that be the final answer?
    Thanks again!

  • Flex 4 with php error.

    Hi all, i'm connecting a flex application with database MySql, for that i'm using PHP as server side language. I followed a tutorial and created php class and tested. I'm getting the error at last step. This is what i did,
    1) create a php class name.php
    <?php
    * This sample service contains functions that illustrate typical
    * service operations. This code is for prototyping only.
    *  Authenticate users before allowing them to call these methods.
    class name {
      var $username = "root";
      var $password = "";
      var $server = "localhost";
      var $port = "3306";
      var $databasename = "test";
      var $tablename = "names";
      var $connection;
      public function __construct() {
        $this->connection = mysqli_connect(
                           $this->server, 
                           $this->username, 
                           $this->password,
                           $this->databasename,
                           $this->port
        $this->throwExceptionOnError($this->connection);
      public function getNames() {
         $stmt = mysqli_prepare($this->connection,
              "SELECT
                  names.firstname,
                  names.middlename,
                  names.lastname
               FROM names");    
          $this->throwExceptionOnError();
          mysqli_stmt_execute($stmt);
          $this->throwExceptionOnError();
          $rows = array();
          mysqli_stmt_bind_result($stmt, $row->firstname, $row->middlename,
                        $row->lastname);
          while (mysqli_stmt_fetch($stmt)) {
              $rows[] = $row;
              $row = new stdClass();
              mysqli_stmt_bind_result($stmt, $row->firstname, $row->middlename,
                        $row->lastname);
          mysqli_stmt_free_result($stmt);
          mysqli_close($this->connection);
          return $rows;
       private function throwExceptionOnError($link = null) {
        if($link == null) {
          $link = $this->connection;
        if(mysqli_error($link)) {
          $msg = mysqli_errno($link) . ": " . mysqli_error($link);
          throw new Exception('MySQL Error - '. $msg);
    2)   Through data wizard, connect php and linked php class, it showed the methods and went to final step.
    3) Created a datagrid in flex, then dragged and droped getNames() to the datagid, then i configured return type. The datagrid then changed its fields to MySql table.
    4) Here was the problem, when i ran the application, it showed a error in this line,
    <fx:Script>
                        <![CDATA[
                                  import mx.controls.Alert;
                                  import mx.events.FlexEvent;
                                  protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
                                            getNamesResult.token = name.getNames();
                        ]]>
              </fx:Script>
    Error - 
    Description
    Resource
    Path
    Location
    Type
    1061: Call to a possibly undefined method getNames through a reference with static type String.
    flexphp.mxml
    /flexphp/src
    line 13
    Flex Problem
    I'm new to flex, so wondering where exactly is the problem?
    I did traced back few steps, like followed Control+click on getNames(), but it took me to actionscript file and everything seemed perfect. Since you guys have experience, hope you would throw some light on error. Thanks!

    This appears to be a Flex question. please try posting it in the Flex forums here http://forums.adobe.com/community/flex/flex_general_discussion

  • PHP errors in flex

    I have an application in PHP and I'm using Flex for the
    front. I was wondering how I could transfer information about
    errors to flex from php.
    So, the questions I am asking are:
    What does Flex's HTTPService consider a fault?
    Is there a way to write a general wrapper function to manage
    httpservices? I tried but flex won't allow me to assign a function
    call to the event listener, only a function.

    Probably HTTP error codes. You can use the same function in
    multiple HTTPServices. If you don't care which one of the
    HTTPService thru the error, just use the same function when you
    declare the faulthandler for the HTTPService.

  • PHP error help needed

    I've worked through the Adobe tutorial, "Developing a web
    application with
    Dreamweaver"
    http://www.adobe.com/devnet/dreamweaver/articles/develop_web_application.html).
    Everything works fine until I get to the final step of
    testing the Record
    Insert form be submitting data. When I click the Insert
    record button
    instead of going to the View page I get these errors for each
    form field:
    Warning: mysql_real_escape_string()
    [function.mysql-real-escape-string]:
    Access denied for user 'ODBC'@'localhost' (using password:
    NO) in
    F:\Webs\cafe_php\TMPh4f4n13a5b.php on line 8
    Warning: mysql_real_escape_string()
    [function.mysql-real-escape-string]: A
    link to the server could not be established in
    F:\Webs\cafe_php\TMPh4f4n13a5b.php on line 8
    The warnings appear on the form page above the page itself.
    When I connected the database to the site the test worked.
    Here are the first 8 lines of code:
    <?php require_once('Connections/connTownsend.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "",
    $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    Any suggestions?
    Walt

    First, thanks for helping.
    2nd, sorry to be so thick, this is all still Greek to me, but
    I have no idea
    where to insert
    with a die($rsInsert_query):
    Here is all the PHP code above the DOCTYPE:
    <?php require_once('Connections/connTownsend.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "",
    $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
    $editFormAction .= "?" .
    htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) &&
    ($_POST["MM_insert"] == "form1")) {
    $insertSQL = sprintf("INSERT INTO comments (FIRST_NAME,
    LAST_NAME) VALUES
    (%s, %s)",
    GetSQLValueString($_POST['FIRST_NAME'], "text"),
    GetSQLValueString($_POST['LAST_NAME'], "text"));
    mysql_select_db($database_connTownsend, $connTownsend);
    $Result1 = mysql_query($insertSQL, $connTownsend) or
    die(mysql_error());
    ?>
    Walt
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    > Walt - this is a good puzzle.
    >
    > All of your observations suggest that you have adequate
    permissions, yet,
    > this error says you don't -
    >
    >> Warning: mysql_real_escape_string()
    [function.mysql-real-escape-string]:
    >> A link to the server could not be established in
    >> F:\Webs\GoFreeFuel\TMP4r8sq1dpfl.php on line 8
    >
    > Let's take a look at your insert command - can you trap
    the insert process
    > with a die($rsInsert_query) command, right before the
    actually execution?
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Walt F. Schaefer" <[email protected]> wrote
    in message
    > news:[email protected]...
    >> Murray,
    >>
    >> Here's an Update/Summary:
    >>
    >> 1. I have a MySQL database (localhost) I can see and
    manipulate via
    >> Navicat
    >> 2. In my site (in DW) I created a connection to that
    database. It tested
    >> successfully.
    >> 3. I created a recordset using that database. It
    tested successfully.
    >> 4. On a new page Insert > Application Objects
    > Insert Record > Record
    >> Insertion Form Wizard.
    >> 5. Save page and preview locally in IE6.
    >> 6. Input info in form and click Insert record.
    >> 7. Record IS added to table but every field is Null.
    >> 8. Errors for each form field:
    >> Warning: mysql_real_escape_string()
    [function.mysql-real-escape-string]:
    >> Access denied for user 'ODBC'@'localhost' (using
    password: NO) in
    >> F:\Webs\GoFreeFuel\TMP4r8sq1dpfl.php on line 8
    >>
    >> Warning: mysql_real_escape_string()
    [function.mysql-real-escape-string]:
    >> A link to the server could not be established in
    >> F:\Webs\GoFreeFuel\TMP4r8sq1dpfl.php on line 8
    >>
    >> As I can read from the database/table and the Insert
    record form DOES ADD
    >> a record it would seem I am connected to the db just
    unable to add data.
    >>
    >> What have I done wrong?
    >>
    >> Thanks.
    >> --
    >>
    >> Walt
    >>
    >>
    >> "Murray *ACE*"
    <[email protected]> wrote in message
    >> news:[email protected]...
    >>> OK - I think we will have to solve your database
    connectivity issues
    >>> first. What does your Connections file look
    like?
    >>>
    >>> --
    >>> Murray --- ICQ 71997575
    >>> Adobe Community Expert
    >>> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >>> ==================
    >>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>> ==================
    >>>
    >>>
    >>> "Walt F. Schaefer" <[email protected]>
    wrote in message
    >>> news:[email protected]...
    >>>>> LOL - you are interpreting my code MUCH
    too literally. Change this -
    >>>> It's only because I don't have a clue. Hence
    the need to use this
    >>>> beginner's tutorial.
    >>>>
    >>>> I replaced to code as instructed. No
    improvement. Error messages:
    >>>>
    >>>> Warning: mysql_real_escape_string()
    >>>> [function.mysql-real-escape-string]: Access
    denied for user
    >>>> 'ODBC'@'localhost' (using password: NO) in
    >>>> F:\Webs\cafe_php\TMPgayzl14jqr.php on line 8
    >>>>
    >>>> Warning: mysql_real_escape_string()
    >>>> [function.mysql-real-escape-string]: A link
    to the server could not be
    >>>> established in
    F:\Webs\cafe_php\TMPgayzl14jqr.php on line 8
    >>>>
    >>>> Warning: mysql_real_escape_string()
    >>>> [function.mysql-real-escape-string]: Access
    denied for user
    >>>> 'ODBC'@'localhost' (using password: NO) in
    >>>> F:\Webs\cafe_php\TMPgayzl14jqr.php on line 8
    >>>>
    >>>> Warning: mysql_real_escape_string()
    >>>> [function.mysql-real-escape-string]: A link
    to the server could not be
    >>>> established in
    F:\Webs\cafe_php\TMPgayzl14jqr.php on line 8
    >>>> INSERT INTO comments (FIRST_NAME, LAST_NAME)
    VALUES (NULL, NULL)
    >>>> --
    >>>>
    >>>> Walt
    >>>>
    >>>>
    >>>> "Murray *ACE*"
    <[email protected]> wrote in message
    >>>> news:[email protected]...
    >>>>> LOL - you are interpreting my code MUCH
    too literally. Change this -
    >>>>>
    >>>>> $insertSQL = sprintf("INSERT INTO
    comments (FIRST_NAME, LAST_NAME)
    >>>>> VALUES
    >>>>> (%s, %s)",
    >>>>> GetSQLValueString($_POST['FIRST_NAME'],
    "text"),
    >>>>> GetSQLValueString($_POST['LAST_NAME'],
    "text"));
    >>>>> $insert_rsEmails = sprintf("INSERT INTO
    tblcontactdata SET emailValue
    >>>>> =
    >>>>> %s", GetSQLValueString($filter_rsEmails,
    "text"));
    >>>>> die($insert_rsEmails);
    >>>>> $rsEmails =
    mysql_query($insert_rsEmails, $selectData) or
    >>>>> die(mysql_error()); // insert this email
    into the database
    >>>>>
    >>>>> mysql_select_db($database_connTownsend,
    $connTownsend);
    >>>>>
    >>>>> to this -
    >>>>>
    >>>>> $insertSQL = sprintf("INSERT INTO
    comments (FIRST_NAME, LAST_NAME)
    >>>>> VALUES
    >>>>> (%s, %s)",
    >>>>> GetSQLValueString($_POST['FIRST_NAME'],
    "text"),
    >>>>> GetSQLValueString($_POST['LAST_NAME'],
    "text"));
    >>>>> die($insertSQL);
    >>>>>
    >>>>> mysql_select_db($database_connTownsend,
    $connTownsend);
    >>>>>
    >>>>>
    >>>>> --
    >>>>> Murray --- ICQ 71997575
    >>>>> Adobe Community Expert
    >>>>> (If you *MUST* email me, don't LAUGH
    when you do so!)
    >>>>> ==================
    >>>>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>>> ==================
    >>>>>
    >>>>>
    >>>>> "Walt F. Schaefer"
    <[email protected]> wrote in message
    >>>>>
    news:[email protected]...
    >>>>>> Murray,
    >>>>>>
    >>>>>> Here's all the PHP code that
    precedes the DOCTYPE *after* inserting
    >>>>>> the code you provided:
    >>>>>>
    >>>>>
    >>>>
    >>>>
    >>>
    >>
    >>
    >

  • Can /etc/httpd/conf/httpd.conf config affect php error display?

    If error display is on in php.ini, can anything from "/etc/httpd/conf/httpd.conf" affect this option so errors won't be shown?

    Yes, with PHP as Apache module, a directive like:
    php_admin_flag display_errors off
    can or, eventually:
    php_admin_value error_reporting <number>
    But these shouldn't be used.
    Last edited by julp (2011-07-28 22:20:37)

  • Bug report: code editor shows false PHP error

    I'm using Dreamweaver CC on an iMac.  The problem is that the PHP line error indicates an error in the code when there is no error.  This happens regularly when adding new values to an arrays that's formatted across multiple lines.  Please see the attached screenshot.

    When uploading an image on this forum, it seems to dramatically reduce the quality of the upload.  Here is a zoomed in image.

  • PHP error reporting level

    Hi all,
    Thanks to the people who helped me in my last post, I just got PHP version 5 installed for the OS X web server. However, no errors or warnings are reported now, and they were before. I checked /etc/php.ini, and saw these lines:
    error_reporting = E_ALL
    display_errors = On
    It seems that it should be showing me errors... Am I looking at the wrong file or something? Any help would be appreciated.
    C

    Am I looking at the wrong file or something?
    Good guess, mine is at...
    /Applications/MAMP/conf/php5/php.ini
    Depending... yours mught be elsewhere!

  • MySQL/PHP error Help

    when trying to login to my database i get a Code 404 error, file not found reasons:
         1.There is no testing server running on the server machine. (if i take out the testing server check box on the site server management area then i get an unknown error)
         2. The testing server specifyed for this site does not map to the http://....../public_html/_mmServerScripts/MMHTTPDB.php URL. Verrify that the URL prefix maps to the root of the site.
    Can anyone tell me what i am doing wronge?

    You cannot test PHP/MySQL commands without a testing server.  Are you sure you DON'T have one defined for this site?

  • Simple contact form php error

    I just replaced an adobe formscentral contact form with the muse simple contact form. It is not working, receiving a php server error when submitting. How can I fix this?? I'm hosting through Amazon Route53.
    Issue is here: CONTACT

    Hi,
    I was able to submit the form, kindly let me know if you are still facing the issue.
    Regards
    Sonam

  • PHP errors.....

    I have created some php forms using DW. They have been
    working on my W2K3 IIS 6.0 server just fine. Today I added a new
    form and am getting this error....
    CGI Error
    The specified CGI application misbehaved by not returning a
    complete set of HTTP headers.
    I removed the new form and am still getting the error.... so
    I dont think it had anything to do with adding the new file....
    Thanks in advance,

    Without seeing more or knowing which line of code it was complaining about, my first guess would be the smart/curly quotes currently around the line that sets the From address:
    $from = “From: [email protected] \r\n”;
    ...try changing to normal double quotes.

Maybe you are looking for