6.0.0-beta1
7/10/25

[#14865] Ansel migration
Summary Ansel migration
Queue Ansel
Queue Version 3.0.8
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester lameventanas (at) gmail (dot) com
Created 10/14/2018 (2461 days ago)
Due
Updated 10/14/2018 (2461 days ago)
Assigned
Resolved 10/14/2018 (2461 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/14/2018 03:24:58 PM Michael Rubinsky Comment #7
Assigned to Michael Rubinsky
State ⇒ Resolved
Priority ⇒ 1. Low
Reply to this comment
Fixed in Git for Ansel 3.0.9

This would only be an issue if converting an old ansel 1.x database 
after installing a fresh Ansel 3.x install.
10/14/2018 03:19:01 PM Git Commit Comment #6 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit 14d9c4ae158e0a3be94f6185cfaa76109ac96af4
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sun, 14 Oct 2018 11:17:45 -0400

[mjr] Fix fatal error in database migration (Bug #14865).

  M docs/CHANGES
  M package.xml

https://github.com/horde/ansel/commit/14d9c4ae158e0a3be94f6185cfaa76109ac96af4
10/14/2018 03:19:00 PM Git Commit Comment #5 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit 557c2d13838a07c218fbbfcac549d2d2a96422c1
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sun, 14 Oct 2018 11:17:45 -0400

[mjr] Fix fatal error in database migration (Bug #14865).

  M docs/changelog.yml

https://github.com/horde/ansel/commit/557c2d13838a07c218fbbfcac549d2d2a96422c1
10/14/2018 03:18:50 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit 9a0e0e33211305e47ac573e7e9906d630d99a542
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sun, 14 Oct 2018 11:18:42 -0400

[mjr] Fix fatal error in database migration (Bug #14865).

  M doc/changelog.yml

https://github.com/horde/ansel/commit/9a0e0e33211305e47ac573e7e9906d630d99a542
10/14/2018 03:18:49 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit 27d7b6d960861d069cea415b4347e5b2dbf88749
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sun, 14 Oct 2018 11:18:27 -0400

Pass empty string during migration.

Bug: 14865

  M migration/10_ansel_upgrade_computestylehashes.php

https://github.com/horde/ansel/commit/27d7b6d960861d069cea415b4347e5b2dbf88749
10/14/2018 03:14:11 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit 1658affd985ed0f069913d8493944af7141cde75
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sun, 14 Oct 2018 11:12:49 -0400

Pass empty string during migration.

Bug: 14865

  M migration/10_ansel_upgrade_computestylehashes.php

https://github.com/horde/ansel/commit/1658affd985ed0f069913d8493944af7141cde75
10/14/2018 05:52:03 AM lameventanas (at) gmail (dot) com Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Ansel migration
Queue ⇒ Ansel
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
I'm not sure which version of Horde and Ansel I have, I installed them 
via pear recently.

While upgrading horde and ansel with the horde-db-migrate script, I 
get this error:

[horde] ArgumentCountError: Too few arguments to function 
Ansel_Style::getHash(), 0 passed in 
/var/www/horde/ansel/migration/10_ansel_upgrade_computestylehashes.php 
on line 50 and exactly 1 expected in 
/var/www/horde/ansel/lib/Style.php:69
Stack trace:
#0 
/var/www/horde/ansel/migration/10_ansel_upgrade_computestylehashes.php(50): 
Ansel_Style->getHash()
#1 
/var/www/horde/ansel/migration/10_ansel_upgrade_computestylehashes.php(23): 
AnselUpgradeComputestylehashes->_ensureHashes(Array)
#2 /var/www/pear/php/Horde/Db/Migration/Base.php(121): 
AnselUpgradeComputestylehashes->up()
#3 /var/www/pear/php/Horde/Db/Migration/Migrator.php(182): 
Horde_Db_Migration_Base->migrate('up')
#4 /var/www/pear/php/Horde/Db/Migration/Migrator.php(102): 
Horde_Db_Migration_Migrator->_doMigrate()
#5 /var/www/horde/admin/config/index.php(133): 
Horde_Db_Migration_Migrator->up()
#6 {main} [pid 16174 on line 74 of "/var/www/pear/php/Horde/ErrorHandler.php"]

Saved Queries