We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10713
    • 41 Posts
    @Oleg:

    I will simply change this line:

    if (strpos($filename,"phpthumb") == false) {


    to this line:

    if (strpos($filename,"?") == false) {


    We can take for granted that 99% of all images with a "?" in the filename are automatically rendered, right?
      • 16702 ☆ A M B ☆
      • 536 Posts
      i get this error:

      [2011-07-31 20:39:05] (ERROR @ /home/rtrt/public_html/core/cache/includes/elements/modplugin/2.include.cache.php : 57) PHP warning: getimagesize(http://www.domain-dotcom.com//assets/components/phpthumbof/cache/7be4e7e68064a5a31156e94c40972211.68b74806e459e38b9769b637517807f4.jpg) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found


      how can i fix this?
        palma non sine pulvere
        • 10713
        • 41 Posts
        @Kristalin:

        Please try this:

        Go to the plugin and change the following lines:

        // is file already cached?
          if (strpos($filename,"?") == false) {


        to the following lines:

        // is file already cached?
          if (strpos($filename,"?") == false && strpos($filename,"phpthumbof/cache") == false) {


        Does the error still appear?
          • 16702 ☆ A M B ☆
          • 536 Posts
          Hello, gerritvanaaken,


          noe i have still this error:

           [2011-08-03 12:22:23] (ERROR @ /home/dfdf/public_html/core/cache/includes/elements/modplugin/2.include.cache.php : 57) PHP warning: getimagesize(/home/isaholi/public_html/assets/images/some/P1160526.jpg) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory
          
            palma non sine pulvere
            • 10713
            • 41 Posts
            @Kristalin: Hmm, is this server path correct?

            /home/isaholi/public_html/assets/images/some/P1160526.jpg


            If it is correct and does still not work, maybe we must go over external access... Could you change the $pre variable? Instead of

            $pre = $config['base_path'];


            try this:

            $pre = "http://your-domain.de/"
              • 26681 MODX Staff
              • 123 Posts
              Great plugin, in theory. I love the idea and really appreciate your work, but AutoFixImageSize has been known to cause server load spikes to dangerous levels in at least two installations. This has potentially site-breaking consequences. One of my sites triggered an auto-suspend of the account, for example, and upon testing it was because of a load spike that occurred from AutoFixImageSize.

              This is version 1.0.0-pl of the Snippet, MODX 2.2 rc3.
                [sepiariver.com] (https://sepiariver.com/)
                • 33974
                • 156 Posts
                @Sepia River: This is true. I think it shouldn't be used for production environment. It causes lots of errors about missing cached phpthumb files etc. – never had it running without problems (from performance view) on a production level.

                BUT: It's very useful for development as you can insert large images and then for production you can use the generated images from AutoFixImageSize plugin. That's how I use it.
                  • 34020
                  • 18 Posts
                  I'm getting the following error:

                  <br />
                  <b>Warning</b>:  getimagesize(/home/allpr7/public_html/data:image/gif;base64) [<a href='function.getimagesize'>function.getimagesize</a>]: failed to open stream: No such file or directory in <b>/home/allpr7/public_html/core/cache/includes/elements/modplugin/13.include.cache.php</b> on line <b>59</b><br />


                  Any ideas how to fix it?
                    • 17959 ☆ A M B ☆
                    • 57 Posts
                    Magnatron [Maarten Wolzak] Reply #59, 12 years ago
                    Hi Gerrit,

                    To be able to have the AutoFixImageSize plugin ignore certain contexts, I request you to put in the following right at the beginning (in case of an update):

                    // Check for ignorable contexts
                    if(isset($ignore_context) && in_array($modx->resource->context_key, explode(",",$ignore_context))) return;


                    Then one can name those contexts in the plugin properties.

                    Does that make sense?

                    Maarten