We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28788
    • 79 Posts
    I have an old site running Evo that needs PHPThumb to resize images. I grabbed the version from the repository but it isn't working properly. I'm using the plugin for various reasons and all it does is leave me with empty image tags.

    No cache files are created an no errors are thrown. I'm not sure how to go about searching for the problem without any error messages.

    Anyone have any experience, or ideas?

    Thanks!
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      What version of phpthumb did you deploy? I know http://modx.com/extras/package/phpthumbpackage0.3.2 should work with PHP 5.3.x.
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 28788
        • 79 Posts
        I think, that one. But I'll give it another try just in case I had an old one.
          • 28788
          • 79 Posts
          Yeah that's the one I'm using now, same problem, all images removed.

          Could it be that Modx is in a sub directory? Would the config need to be changed in that case?
            • 28788
            • 79 Posts
            Nevermind, it was me all along. For some reason my snippet was named incorrectly.

            Thanks anyway AMDBuilder, great plugin.
              • 1343 ☆ A M B ☆
              • 2,213 Posts
              Glad to hear you got the problem resolved!

              Happy MODXing smiley
                Patrick | Server Wrangler
                About Me: Website | Tweets |  MODX Hosting
                • 33998
                • 12 Posts
                I'm having trouble with an installation of MODX Evolution 1.0.4 and Phpthumb 0.3.3. Seems Phpthumb isn't compatible at all with PHP 5.4. I've tried installing the Phpthumb-package that is compatible with 5.3, but that's not enough.

                Does anybody know how to run Phpthumb 0.3.3. with PHP 5.4? Thanks!
                  • 37242 ☆ A M B ☆
                  • 339 Posts
                  I'd expect an error description smiley
                  What happens? What doesnt?
                  How does the snippe call look?
                  How does the source code of the html output look where the snippet output should appear?

                  Help us to understand and we help you to manage smiley

                  (btw: I would have opened a new topic for this issue and linked to it in twitter with the #modx hashtag. That makes it easier to notice and help)
                    • 33998
                    • 12 Posts
                    Sorry, didn't have access to error logs earlier, but I do now. This is what I get if I put the URL of the Pphpthumb-generated image (like 'http://www.<PRIVATE>.nl/image.php?src=assets/images/example.jpg&w=284&h=169&zc=1') in the address bar of the browsers

                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpThumb.php on line 38
                    
                    Strict Standards: Non-static method phpthumb_functions::ParseURLbetter() should not be called statically in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpThumb.php on line 172
                    
                    Strict Standards: Non-static method phpthumb_functions::ParseURLbetter() should not be called statically in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpThumb.php on line 176
                    
                    Strict Standards: Non-static method phpthumb_functions::CaseInsensitiveInArray() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.class.php on line 893
                    
                    Strict Standards: Non-static method phpthumb_functions::OneOfThese() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.class.php on line 2880
                    
                    Strict Standards: Non-static method phpthumb_functions::OneOfThese() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.class.php on line 2881
                    
                    Strict Standards: Non-static method phpthumb_functions::version_compare_replacement() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.class.php on line 2932
                    
                    Strict Standards: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.class.php on line 1217
                    
                    Strict Standards: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.class.php on line 1234
                    
                    Strict Standards: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.class.php on line 3743
                    
                    Strict Standards: Non-static method phpthumb_functions::gd_is_bundled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.class.php on line 3759
                    
                    Strict Standards: Non-static method phpthumb_functions::gd_version() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.class.php on line 3410
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                    Strict Standards: Non-static method phpthumb_functions::FunctionIsDisabled() should not be called statically, assuming $this from incompatible context in C:\HostingSpaces\<PRIVATE>\wwwroot\assets\snippets\phpthumb\phpthumb.bmp.php on line 737
                    
                      • 27708 MODX Staff
                      • 2,502 Posts
                      Martijn1981,

                      This is a deficiency in phpThumb and has nothing to do with MODX however as phpThumb ships with Revo, Shaun has done work on it there. You can see in the link the changes needed to make phpThumb work properly on PHP 5.4.x: https://github.com/modxcms/revolution/commit/d6fb64035ee2af9dab1d526d310b344447f6e0c3

                      Unfortunately phpThumb is not maintained by it's author and hasn't seen a release since 2011.
                        Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub