[Solved] How to fix “Call to a member function xy on array” without using foreach?
You can try with reset array function of PHP to get first element of array $imageData = reset($image); echo $imageData->getData(“file”); 0 solved How to fix “Call to a member function xy on array” without using foreach?