We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40807
    • 2 Posts
    Image Thumbnails not Showing in Resource Browser after update to 2.3
    i have checked in modx cloud and my site. In modx browser not showing preview image. Any idea ? thankyou!
      • 40807
      • 2 Posts
      Solved:

      in file dstr core/model/phpthumb/phpthumb.class.php

      double code

      function __destruct() {
      	$this->purgeTempFiles();
      }
      
      // public:
      function purgeTempFiles() {
      	foreach ($this->tempFilesToDelete as $tempFileToDelete) {
      		if (file_exists($tempFileToDelete)) {
      			$this->DebugMessage('Deleting temp file "'.$tempFileToDelete.'"', __FILE__, __LINE__);
      			@unlink($tempFileToDelete);
      		}
      	}
      	$this->tempFilesToDelete = array();
      	return true;
      }


      delete one copy, and all work nice !
        • 20332
        • 13 Posts
        I have been struggling with this and with not having the thumbnails appearing on my resource page.

        Searched for solutions and came across this and it worked. Well spotted darklelik.

        This needs correcting in the download.
        • Did you upgrade to 2.3.1 as I believe this issue has been resolved. If this issue is still present could you open an issue on Github so it can be resolved.
            Patrick | Server Wrangler
            About Me: Website | TweetsMODX Hosting
            • 12410
            • 353 Posts
            I've the issue on Revo 2.3.2 and it ain't the code duplication issue. What else could it be? Server environmnet or mod_security2 maybe? Not getting rules triggered or server errors