Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2015
    Location
    Clarksburg
    Posts
    29
    Plugin Contributions
    0

    Default Can't login to admin after database upgrade from 151 to 1.54.

    Just newly upgrade database from 1.51 to 1.54 in Linux server.

    Everything seems fine. The store is working OK.

    But can't login to admin.

    The error message is like "WARNING: An Error occurred, please refresh the page and try again."

    The log file shows "BLOB/TEXT column 'logmessage' can't have a default value :: ALTER TABLE zen_admin_activity_log ADD COLUMN logmessage mediumtext NOT NULL default '' ==> (as called by) /home/signag5/public_html/admin/includes/classes/class.admin.zcObserverLogWriterDatabase.php on line 90 <== in /home/signag5/public_html/includes/classes/db/mysql/query_factory.php on line 155".

    By searching the forum, change admin/includes/classes/class.admin.zcObserverLogWriterDatabase.php on line 90 from
    NOT NULL default ''";

    to NOT NULL;

    But admin still cannot login with blank page with error log file showing "syntax error, unexpected 'show' (T_STRING) in /home/XXXX/public_html/admin/includes/classes/class.admin.zcObserverLogWriterDatabase.php on line 93".

    Any suggestion?

  2. #2
    Join Date
    Nov 2007
    Location
    USA
    Posts
    874
    Plugin Contributions
    5

    Default Re: Can't login to admin after database upgrade from 151 to 1.54.

    Did you happen to name all of the tables zen_ as apposed to the defaults?

    Upload the ZspeCial install folder and re-install.
    Cheers!
    v2.0+

  3. #3
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Can't login to admin after database upgrade from 151 to 1.54.

    The "syntax error" indicates you have accidentally introduced an error when editing the file. Perhaps you forgot the double quote near the end of the line you editted?
    Code:
    mediumtext NOT NULL";
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  4. #4
    Join Date
    Jul 2015
    Location
    Clarksburg
    Posts
    29
    Plugin Contributions
    0

    Default Re: Can't login to admin after database upgrade from 151 to 1.54.

    Thank you lhungil. You made my day. I have to say the forum is terrific!

  5. #5
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Can't login to admin after database upgrade from 151 to 1.54.

    You are welcome.

    Aye, the community here is great. Lots of talented and knowledgeable folk. And of course more than enough personality to go around.

    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

 

 

Similar Threads

  1. v154 Can't upgrade database doing upgrade from 1.5.1 to 1.5.4
    By blueskyhigh in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 2 Apr 2015, 01:38 PM
  2. Replies: 4
    Last Post: 12 Dec 2014, 10:05 PM
  3. v151 blank screen on admin area after upgrade 151 to 153
    By satello in forum Upgrading to 1.5.x
    Replies: 3
    Last Post: 21 Nov 2014, 08:04 PM
  4. v153 upgrade from 151 to153
    By rehopper in forum Basic Configuration
    Replies: 2
    Last Post: 2 Nov 2014, 02:52 PM
  5. Can't login to admin after upgrade; can login with new install
    By dietcokelemon in forum Upgrading to 1.5.x
    Replies: 14
    Last Post: 9 Feb 2014, 05:16 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR