Results 1 to 1 of 1

Thread: 4.5.0h DST Time Fix Fails.

  1. #1
    zagadka is offline Junior Member
    Join Date
    Jan 2007
    Posts
    2

    Default 4.5.0h DST Time Fix Fails.

    Hi All,

    Currently I am getting the "Warning: Please upgrade DST Fix using the upgrade in the administration panel" error at the top of the page.

    When trying to apply the DST fix in Admin -> Repair -> "Apply Daylight Savings Time Fix" it fails to run, rendering all of the page except the main content area (error messages are off). In the error log I see the error it throws is:

    Code:
    PHP Fatal error:  Using $this when not in object context in /var/www/public_html/crm/modules/Administration/DstFix.php on line 177, referer: index.php?module=Administration&action=DstFix
    Line 177 -> 180 in /modules/Administration/DstFix.php is:
    PHP Code:
               if ( ( $this->db->dbType == 'mysql' ) or ( $this->db->dbType == 'oci8' ) )
                    {
                      
    $field "CONCAT($table_name.$date,' ', $table_name.$time)";
                    } 
    It needs to be this - as it doesn't appear to be inside and object:
    PHP Code:
               if ( ( $db->dbType == 'mysql' ) or ( $db->dbType == 'oci8' ) )
                    {
                      
    $field "CONCAT($table_name.$date,' ', $table_name.$time)";
                    } 
    It then follows through correctly, does it's bit updating the offsets, inserts a row in versions around line 320something when it's done. However, I still get the error.

    The record:
    Code:
    mysql> select * from versions where name='DST Fix';
    +--------------------------------------+---------+---------------------+---------------------+------------------+------------+---------+--------------+------------+
    | id                                   | deleted | date_entered        | date_modified       | modified_user_id | created_by | name    | file_version | db_version |
    +--------------------------------------+---------+---------------------+---------------------+------------------+------------+---------+--------------+------------+
    | 1db25f05-3a0d-73ec-6e9c-45bd421a0845 |       0 | 2007-01-29 00:42:27 | 2007-01-29 00:42:27 | 1                | 1          | DST Fix | 3.5.1b       | 3.5.1b     |
    +--------------------------------------+---------+---------------------+---------------------+------------------+------------+---------+--------------+------------+
    1 row in set (0.00 sec)

    This is a clean OS, Database and Sugar install.
    Mysql 5.0.27
    PHP 5.1.6

    Any help would be much appreciated!

    Regards,
    Tim.

    EDIT:
    Logging out and then logging back in again *appears* to have removed the error message. But the code snippet above should still be looked at.

    Cheers,
    Tim.
    Last edited by zagadka; 2007-01-29 at 10:24 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. DST Fix notice after install
    By WeBoat in forum Installation and Upgrade Help
    Replies: 8
    Last Post: 2007-06-08, 05:21 AM
  2. Changing time settings
    By sagarladdha in forum Help
    Replies: 0
    Last Post: 2006-11-22, 05:36 AM
  3. Replies: 2
    Last Post: 2006-09-28, 02:27 PM
  4. Daylight Savings Time FIX - Sugar4
    By sdeller in forum Help
    Replies: 4
    Last Post: 2006-01-09, 11:07 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
  •