-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
just returns original image? #20
Comments
I'm having the same problem. print_r($image) is returning an array with only three elements: the original image url, and the width and height. It's missing the ''type'' value. I tried using the built-in error reporting, but it is not reporting any errors. Even when I intentionally break the URL, it doesn't report any error. I had it working earlier, it just broke all of a sudden. |
I ran into this issue and it worked for me when I commented out lines 226 to 229 and lines 315 to 319 on resize.php. If your installation matches the first condition though you would likely comment out lines 91 to 94 and 140 to 144 (although I haven't tested this). The problem that I ran into was that the images were not in the media library so when that happens the normal sized image is returned from the matthewruddy_image_resize function. When you comment out those lines though it forces a resized image to be created. |
Though, it is late, but i have found a solution, hope this will help others. The problem is on these lines (53-55) Actually $_SERVER['DOCUMENT_ROOT'] should return something like this '/home/public_html/', but sometime on some server misconfiguration it returns like this '/usr/local/apache/htdocs', then it does not work on the file system and thus the image file is not found by wordpress. So we get wp error on this block(104-107), thus returns only the url, width, height.
|
The text was updated successfully, but these errors were encountered: