Article image won't load - fatal error

This page is an archive and was used for testing purposes. Please visit us at woltlab.com to learn more.

  • After upgrading from 3.1 to 5.2.0 RC1 some article images don't display (just a white image), teaser image is ok. When I right click the image and choose "View image" I get an fatal error. It seems to be only old articles, or articles with old attachments as article image. If I edit the article, the preview of article image is working.

    This is the message I get.


    System Information

    • PHP Version:

      7.3.12

    • WoltLab Suite Core:

      5.2.0 RC 1

    • Peak Memory Usage:

      2.444/512 MiB

    • Request URI:

      /community/index.php?media/1988-5c793fbe0c37900df930aff025c2f612298a7faa-jpg/

    • Referrer:

    • User Agent:

      Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0


    Original Error

    • Error Type:

      PDOException

    • Error Message:

      SQLSTATE[42S22]: Column not found: 1054 Unknown column 'lastDownloadTime' in 'field list'

    • Error Code:

      42

    • File:

      */lib/system/database/Database.class.php (271)

    Final Error

    • Error Type:

      wcf\system\database\exception\DatabaseQueryException

    • Error Message:

      Could not prepare statement 'UPDATE wcf1_media SET downloads = ?, lastDownloadTime = ? WHERE mediaID = ?'

    • Error Code:

      42

    • File:

      */lib/system/database/Database.class.php (276)