Timeline for Magento setup:upgrade fails with "Element 'type': Character content other than whitespace is not allowed because the content type is 'element-only'."
Current License: CC BY-SA 3.0
21 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 22, 2017 at 14:39 | vote | accept | codestr | ||
Sep 22, 2017 at 14:39 | answer | added | codestr | timeline score: 0 | |
Feb 7, 2017 at 6:28 | comment | added | codestr |
So, I think my issue is that the apache user/group (www-data) cannot write to the var/generation directory because when it is created, ownership is assigned to user:user-group instead of user:www-data, but I'm not sure how to set the permissions so new files/directories are created under the web server group.
|
|
Feb 7, 2017 at 6:04 | comment | added | Manthan Dave | @codestr thats okay - magento.stackexchange.com/questions/91870/… - follow this url for permission !!! now is it solved ? | |
Feb 7, 2017 at 6:03 | comment | added | codestr |
They're both currently 777
|
|
Feb 7, 2017 at 6:02 | comment | added | Manthan Dave |
@codestr go to your magento2 root directory and the run sudo chmod -R 775 var , pub/media and then check
|
|
Feb 7, 2017 at 6:00 | comment | added | Manthan Dave |
ohh yes Correct !!!! that is what i am going to written !! the xml is correct you have only permission issue while you generate again !!! so change the permission of var and pub/media directory to 755 it will works
|
|
Feb 7, 2017 at 5:55 | comment | added | codestr | I did just notice that if I remove the var/generation directory, then recreate it, it is created with the same owner but a different group than the rest of the app (user:user rather than user:www-data). Could this be a permissions issue? | |
Feb 7, 2017 at 5:54 | comment | added | codestr | @ManthanDave Added to bottom of the original post, sorry. | |
Feb 7, 2017 at 5:52 | history | edited | codestr | CC BY-SA 3.0 |
added 427 characters in body
|
Feb 7, 2017 at 5:50 | comment | added | Manthan Dave | @codestr yes but where is it code ? post that xml file code ? | |
Feb 7, 2017 at 5:49 | comment | added | codestr | @ManthanDave as far as I'm aware, this is the only XML that has been added or modified (added to original post) | |
Feb 7, 2017 at 4:08 | comment | added | codestr | Receiving the same error after removing/emptying those two directories. | |
Feb 7, 2017 at 3:25 | comment | added | Jackson |
Delete var/generation1 & Empty var/generation
|
|
Feb 7, 2017 at 3:21 | comment | added | codestr | So, delete both of them, or delete the second directory and empty the first one? | |
Feb 7, 2017 at 3:21 | comment | added | Jackson |
It should be only one var/generation directory delete other directory
|
|
Feb 7, 2017 at 3:16 | review | First posts | |||
Feb 7, 2017 at 3:19 | |||||
Feb 7, 2017 at 3:16 | comment | added | codestr | @AnkitShah Also, it appears there are two var/generation directories, var/generation and var/generation1 | |
Feb 7, 2017 at 3:15 | comment | added | codestr | @AnkitShah remove the entire directory, or just delete the files within it? | |
Feb 7, 2017 at 3:14 | comment | added | Jackson |
Please delete var/generation & run command again
|
|
Feb 7, 2017 at 3:12 | history | asked | codestr | CC BY-SA 3.0 |