You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing an issue where I cannot upload product pictures. Even in the system log I can't find any hint pointing to the root cause. The only thing I'm getting is a CRITICAL: Uncaught PHP Exception ErrorException which tells me that the Isotope\Widget\MediaManager class tries to access an array at an undefined position:
[2023-06-24T11:36:47.450658+02:00] request.CRITICAL: Uncaught PHP Exception ErrorException: "Warning: Undefined array key 0" at /var/www/vhosts/#########/shop/vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Widget/MediaManager.php line 174 {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key 0 at /var/www/vhosts/#########//shop/vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Widget/MediaManager.php:174)"} []
I guess in my case the $varInput isn't an array cause something goes wrong in $varInput = $objUploader->uploadTo($uploadFolder);. Thus it shows that generic error message defined by $GLOBALS['TL_LANG']['MSC']['mmUnknownError']. However, after that the code still tries to access the first position of $varInput which is obviously not working.
Overall, I guess it would be helpful if that caught exception would be logged somehow. Otherwise I have no chance to identify the root cause at all.
Contao: 4.13.25
Isotope: 2.8.14
PHP: 8.1.19
The text was updated successfully, but these errors were encountered:
I'm facing an issue where I cannot upload product pictures. Even in the system log I can't find any hint pointing to the root cause. The only thing I'm getting is a
CRITICAL: Uncaught PHP Exception ErrorException
which tells me that theIsotope\Widget\MediaManager
class tries to access an array at an undefined position:The relevant implementation part looks like this:
I guess in my case the
$varInput
isn't an array cause something goes wrong in$varInput = $objUploader->uploadTo($uploadFolder);
. Thus it shows that generic error message defined by$GLOBALS['TL_LANG']['MSC']['mmUnknownError']
. However, after that the code still tries to access the first position of$varInput
which is obviously not working.Overall, I guess it would be helpful if that caught exception would be logged somehow. Otherwise I have no chance to identify the root cause at all.
Contao: 4.13.25
Isotope: 2.8.14
PHP: 8.1.19
The text was updated successfully, but these errors were encountered: