We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36959
    • 22 Posts
    Hi there,

    I have a website that runs Modx 2.1.3 with Gallery 1.4.0, it has been working fine until I attempted to upgrade the Gallery 1.4.0 to 1.5.2. I first upgraded the Modx 2.1.3 to 2.2.4 which is compatible to Gallery 1.5.2, then I upgraded the Gallery from 1.4.0 to 1.5.2. Since then the GalleryAlbums snippet call doesn't show me any album anymore. I have about 7 albums that were all working fine with Gallery 1.4.0, but the GalleryAlbums snippet call from Gallery 1.5.2 yielded nothing on the website front-end. Checking the page source I can see the snippet generated no HTML code at all.

    Those albums are still visible and editable at the manager back-end but I simply cannot show them at the front-end.

    Note that I have tested creating a new album and upgrading a new picture, the newly created album works fine with the GalleryAlbums snippet call, only the existing albums cannot be shown.

    I would appreciate if someone can shed some light on troubleshooting this, or maybe confirm with me that I should not upgrade to Gallery 1.5.2 as it is a known bug?

    Regards.
    Johnmen [ed. note: johnmenz last edited this post 14 years, 2 months ago.]
      • 36959
      • 22 Posts
      I managed to get the output of the snippet call GalleryAlbums but it makes no sense to me. I am posting it here and hoping someone would be able to decipher this cryptic output.
      Gallery Object
      (
          [debugTimer] => 1342515445.6194
          [modx] => modX Object
              (
                  [context] => modContext_mysql Object
                      (
                          [config] => Array
                              (
                              )
      
                          [aliasMap] => Array
                              (
                              )
      
                          [resourceMap] => Array
                              (
                                  [0] => Array
                                      (
                                          [0] => 1
                                          [1] => 2
                                          [2] => 3
                                          [3] => 4
                                          [4] => 5
                                          [5] => 6
                                          [6] => 8
                                          [7] => 31
                                          [8] => 37
                                          [9] => 47
                                          [10] => 51
                                          [11] => 59
                                          [12] => 83
                                          [13] => 124
                                      )
      
                                  [2] => Array
                                      (
                                          [0] => 9
                                          [1] => 22
                                          [2] => 26
                                          [3] => 36
                                          [4] => 46
                                      )
      
                                  [4] => Array
                                      (
                                          [0] => 17
                                      )
      
                                  [5] => Array
                                      (
                                          [0] => 11
                                          [1] => 12
                                      )
      
                                  [9] => Array
                                      (
                                          [0] => 10
                                          [1] => 74
                                          [2] => 114
                                          [3] => 115
                                          [4] => 122
                                      )
      
                                  [10] => Array
                                      (
                                          [0] => 16
                                          [1] => 39
                                          [2] => 67
                                          [3] => 80
                                          [4] => 81
                                          [5] => 84
                                          [6] => 126
                                      )
      
                                  [12] => Array
                                      (
                                          [0] => 13
                                          [1] => 14
                                          [2] => 29
                                          [3] => 30
                                          [4] => 34
                                          [5] => 101
                                          [6] => 106
                                      )
      
                                  [17] => Array
                                      (
                                          [0] => 18
                                          [1] => 19
                                          [2] => 20
                                          [3] => 21
                                          [4] => 32
                                          [5] => 75
                                          [6] => 76
                                          [7] => 77
                                          [8] => 78
                                          [9] => 79
                                          [10] => 85
                                          [11] => 97
                                      )
      
                                  [22] => Array
                                      (
                                          [0] => 61
                                          [1] => 88
                                          [2] => 93
                                          [3] => 94
                                          [4] => 95
                                          [5] => 98
                                          [6] => 99
                                          [7] => 100
                                          [8] => 116
                                          [9] => 123
                                      )
      
                                  [26] => Array
                                      (
                                          [0] => 27
                                          [1] => 28
                                          [2] => 42
                                          [3] => 43
                                          [4] => 44
                                      )
      
                                  [36] => Array
                                      (
                                          [0] => 35
                                          [1] => 25
                                      )
      
                                  [46] => Array
                                      (
                                          [0] => 45
                                          [1] => 70
                                          [2] => 96
                                          [3] => 102
                                          [4] => 103
                                          [5] => 108
                                          [6] => 112
                                      )
      
                                  [47] => Array
                                      (
                                          [0] => 48
                                      )
      
                                  [51] => Array
                                      (
                                          [0] => 52
                                          [1] => 57
                                          [2] => 62
                                          [3] => 63
                                          [4] => 64
                                          [5] => 65
                                          [6] => 82
                                          [7] => 87
                                          [8] => 89
                                          [9] => 90
                                          [10] => 91
                                          [11] => 104
                                      )
      
                                  [61] => Array
                                      (
                                          [0] => 55
                                          [1] => 56
                                          [2] => 40
                                          [3] => 60
                                          [4] => 66
                                          [5] => 68
                                          [6] => 71
                                          [7] => 73
                                          [8] => 107
                                          [9] => 110
                                          [10] => 111
                                          [11] => 113
                                          [12] => 117
                                          [13] => 125
                                          [14] => 120
                                      )
      
                                  [99] => Array
      								(
      								)