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

A typo in style_update_p1.php migration may prevent updating in some circumstances

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.1.3-RC1
    • 3.1.2
    • Update system
    • None

      In \phpbb\db\migration\data\v310\style_update_p1.php

      $sql = 'SELECT s.style_id, t.template_path, t.template_id, t.bbcode_bitfield, t.template_inherits_id, t.template_inherit_path, c.theme_path, c.theme_id
      				FROM ' . STYLES_TABLE . ' s, ' . $this->table_prefix . 'styles_template t, ' . $this->table_prefix . "stles_theme c
      				WHERE t.template_id = s.template_id
      					AND c.theme_id = s.theme_id";
      

      causes SQL error about non-existant table stles_theme.
      https://github.com/phpbb/phpbb/blob/develop/phpBB/phpbb/db/migration/data/v310/style_update_p1.php#L95

            nicofuma nicofuma
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: