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

    I'm having issues with a website of mine where i'm unable to upload images via the Manager. I get an error when trying to upload:
    "File extension `jpg` is not permitted."
    This is the same for gif files.
    I can ftp the files so it's not a permissions issue. I've checked all "upload_..." system settings and all contain the image extensions.

    This issue appears to have started happening since i made a change to the .htaccess to force https...but this could just be coincidence.
    I've just updated to version 2.6.0 but the problem is still there.

    Can anyone make sense of the error log below?

    [2017-11-15 13:35:56] (ERROR @ /home/mywebsite/public_html/core/model/modx/sources/modfilemediasource.class.php : 1093) PHP warning: Division by zero
    [2017-11-15 13:35:56] (ERROR @ /home/mywebsite/public_html/core/model/modx/sources/modfilemediasource.class.php : 1097) PHP warning: Division by zero
    [2017-11-15 13:35:58] (ERROR @ /home/mywebsite/public_html/core/model/phpthumb/modphpthumb.class.php : 121) phpThumb was unable to generate a thumbnail for: /home/mywebsite/public_html/core/cache/phpthumb/rspca-craven.org.uk__srcda57e6ae49510277ca8823593f30fec0_par7e19008dd93a40e106e6660a2ea17553_dat1465984881.png
    [2017-11-15 13:35:58] (ERROR @ /home/mywebsite/public_html/core/model/phpthumb/modphpthumb.class.php : 133) Error outputting thumbnail:
    OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 618
    [2017-11-15 13:36:08] (ERROR @ /home/mywebsite/public_html/core/model/phpthumb/modphpthumb.class.php : 121) phpThumb was unable to generate a thumbnail for: /home/mywebsite/public_html/core/cache/phpthumb/rspca-craven.org.uk__srcda57e6ae49510277ca8823593f30fec0_par7e19008dd93a40e106e6660a2ea17553_dat1465984881.png
    [2017-11-15 13:36:08] (ERROR @ /home/mywebsite/public_html/core/model/phpthumb/modphpthumb.class.php : 133) Error outputting thumbnail:
    OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 618
    [2017-11-15 13:36:40] (ERROR in resource 1 @ /home/mywebsite/public_html/core/model/modx/modparser.class.php : 1371) Bad link tag `[[~]]` encountered
    [2017-11-15 13:36:40] (ERROR in resource 1 @ /home/mywebsite/public_html/core/model/modx/modparser.class.php : 1371) Bad link tag `[[~]]` encountered
    


    Thanks for any help

    Janice

      www.9thwave.co.uk
         WEB | DESIGN | PRINT
      • 3749
      • 24,544 Posts
      Make sure the entry in the upload_files and upload_media System Settings doesn't have a dot and is in the same case as the actual file extension.

      You may need to manually delete the files in the core/cache directory before your setting changes take effect.

      It's possible (but unlikely) that your host is restricting those uploads.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 36549
        • 572 Posts
        OK it's started working again
        I added the image extensions to all the "upload_" instances in System Settings, manually cleared the cache and it's started working.
        I had cleared the cache loads of times before too but maybe not quite enough.
        Thanks @BobRay for your seemingly endless support:-)
          www.9thwave.co.uk
             WEB | DESIGN | PRINT