Here's the backstory: I am helping someone transfer their website to a new hosting company. I recently uploaded all of the files from one host to another, which required me to also import the database.
The website itself is running perfectly fine, except for one minor problem: the ability to upload files doesn't work anymore.
The error I'm getting on the site itself is "Error Uploading Photo: Problem in Resizing". I didn't write the code myself and I'm not the best at debugging or writing PHP, I'm more of an HTML/CSS coder.
The errors are coming from these lines:
ImageCopyResized($destimg,$srcimg,0,0,0,0,$new_width,$new_height,ImageSX($srcimg),ImageSY($srcimg)) or $this->errmsg="Problem in resizing";
if (isset($_FILES['photo_upload']) && ($_FILES['photo_upload']['size'] > 0)){
.
.
.
if ($pic->isError() == false){
$success = 1;
}
else{
$msg .= "Error uploading photo: " .$pic->getErrorMessage() . "<br/>";
$_REQUEST['photo_url'] = ""; //clear since it failed
}
}
I'm trying to figure out how I should go about debugging this. I did a var_dump() of a few of the variables ($destimg, $srcimg): resource(7) of type (Unknown) bool(false)
A colleague that I work with said to try resetting the permissions in the FTP for the folders to allow "Public Write" and that should fix it, but no success with that fix.
As a side note, don't know if it's relevant, the "information_schema" database never imported via phpMyAdmin.