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

    Nothing has changed on the server as far as i know but for some reason i can no longer upload images. When i do i get an error:

    Error: getimagesize(assets/images/ImageName.jpg) [function.getimagesize]: failed to open stream: No such file or directory
    Error type/ Nr.: Warning - 2
    File: /home/manager/includes/document.parser.class.inc.php(770) : eval()’d code
    Line: 82

    Line 82 is: $header= ’Refresh: 0;URL=’ . $url;

    I can add images to a page that are already in the image resource browser window and i can upload new images and see them in the resource browser but i can’t see the new images when adding to a page and i get the above error.
    It seems like any new images aren’t being uploaded correctly. Permissions on assets/images are fine...could it be something to do with the manager/media/browser directory?

    Anyone know what’s happening here?

    Cheers
      www.9thwave.co.uk
         WEB | DESIGN | PRINT
      • 36549
      • 572 Posts
      still no joy on this. i can ftp the images to the assets/images directory but not via the manager!!!
      I’m using modx 1.0 by the way.

      Anyone?
        www.9thwave.co.uk
           WEB | DESIGN | PRINT
        • 22303 MODX Staff
        • 10,725 Posts
        Line 82 of what Snippet? That error does not reference line 82 of the document parser, but of a Snippet being executed on the front-end.
          • 36549
          • 572 Posts
          Hi,

          That line 82 is from manager/includes/document.parser.class.inc.php
          ...i just assumed that was what it was referencing...is that right?

          Thanks
            www.9thwave.co.uk
               WEB | DESIGN | PRINT
            • 22303 MODX Staff
            • 10,725 Posts
            No. The errors indicates line 770 of document.parser.class.inc.php:
              File:    /home/manager/includes/document.parser.class.inc.php(770) : eval()'d code    
              Line:    82

            Which is the code that eval()’s Snippets. So it’s line 82 of a specific Snippet which is causing this error, and that’s where it needs to be addressed.
              • 36549
              • 572 Posts
              Oh right.
              Well the only snippet that it could be will be the pixHandlerDOM using GaneshXL’s minimalist image gallery.

              the code is:
              // Get new sizes
              		list($width, $height) = getimagesize($filename);
              		$newwidth = $width * $percent;
              		$newheight = $height * $percent;
              
              		$thumb = imagecreatetruecolor($newwidth, $newheight);
              		$source = imagecreatefromjpeg($filename);
              		imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
              		imagejpeg( $thumb, $thumbName, $thumbQuality);
              		imagedestroy($thumb);
              
              	}


              with line 82 being:
              list($width, $height) = getimagesize($filename);


              Although this has not been changed since first installation and everything was working up until a couple of days ago...any idea what this could be?
                www.9thwave.co.uk
                   WEB | DESIGN | PRINT