Magento 2.3.0 – Fix ‘A Technical Problem with the Server Created an Error’ When Uploading Logo Image

magento2magento2.2magento2.3magento2.3.0php-7.2

I'm using Magento 2.3.0, with php 7.2 version, on a ubuntu os.
Everything looks working fine, but when I try to go into Magento backend, Content – Design/Configuration – Header, and I try to upload the logo image, I get this:

A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later.

I have tried already to change the user password, to check the index.php for any echo code, tried also to upgrade, compile, deploy, reindex, clean cache, but nothing, I still get this error..

Best Answer

This is the bug in the Magento 2.3 version, but you can fix the issue by the change in the below code.

You can go to this file: /vendor/magento/module-theme/view/adminhtml/ui_component/design_config_form.xml and then remove "fileUploader" and replace it with "imageUploader".

Please see below for more information.

    <collapsible>true</collapsible>
                <label translate="true">HTML Head</label>
            </settings>
            <!-- Remove this code -->
            <!-- <field name="head_shortcut_icon" formElement="fileUploader">-->

            <!-- Add this code -->
            <field name="head_shortcut_icon" formElement="imageUploader">
                <settings>
                    <notice translate="true">Not all browsers support all these formats!</notice>
                    <label translate="true">Favicon Icon</label>

                <collapsible>true</collapsible>
                <label translate="true">Header</label>
            </settings>
            <!-- Remove this code -->
            <!-- <field name="header_logo_src" formElement="fileUploader"> -->

            <!-- Add this code -->
            <field name="header_logo_src" formElement="imageUploader">
                <settings>
                    <label translate="true">Logo Image</label>
                    <componentType>imageUploader</componentType>

Please check and let me know in case of any issue.

Related Topic