We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    This is an auto-generated topic for Gallery 1.0.2-rc1 by splittingred.

    Brief Description:

    Gallery is a dynamic Gallery Extra for MODx Revolution. It allows you to quickly and easily put up galleries of images, sort them, tag them, and display them in a myriad of ways in the front-end of your site.
    New in 1.0.2

    • Fix issue where Gallery TV albums tree loaded page when clicking on a node

    New in 1.0.1

    • [#54] Added filepath placeholder for getting absolute path of an image, fileurl for absolute URL
    • [#12] Make left-click do update-album in mgr tree
    • Add additional system setting checks for phpthumb config options.
    • *Many* caching improvements to phpthumb-generated thumbnails
    • Added gallery.thumbs_prepend_site_url setting for environments having issues with thumbnails
    • Fixed bugs with HTML in item thumbs, urls when xhtml_urls is true
    • Added French translation

    See the official documentation here:
    http://svn.modxcms.com/docs/display/ADDON/Gallery
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 14524
      • 8 Posts
      I’ve installed this plugin and I’ve been able to upload images but thumbnails aren’t being generated. They come up as question marks in both the admin area and the gallery page. I’ve attached the output file of the install and a couple of screen shots.

      Do I need another plugin?
        • 16366
        • 6 Posts
        Hi,

        I’m running MODx 2.0.4-pl2 with Gallery 1.0.1 rc2. When I try to update to Gallery 1.0.2-rc1, the installation process is stuck:
        Console running...
        Attempting to install package with signature: gallery-1.0.2-rc1
        Package found...now preparing to install.
        Grabbing package workspace...
        Workspace environment initiated, now installing package...
        Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 5 [event] => OnTVInputRenderList ) 
        Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 5 [event] => OnTVOutputRenderList ) 
        Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 5 [event] => OnTVOutputRenderPropertiesList ) 
        Skipping vehicle object of class modPluginEvent (data object exists and cannot be upgraded); criteria: Array ( [pluginid] => 5 [event] => OnDocFormPrerender ) 
        Attempting to preserve files at /mnt/web8/22/46/51852746/htdocs/modx_revo/assets/components/gallery into archive /mnt/web8/22/46/51852746/htdocs/modx_revo/core/packages/gallery-1.0.2-rc1/modCategory/4515ee1087609ed093d38dc273f158b6.0.preserved.zip


        In the MODx error log, I see the following message:
        [2010-12-27 09:33:11] (ERROR @ /mnt/web8/22/46/51852746/htdocs/modx_revo/core/xpdo/compression/xpdozip.class.php : 142) PHP warning: ZipArchive::extractTo() [<a href='ziparchive.extractto'>ziparchive.extractto</a>]: File exists
        [2010-12-27 09:33:11] (ERROR @ /connectors/workspace/packages.php) Could not unpack package /mnt/web8/22/46/51852746/htdocs/modx_revo/core/packages/gallery-1.0.2-rc1.transport.zip to /mnt/web8/22/46/51852746/htdocs/modx_revo/core/packages/. SIG: gallery-1.0.2-rc1
        


        Here’s the system information:
        SunOS localhost 5.10 Generic_139556-08 i86pc
        PHP Version 5.2.14
        MySQL Support	enabled
        Client API version 	5.0.91 
        PDO Driver for MySQL, client library version	5.0.91


        Could you please help me with this problem?


        Update

        I found out that MODx creates the file 4515ee1087609ed093d38dc273f158b6.0.preserved.zip with a size of 20M, then it is stuck. The directory assets/components/gallery contains 2149 files with a total size of 247M.

        I copied my MODx installation to a test system running Ubuntu 10.10 and I was able to update Gallery without any problems. Could the problem be caused my some PHP settings? I also noticed on my Ubuntu system that MODx keeps the file 4515ee1087609ed093d38dc273f158b6.0.preserved.zip after the update. Since my Gallery content is quite large, I would like to know if there is a way to clean up the old versions of Gallery after the update has finished successfully?

          • 5214
          • 8 Posts
          Very cool and easy to set up!
          Where do I disable or comment out the download original link?

            • 25551 ☆ A M B ☆
            • 1,231 Posts
            I was wondering about the caching of the images with phpthumb. I have been getting high cpu usage when using phpthumb and read that even if the image is cached it still has run the script to find that out. Has gallery got the option to check if a file exits before running the phpthumb script to see if I can reduce the cpu load?
              Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
              AugmentBLU - MODX Partner

              BLUcart - MODX Revolution E-Commerce & Shopping Cart
              • 31471
              • 206 Posts
              Quote from: jobatkin at Oct 16, 2010, 12:15 AM

              One wishlist item for me is a way to say which image from a certain gallery should be used as the thumbnail when listing all of the galleries.
              One vote for this here!
                • 10257
                • 55 Posts
                Gallery has problems, when having a description with " or &quot;. If you have a " you can upload the picture, but when you use the description it is not encoded and creates a wrong title field in my case.
                <div class="[[+cls]]">
                    <a href="[[+image]]" rel="prettyPhoto[[[+album]]]" title="[[+description]]">
                        <img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+name]]" />
                    </a>
                </div>​

                You can see this in the first picture of http://www.efflorescos.de/news/2008/31.05./01.06.2008.html

                When using &quot; the image upload will never stop. But when entering manager again, the image is part of the gallery.
                  • 1423
                  • 24 Posts
                  Hi

                  I just installed the gallery transport package on Revo 2.0.7. The installation went fine, but then in the frontend the following error appeared:

                  Fatal error: Call to undefined method modResponse::addLangTopic() in C:\xampp\htdocs\mysite\core\cache\elements\modplugin\17.include.cache.php on line 28

                  I reinstalled it with the same result.

                  After I commented this line out in the plugin, frontend access worked again:

                  * assign gallery lang to JS */
                  // $modx->response->addLangTopic(’gallery:tv’);

                  ... but then in my GalleryItem Custom TV everything is more or less blank and without function.

                  I thought first, it will only need a german version of the language files, so I copied the english one and named it "de", but this didn’t help either. Then I changed the manager and frontend language back to english. Still I am getting only this error message in the frontend.

                  Any idea?
                    • 28215
                    • 4,149 Posts
                    Thomas,

                    That sounds like your Revo upgrade did not fully upgrade. Reupload all the files, and try again. Try the traditional distribution rather than the advanced.
                      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                      • 1423
                      • 24 Posts
                      Thanks for quick answer. I reinstalled revo 2.0.7 and Gallery again.
                      Still the error remained.
                      Then I uninstalled a few extras, when I uninstalled Upfront Editor, the Fatal Error was gone.

                      Anyone else has this combination running successfully ?

                      PS: I will give them a note anyway on the upfront website.