cancel
Showing results for 
Search instead for 
Did you mean: 

Issue to add my logo on magento 2.5

Issue to add my logo on magento 2.5

Hello,

 

I want to change my logo, welcome text... on my website. Everytime I try to do so I get the following message "Something went wrong while saving this configuration: Area is already set".

 

I uploaded the last version of magento.

 

Any idea how to fix this bug?

 

Thanks!

 

Sharon

6 REPLIES 6

Re: Issue to add my logo on magento 2.5

Hi @clemence_benharbon

 

Well , as you mention that when you click on save button its showing something went wrong - so you need to check in var/log directory -  go to your var/log directory found exception.log from there

 

Open it and past that log over here - so its help us to troubleshoot the issue !

if issue solved,Click Kudos & Accept as Solution

Re: Issue to add my logo on magento 2.5

Hi Manthan,

 

Thank you for your reply, I think this is what you're looking for (I hope so Smiley Happy ):

 

[19-Jul-2018 12:46:40 UTC] PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php:384
Stack trace:
#0 /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<?xml version="...')
#1 /home/poykhyav/public_html/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): Magento\Framework\Config\Dom->__construct('<?xml version="...', Object(Magento\Framework\App\Arguments\ValidationState), Array, 'xsi:type', NULL)
#2 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(149): Magento\Framework\ObjectManager\Config\Reader\Dom->_createConfigMerger('Magento\\Framewo...', '<?xml version="...')
#3 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(130): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#4 /home/poykhyav/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(275): Magento\Framework\Config in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php on line 384
[19-Jul-2018 12:50:14 UTC] PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php:384
Stack trace:
#0 /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<?xml version="...')
#1 /home/poykhyav/public_html/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): Magento\Framework\Config\Dom->__construct('<?xml version="...', Object(Magento\Framework\App\Arguments\ValidationState), Array, 'xsi:type', NULL)
#2 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(149): Magento\Framework\ObjectManager\Config\Reader\Dom->_createConfigMerger('Magento\\Framewo...', '<?xml version="...')
#3 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(130): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#4 /home/poykhyav/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(275): Magento\Framework\Config in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php on line 384
[19-Jul-2018 08:59:45 America/New_York] PHP Fatal error: Uncaught Error: Call to undefined function Magento\Update\json_decode() in /home/poykhyav/public_html/update/app/code/Magento/Update/CronReadinessCheck.php:115
Stack trace:
#0 /home/poykhyav/public_html/update/app/code/Magento/Update/CronReadinessCheck.php(52): Magento\Update\CronReadinessCheck->checkPermissionsRecursively()
#1 /home/poykhyav/public_html/update/cron.php(19): Magento\Update\CronReadinessCheck->runReadinessCheck()
#2 {main}
thrown in /home/poykhyav/public_html/update/app/code/Magento/Update/CronReadinessCheck.php on line 115
[19-Jul-2018 09:03:24 America/New_York] PHP Fatal error: Uncaught Error: Call to undefined function Magento\Update\json_decode() in /home/poykhyav/public_html/update/app/code/Magento/Update/CronReadinessCheck.php:115
Stack trace:
#0 /home/poykhyav/public_html/update/app/code/Magento/Update/CronReadinessCheck.php(52): Magento\Update\CronReadinessCheck->checkPermissionsRecursively()
#1 /home/poykhyav/public_html/update/cron.php(19): Magento\Update\CronReadinessCheck->runReadinessCheck()
#2 {main}
thrown in /home/poykhyav/public_html/update/app/code/Magento/Update/CronReadinessCheck.php on line 115
[19-Jul-2018 13:04:18 UTC] PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php:384
Stack trace:
#0 /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<?xml version="...')
#1 /home/poykhyav/public_html/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): Magento\Framework\Config\Dom->__construct('<?xml version="...', Object(Magento\Framework\App\Arguments\ValidationState), Array, 'xsi:type', NULL)
#2 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(149): Magento\Framework\ObjectManager\Config\Reader\Dom->_createConfigMerger('Magento\\Framewo...', '<?xml version="...')
#3 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(130): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#4 /home/poykhyav/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(275): Magento\Framework\Config in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php on line 384
[19-Jul-2018 13:12:14 UTC] PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php:384
Stack trace:
#0 /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<?xml version="...')
#1 /home/poykhyav/public_html/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): Magento\Framework\Config\Dom->__construct('<?xml version="...', Object(Magento\Framework\App\Arguments\ValidationState), Array, 'xsi:type', NULL)
#2 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(149): Magento\Framework\ObjectManager\Config\Reader\Dom->_createConfigMerger('Magento\\Framewo...', '<?xml version="...')
#3 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(130): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#4 /home/poykhyav/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(275): Magento\Framework\Config in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php on line 384
[19-Jul-2018 13:15:20 UTC] PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php:384
Stack trace:
#0 /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<?xml version="...')
#1 /home/poykhyav/public_html/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): Magento\Framework\Config\Dom->__construct('<?xml version="...', Object(Magento\Framework\App\Arguments\ValidationState), Array, 'xsi:type', NULL)
#2 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(149): Magento\Framework\ObjectManager\Config\Reader\Dom->_createConfigMerger('Magento\\Framewo...', '<?xml version="...')
#3 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(130): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#4 /home/poykhyav/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(275): Magento\Framework\Config in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php on line 384
[19-Jul-2018 09:19:24 America/New_York] PHP Fatal error: Uncaught Error: Call to undefined function Magento\Update\json_decode() in /home/poykhyav/public_html/update/app/code/Magento/Update/CronReadinessCheck.php:115
Stack trace:
#0 /home/poykhyav/public_html/update/app/code/Magento/Update/CronReadinessCheck.php(52): Magento\Update\CronReadinessCheck->checkPermissionsRecursively()
#1 /home/poykhyav/public_html/update/cron.php(19): Magento\Update\CronReadinessCheck->runReadinessCheck()
#2 {main}
thrown in /home/poykhyav/public_html/update/app/code/Magento/Update/CronReadinessCheck.php on line 115
[19-Jul-2018 13:26:24 UTC] PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php:384
Stack trace:
#0 /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<?xml version="...')
#1 /home/poykhyav/public_html/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): Magento\Framework\Config\Dom->__construct('<?xml version="...', Object(Magento\Framework\App\Arguments\ValidationState), Array, 'xsi:type', NULL)
#2 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(149): Magento\Framework\ObjectManager\Config\Reader\Dom->_createConfigMerger('Magento\\Framewo...', '<?xml version="...')
#3 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(130): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#4 /home/poykhyav/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(275): Magento\Framework\Config in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php on line 384
[19-Jul-2018 13:30:07 UTC] PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php:384
Stack trace:
#0 /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('<?xml version="...')
#1 /home/poykhyav/public_html/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): Magento\Framework\Config\Dom->__construct('<?xml version="...', Object(Magento\Framework\App\Arguments\ValidationState), Array, 'xsi:type', NULL)
#2 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(149): Magento\Framework\ObjectManager\Config\Reader\Dom->_createConfigMerger('Magento\\Framewo...', '<?xml version="...')
#3 /home/poykhyav/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(130): Magento\Framework\Config\Reader\Filesystem->_readFiles(Object(Magento\Framework\Config\FileIterator))
#4 /home/poykhyav/public_html/vendor/magento/framework/App/ObjectManagerFactory.php(275): Magento\Framework\Config in /home/poykhyav/public_html/vendor/magento/framework/Config/Dom.php on line 384

Re: Issue to add my logo on magento 2.5

Hi @clemence_benharbon

 

Looking at your error log - it looks like DOM element is not installed on your server.

 

apt-get install php-xml
sudo apt-get install php5-dom

if you are using php7 then use below command :
sudo apt-get install php7-dom

Refer below links for more details  : 

 

https://community.magento.com/t5/Magento-2-x-Technical-Issues/PHP-Fatal-error-Uncaught-Error-Class-D...

 

https://magento.stackexchange.com/questions/105712/magento-2-0-2-installation-fatal-error-domdocumen...

 

Hope it helps

if issue solved,Click Kudos & Accept as Solution

Re: Issue to add my logo on magento 2.5

Dear Manthan,

 

Thanks for the helps. The DOM is now installed and I do not see anymore errors in my files but I still get the same message "Something went wrong while saving this configuration: Area is already set" when I try to change something on the header.

 

Any idea?

Re: Issue to add my logo on magento 2.5

Dear Manthan

 

I have an issue with my logo, I followed normal steps:
1. Magento Admin > Content > Configuration > [store] > Header > Logo Image [Upload]
2. Set Logo Image Width and Height, just fill in numbers, no need to use 'px'.
3. Clear Pearl Theme related cache.

 

But unfortunately even if I try to change the px the logo always looks big comparing to the page as you can see here: https://poykee.com/

 

Any idea how to fix this? Which pixel size to use for the logo?

 

Thanks!

 

Clemence

Re: Issue to add my logo on magento 2.5

I had created custom theme in Magento 2 and I had declared the theme logo in the app/design/frontend/vendor_name/theme_name/layout/default.xml

<?xml version="1.0" encoding="UTF-8"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="logo">
            <arguments>
                <argument name="logo_file" xsi:type="string">images/logo_new.png</argument>
                <argument name="logo_img_width" xsi:type="number">300</argument>
                <argument name="logo_img_height" xsi:type="number">300</argument>
            </arguments>
        </referenceBlock>
    </body>
</page>

I had uploaded logo_new.png at app/design/frontend/vendor_name/theme_name/web/images/