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
Comment #1
helonaut commentedComment #2
spotzero commentedStrange, I didn't see that problem in my tests. Which version of PHP are you using?
Comment #3
spotzero commentedDamn, 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
This is a pretty serious issue so I'll fix, re-test, and roll another release.
Comment #4
spotzero commentedTested and release AIS 1.6
Comment #5
helonaut commentedThank you very much for fast fix !
Comment #6
liliplanet commentedThank you spotzero, will revert as soon as possible :)