cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.4 local setup from SSH server issues

Magento 2.4 local setup from SSH server issues

Hi, 

 

I am new on Magento 2 system. A few days already  am trying to solve the following issue. I am facing issue on setup local Magento 2.4 from ssh server in Ubuntu 18.04. So if you have any solution then please tell me. 

 

Will you advice me how to do that please? Thank you.

 

1 exception(s):
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'body': Character content other than whitespace is not allowed because the content type is 'element-only'.
Line: 934


Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'body': Character content other than whitespace is not allowed because the content type is 'element-only'.
Line: 934
2 REPLIES 2

Re: Magento 2.4 local setup from SSH server issues

Hi  

It seems there is some error in any XML file, might be white space issue.

Did you upload any module or theme? if yes then please revert them once and then check.

This is temporarily solution (not recommended for permeant): 
For now you can do one more thing. You can try to change the magento deploy mode in production, so might be possible error will not throw.

php bin/magento deploy:mode:show
php bin/magento deploy:mode:set production

 

@ritikagupt68ac

Re: Magento 2.4 local setup from SSH server issues

Hi,

 

No, I have not uploaded any new module & theme. I am doing only localhost set up from client ssh server. 

Also I have changed the magento deploy mode in production, but same error is still displaying.

 

Thanks for your response!