as reported by AdaptiveTheme #1711746: Fatal error after updating from 3.x to 3.0 modules do not set array to their theme classes.

The line in .module is probably causing this error as the only node with an embedded image is not editable.

$image['link']['attributes']['class'] = $settings['class'];

this probably must be (I'm not sure where this $settings comes from)

$image['link']['attributes']['class'] = array($settings['class']);

See patches used by
- media: #1722146: Media filter is using string instead of array for the class attribute
- user badges: #1748394: Class attributes should be an array, not a string

Comments

rennevat’s picture

Also using most current release of Adaptivetheme 7.x-3.1 and receiving message: Recoverable fatal error: Argument 1 passed to image_resize() must be an instance of stdClass, boolean given, called in sites/all/modules/image_resize_filter/image_resize_filter.module on line 499 and defined in image_resize() (line 279 of includes/image.inc). Also unable to access admin content and dashboard pages: The website encountered an unexpected error. Please try again later.

Resolves when disabling Image Resize Filter module.

filburt’s picture

I have the same problem.

Thanks for support!

Filburt

filburt’s picture

Ok, figured out, that the uploaded file was corrupted in my case...

Filburt

endiku’s picture

Same exact issue as #1 down to the letter. Temporarily had to disable the Image Resize Filter module.

Try this out as a solution.
Edit your image_resize_filter.module
at line 499, before the call to Image_resize()
add

		$error = "/home/YOUR_DIR/resize_image_error.txt";
		$fhandle = fopen($error, 'a') or die("can't open file");
		fwrite($fhandle, $image['local_path']."\n");
		fclose($fhandle);

If you are on Windows change that location respectively.

This will hopefully write whatever is causing your issue into a file named resize_image_error.txt. For me it turned out that a user had uploaded an jpeg which was definitely not a jpeg. Since the error reporting just states that a the image_resize function was passed incorrect information but not what that information was exactly, you have to do a little of your own detective work.

After I found the node and image which was causing the issue then I was able to replace that image with a real one and everything went back to working as normal. You can use the module again. You have to have the module enabled and then click on content to produce the information you need into the file. Basically it is executing this file write code right before the error happens. Image['local_path'] will give you the name of that file. Then you can search for it in your database and get the node it's on.

adammichaelroach’s picture

This worked great.

ar-jan’s picture

Issue summary: View changes

The problem reported in comment #1 "Argument 1 passed to image_resize() must be an instance of stdClass" has a workaround/patch in #1933342: Images with wrong extension cause "recoverable fatal error". That looks to be a different problem than the original report.