Jeremy Driscoll
Member
- Affected version
- XenForo Media Gallery 2.0.5
I am running XenForo Media Gallery 2.0.5 and getting the following error when users are trying to upload an image:
Stack Trace:
ErrorException: [E_WARNING] json_encode(): Invalid UTF-8 sequence in argument in src/XF/Mvc/Entity/ValueFormatter.php at line 97
XF::handlePhpError()
json_encode() in src/XF/Mvc/Entity/ValueFormatter.php at line 97
XF\Mvc\Entity\ValueFormatter->encodeValueForSource() in src/XF/Mvc/Entity/Manager.php at line 721
XF\Mvc\Entity\Manager->encodeValueForSource() in src/XF/Mvc/Entity/Entity.php at line 1396
XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1135
XF\Mvc\Entity\Entity->save() in src/addons/XFMG/Service/Media/TempCreator.php at line 87
XFMG\Service\Media\TempCreator->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 40
XFMG\Service\Media\TempCreator->save() in src/addons/XFMG/Attachment/Media.php at line 140
XFMG\Attachment\Media->onNewAttachment() in src/XF/Service/Attachment/Preparer.php at line 225
XF\Service\Attachment\Preparer->insertTemporaryAttachment() in src/XF/Service/Attachment/Preparer.php at line 17
XF\Service\Attachment\Preparer->insertAttachment() in src/XF/Attachment/Manipulator.php at line 171
XF\Attachment\Manipulator->insertAttachmentFromUpload() in src/XF/Pub/Controller/Attachment.php at line 88
XF\Pub\Controller\Attachment->actionUpload() in src/XF/Mvc/Dispatcher.php at line 249
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 89
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1931
XF\App->run() in src/XF.php at line 329
XF::runApp() in index.php at line 13
Could my server environment be causing this?
Server environment report:
You have only the minimum required PHP version. Future versions of XenForo will require a higher minimum PHP version of 5.6.0. Some features in future versions of XenForo will require a minimum PHP version of 7.1.0.
PHP version 5.4.45
MySQL version 5.6.41
Server software N/A
PHP post_max_size 64M
PHP upload_max_filesize 64M
PHP max_input_vars 1000
PHP max_execution_time 30
cURL version 7.19.7
SSL version NSS/3.27.1
Suhosin enabled No
UTC timezone Yes
Imagick support Yes
EXIF support Yes
GZip support Yes
mbstring support Yes
Stack Trace:
ErrorException: [E_WARNING] json_encode(): Invalid UTF-8 sequence in argument in src/XF/Mvc/Entity/ValueFormatter.php at line 97
XF::handlePhpError()
json_encode() in src/XF/Mvc/Entity/ValueFormatter.php at line 97
XF\Mvc\Entity\ValueFormatter->encodeValueForSource() in src/XF/Mvc/Entity/Manager.php at line 721
XF\Mvc\Entity\Manager->encodeValueForSource() in src/XF/Mvc/Entity/Entity.php at line 1396
XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1135
XF\Mvc\Entity\Entity->save() in src/addons/XFMG/Service/Media/TempCreator.php at line 87
XFMG\Service\Media\TempCreator->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 40
XFMG\Service\Media\TempCreator->save() in src/addons/XFMG/Attachment/Media.php at line 140
XFMG\Attachment\Media->onNewAttachment() in src/XF/Service/Attachment/Preparer.php at line 225
XF\Service\Attachment\Preparer->insertTemporaryAttachment() in src/XF/Service/Attachment/Preparer.php at line 17
XF\Service\Attachment\Preparer->insertAttachment() in src/XF/Attachment/Manipulator.php at line 171
XF\Attachment\Manipulator->insertAttachmentFromUpload() in src/XF/Pub/Controller/Attachment.php at line 88
XF\Pub\Controller\Attachment->actionUpload() in src/XF/Mvc/Dispatcher.php at line 249
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 89
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1931
XF\App->run() in src/XF.php at line 329
XF::runApp() in index.php at line 13
Could my server environment be causing this?
Server environment report:
You have only the minimum required PHP version. Future versions of XenForo will require a higher minimum PHP version of 5.6.0. Some features in future versions of XenForo will require a minimum PHP version of 7.1.0.
PHP version 5.4.45
MySQL version 5.6.41
Server software N/A
PHP post_max_size 64M
PHP upload_max_filesize 64M
PHP max_input_vars 1000
PHP max_execution_time 30
cURL version 7.19.7
SSL version NSS/3.27.1
Suhosin enabled No
UTC timezone Yes
Imagick support Yes
EXIF support Yes
GZip support Yes
mbstring support Yes