We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38761
    • 12 Posts
    My provider confirmed that the php that runs on my system is PHP_CLI, but trough htacces i caould rename mij .php files to .php3 to make it run on PHP_CGI (suPHP) 5.3.

    Imagemagick is not installed.
      • 38761
      • 12 Posts
      So i tried the default gallery snippets:

      http://vantellingen.sethpoint.nl/gallery-test.html
      http://rtfm.modx.com/display/ADDON/Gallery.Setting+Up+Your+Gallery

      Looking at the gallery requirements:

      MODx Revolution 2.0.0-rc-2 or later
      PHP5 or later

      I don't think that imagemagick is required? And as i stated before, it looks like the thumbnails are created, but not used again..... :/
        • 36624
        • 535 Posts
        hello, install phpthumof package then try this in your thumb chunk :

        replace: [-[+thumbnail]] (remove the "-"!!)

        with: [-[+image_absolute:phpthumbof=`w=50&h=50&zc=1`]] (remove the "-"!!)

        for me it load lighting speed now on 2.2.1 with session-less too (http://develop.modx.com/blog/2012/04/05/new-for-2.2.1-session-less-contexts/)
          CTRL+SHIFT+U - Clear Cache
          CTRL+SHIFT+H - Hiding Heft Panel
          CTRL+SHIFT+N - Fast Create Resource
          CTRL+ALT+P - Preview Recource (in edit resorce window)
          CTRL+ALT+S - Save
          • 38761
          • 12 Posts
          Thank you very much!
          Now the first time this page is loaded takes very long, but after that the page is cached and served quickly.
          What was the problem with the previous way?
            • 35545
            • 35 Posts
            Emmanuel... if you had tits i would kiss you!!! Thanx man. Struggled with this issue for a long time. Think something to do with the PHP configuration that my provider uses. Tried phpthumbof, could not get result but your did the trick. What does the zc=1 do? I'm also curious what causes the problem that makes gallery continiously make thumbnails?
              • 36624
              • 535 Posts
              Heh Enjoy ! Happy to help. Honestly i don't know the reason of all this as gallery use phpthumbof too !! smiley) maybe something with the check of existing files..

              Yes the page is very slow to load the first time but when the cache is built it's done. With this technique, i load 15 galleries with more then 10 images each "on the same page" and i get 0 sec loading page smiley

              happy modx'in !
                CTRL+SHIFT+U - Clear Cache
                CTRL+SHIFT+H - Hiding Heft Panel
                CTRL+SHIFT+N - Fast Create Resource
                CTRL+ALT+P - Preview Recource (in edit resorce window)
                CTRL+ALT+S - Save