Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-11767

Unable to update DB from 3.0.X to 3.1.X because of post_visibility

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.1.0-a1
    • 3.1.0-dev
    • Installation system
    • None

      Trying to update a 3.0 db to 3.1 failed, because the function delete_posts() is called upon, which has "post_visibility" in its SQL query, although that field does not exist in 3.0 databases.

      General Error
      SQL ERROR [ mysqli ]

      Unknown column 'post_visibility' in 'field list' [1054]

      SQL

      SELECT post_id, poster_id, post_visibility, post_postcount, topic_id, forum_id FROM phpbb_posts WHERE poster_id = 116837

      BACKTRACE

      FILE: (not given by php)
      LINE: (not given by php)
      CALL: msg_handler()

      FILE: [ROOT]/phpbb/db/driver/driver.php
      LINE: 809
      CALL: trigger_error()

      FILE: [ROOT]/phpbb/db/driver/mysqli.php
      LINE: 187
      CALL: phpbb_db_driver->sql_error()

      FILE: [ROOT]/includes/functions_admin.php
      LINE: 781
      CALL: phpbb_db_driver_mysqli->sql_query()

      FILE: [ROOT]/includes/functions_user.php
      LINE: 564
      CALL: delete_posts()

      FILE: [ROOT]/phpbb/db/migration/data/30x/3_0_12_rc1.php
      LINE: 111
      CALL: user_delete()

      FILE: (not given by php)
      LINE: (not given by php)
      CALL: phpbb_db_migration_data_30x_3_0_12_rc1->update_bots()

      FILE: [ROOT]/phpbb/db/migrator.php
      LINE: 446
      CALL: call_user_func_array()

      FILE: [ROOT]/phpbb/db/migrator.php
      LINE: 392
      CALL: phpbb_db_migrator->run_step()

      FILE: [ROOT]/phpbb/db/migrator.php
      LINE: 237
      CALL: phpbb_db_migrator->process_data_step()

      FILE: [ROOT]/phpbb/db/migrator.php
      LINE: 153
      CALL: phpbb_db_migrator->try_apply()

            nickvergessen Joas Schilling
            VSE Matt Friedman [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: