Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After updating from version beta4 to beta5 I have this error when creating a new event:
PDOException : SQLSTATE[42S22]: Column not found: 1054 Unknown column 'm.weight' in 'field list': SELECT m.id AS id, m.label AS label, m.points AS points, m.class_icon AS class_icon, m.type AS type, m.weight AS weight FROM {league_event_type} m WHERE (m.active = :db_condition_placeholder_0) AND (m.public = :db_condition_placeholder_1) ORDER BY weight ASC; Array ( [:db_condition_placeholder_0] => 1 [:db_condition_placeholder_1] => 1 ) dans league_event_load_event_types() (ligne 738 dans /var/www/sport/sites/all/modules/league/modules/league_event/league_event.module).
Comment | File | Size | Author |
---|---|---|---|
#1 | league-error-submiting-2243007.patch | 1.03 KB | lebodyguard |
Comments
Comment #1
lebodyguard CreditAttribution: lebodyguard commentedTesting my first patch in drupal :)
Comment #2
lebodyguard CreditAttribution: lebodyguard commentedComment #3
hatuhay CreditAttribution: hatuhay commentedHello,
Congratulations for the patch!!
But the real problem is that for some reason -I have to check- your database has not been updated.
The field weight could be found on the league_event schema in the league_event.intall file, apparently it is not present on your database.
Please assure that your system run all pending updates.
Keep me posted.
Comment #4
hatuhay CreditAttribution: hatuhay commentedI double check on uploaded files, you have to run database updates and problem should be gone.
Please reopen if problem persist.
Comment #5
lebodyguard CreditAttribution: lebodyguard commentedI don't know if I did something wrong but I did run the database update but the problem perssist.
this is what I have in league_event.install file for league_event schema:
there is no weight record
the weight is in the event_type shema
Comment #6
lebodyguard CreditAttribution: lebodyguard commentedComment #7
lebodyguard CreditAttribution: lebodyguard commentedsolved by creating manualy (with phpmyadmin) the weight record in "league_event_type" table
Comment #8
lebodyguard CreditAttribution: lebodyguard commented