Environment: Joomla 4.3.4 / PHP 8.1.23 / Apache 2.4.39 / MariaDB 10.3.39
Issue: When trying to import a template developed on an 8.6.1 instance into an 8.7.3 instance of ACYM Starter, I'm getting the following error:
Cannot access offset of type string on string
After switching Error Reporting to Maximum on Joomla 4, the following details are shown:
Cannot access offset of type string on string
.../administrator/components/com_acym/classes/mail.php:597
592
593 private function uploadTemplate()
594 {
595 $importFile = acym_getVar('none', 'uploadedfile', '', 'files');
596
597 $fileError = $importFile['error'];
598 if ($fileError > 0) {
599 switch ($fileError) {
600 case 1:
601 acym_enqueueMessage(acym_translation('ACYM_FILE_UPLOAD_ERROR_1'), 'error');
602
AcyMailing\Classes\MailClass->uploadTemplate() AcyMailing\Classes\MailClass->doupload() AcyMailing\Controllers\MailsController->doUploadTemplate() AcyMailing\Libraries\acymController->call() require_once() Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() Joomla\CMS\Component\ComponentHelper::renderComponent() Joomla\CMS\Application\AdministratorApplication->dispatch() Joomla\CMS\Application\AdministratorApplication->doExecute() Joomla\CMS\Application\CMSApplication->execute() require_once()
AcyMailing\Classes\MailClass->uploadTemplate()