Hello everyone,

After updating to newest version, suddenly images wouldn't show after upload & existing images wouldn't display anymore. When I would execute the url to the image directly I got PHP error:
Fatal error: func_get_args(): Can't be used as a function parameter in (path_to_my_site)/sites/all/modules/ais/ais.module on line 119

I fixed this by altering ais.module file with:
- $return = call_user_func_array('image_style_deliver', func_get_args());
+ $func_args = func_get_args();
+ $return = call_user_func_array('image_style_deliver', $func_args);

I don't have the time to commit on Git and I didn't test it on other installations. That's why it needs review.
Worked for me though.

Kind regards

Comments

helonaut’s picture

Assigned: helonaut » Unassigned
spotzero’s picture

Strange, I didn't see that problem in my tests. Which version of PHP are you using?

spotzero’s picture

Priority: Major » Critical

Damn, looks like the code in 1.5 won't work with PHP <5.3:

From http://php.net/manual/en/function.func-get-arg.php

Changelog

Version Description
5.3.0 This function can now be used in parameter lists.

This is a pretty serious issue so I'll fix, re-test, and roll another release.

spotzero’s picture

Status: Needs review » Fixed

Tested and release AIS 1.6

helonaut’s picture

Thank you very much for fast fix !

liliplanet’s picture

Thank you spotzero, will revert as soon as possible :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.