Results 1 to 6 of 6
  1. #1
    New Pligger ServiceNinja's Avatar
    Joined
    Jul 2006
    Posts
    19

    SQL/DB Error -- [Incorrect table definition; there can be only one TIMESTAMP column w

    SQL/DB Error -- [Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause]

    When upgrading from an older version 7 to version 8.1

  2. #2
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    replace current timestamp with NULL in the entire file.

  3. #3
    New Pligger ServiceNinja's Avatar
    Joined
    Jul 2006
    Posts
    19
    If you're still having issues upgrading try http://www.serviceninja.com/pligg/upgrade.phps

    Rename this to upgrade.php and upload, then you should be all set. I noticed that createtables.php, which is for new installs and upgrade.php are not updated the same it seems. This fix should take care of most issues upgrading.

  4. #4
    Pligg Donor SpeedyTV.com's Avatar
    Joined
    Sep 2006
    Posts
    42
    Quote Originally Posted by kbeeveer46 View Post
    replace current timestamp with NULL in the entire file.
    KBeever --

    Since I'm a little new to programming....

    • Which file do I make the changes to?
    • Also, do I just do a search and replace for "current timestamp" and change it to "NULL"?

  5. Thanks
Reply With Quote Reply With Quote

  • #5
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    edit install/upgrade.php and where it says CURRENT_TIMESTAMP, replaec that with NULL and upload it back to your server and run the file.

  • #6
    New Pligger ServiceNinja's Avatar
    Joined
    Jul 2006
    Posts
    19
    The file above should also help if you're getting the following:

    SQL/DB Error -- [Invalid default value for 'user_lastlogin']

  • Similar Threads

    1. Replies: 3
      Last Post: 08-29-2011, 10:33 AM
    2. Replies: 7
      Last Post: 05-23-2009, 05:59 AM
    3. SQL/DB Error -- [Unknown column 'tag_words' in 'where clause
      By oddnews in forum Questions & Comments
      Replies: 0
      Last Post: 08-25-2006, 08:43 PM
    4. Incorrect key -> Object error
      By Xavier in forum Questions & Comments
      Replies: 0
      Last Post: 08-05-2006, 06:34 AM
    5. SQL/DB Error -- [Duplicate column name 'link_title_url']
      By doulos12 in forum Questions & Comments
      Replies: 3
      Last Post: 04-27-2006, 10:25 AM

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting