6.0.0-beta1
7/6/25

[#14372] Unable to create new gallery with Fatal Error: No gallery specified
Summary Unable to create new gallery with Fatal Error: No gallery specified
Queue Ansel
Queue Version 3.0.4
Type Bug
State Resolved
Priority 2. Medium
Owners mrubinsk (at) horde (dot) org
Requester amessina (at) messinet (dot) com
Created 05/26/2016 (3328 days ago)
Due
Updated 05/27/2016 (3327 days ago)
Assigned
Resolved 05/26/2016 (3328 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
05/27/2016 04:07:11 AM amessina (at) messinet (dot) com Comment #3 Reply to this comment
Fixed in Git for Ansel 3.0.5. There was a commit in master that was 
never merged back to the stable branch:

https://github.com/horde/horde/commit/b4450616c5575a8a5171aea74626ee9e8827f265
This works wonderfully.  Thank you.
05/26/2016 07:22:59 PM Michael Rubinsky Comment #2
Assigned to Michael Rubinsky
State ⇒ Resolved
Priority ⇒ 2. Medium
Reply to this comment
Fixed in Git for Ansel 3.0.5. There was a commit in master that was 
never merged back to the stable branch:

https://github.com/horde/horde/commit/b4450616c5575a8a5171aea74626ee9e8827f265


05/26/2016 05:42:46 PM amessina (at) messinet (dot) com Comment #1
Priority ⇒ 3. High
Patch ⇒ No
Milestone ⇒
Queue ⇒ Ansel
Summary ⇒ Unable to create new gallery with Fatal Error: No gallery specified
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
When trying to create a new gallery (I already have several others), I 
receive the following PHP error.  I have a fully updated/configured 
Horde 5 system.

A fatal error has occurred
No gallery specified

1. Ansel_ActionHandler::galleryActions() /var/www/horde/ansel/gallery.php:22
2. Ansel_View_GalleryProperties->run() 
/var/www/horde/ansel/lib/ActionHandler.php:891
3. Ansel_View_GalleryProperties->_output() 
/var/www/horde/ansel/lib/View/GalleryProperties.php:57
4. Ansel_View_GalleryProperties->_galleryViewStyles() 
/var/www/horde/ansel/lib/View/GalleryProperties.php:110
5. Ansel_View_Gallery->__construct() 
/var/www/horde/ansel/lib/View/GalleryProperties.php:458
6. Ansel_View_Base->_getGallery() /var/www/horde/ansel/lib/View/Gallery.php:47

Details
The full error message is logged in Horde's log file, and is shown 
below only to administrators. Non-administrative users will not see 
error details.

Ansel_Exception Object
(
     [details] =>
     [logged] => 1
     [_logLevel:protected] => 0
     [message:protected] => No gallery specified
     [string:Exception:private] =>
     [code:protected] => 0
     [file:protected] => /var/www/horde/ansel/lib/View/Base.php
     [line:protected] => 127
     [trace:Exception:private] => Array
         (
             [0] => Array
                 (
                     [file] => /var/www/horde/ansel/lib/View/Gallery.php
                     [line] => 47
                     [function] => _getGallery
                     [class] => Ansel_View_Base
                     [type] => ->
                     [args] => Array
                         (
                         )

                 )

             [1] => Array
                 (
                     [file] => 
/var/www/horde/ansel/lib/View/GalleryProperties.php
                     [line] => 458
                     [function] => __construct
                     [class] => Ansel_View_Gallery
                     [type] => ->
                     [args] => Array
                         (
                             [0] => Array
                                 (
                                     [gallery_id] =>
                                 )

                         )

                 )

             [2] => Array
                 (
                     [file] => 
/var/www/horde/ansel/lib/View/GalleryProperties.php
                     [line] => 110
                     [function] => _galleryViewStyles
                     [class] => Ansel_View_GalleryProperties
                     [type] => ->
                     [args] => Array
                         (
                         )

                 )

             [3] => Array
                 (
                     [file] => 
/var/www/horde/ansel/lib/View/GalleryProperties.php
                     [line] => 57
                     [function] => _output
                     [class] => Ansel_View_GalleryProperties
                     [type] => ->
                     [args] => Array
                         (
                         )

                 )

             [4] => Array
                 (
                     [file] => /var/www/horde/ansel/lib/ActionHandler.php
                     [line] => 891
                     [function] => run
                     [class] => Ansel_View_GalleryProperties
                     [type] => ->
                     [args] => Array
                         (
                         )

                 )

             [5] => Array
                 (
                     [file] => /var/www/horde/ansel/gallery.php
                     [line] => 22
                     [function] => galleryActions
                     [class] => Ansel_ActionHandler
                     [type] => ::
                     [args] => Array
                         (
                             [0] => add
                         )

                 )

         )

     [previous:Exception:private] =>
)

Saved Queries