When zenophile creates sub-theme directories, the owner is "nobody". Now unable to edit or delete sub-themes.

Comments

mattluce’s picture

Status: Active » Closed (fixed)
smd_ksu’s picture

Same problem here.

Garrett Albright’s picture

Status: Closed (fixed) » Active

Not sure why mattluce closed this issue… Good thing I found it, because when I track myself, I can't see updates to closed issues.

Anyway, directories will be created with the same owner and group that the web server is running under. Drupal does this with all the other files it creates as well. Not a whole lot I can do about that.

If you have elevated permissions on your server, you may have to chmod or chown the directory that Zenophile creates. If that's not an option - you're running on a shared host, for example - I recommend using Zenophile to create themes on a server you do have control over, such as a testing server running on your machine, and then editing and uploading the theme directory it creates.

frank ralf’s picture

Some web hosters might allow changing the ownership of files/directories created by scripts via their web interface. At least that's what saved me in that situation.

marty’s picture

Yep I have the same issue and can't remove the zenophile generated directory even with cPanel. Have removed the module and getting around by making my own copies the old fashioned way. Guess will have to eventually ask tech support on the provider to remove the directory for me.

Garrett Albright’s picture

Hmm. Perhaps in the future I'll include the option to attempt a chown (change owner) on the theme directory after it's created.

mattcasey’s picture

Yes - spent all morning trying to figure out what was wrong. I'm surprised this isn't more documented. Please fix - unless I have a local server set up, this module is useless because I can't even edit or add files in the subtheme folders!

Garrett Albright’s picture

mattwad, sorry for the trouble. I promise that the next release of Pathologic will address this. Unfortunately, I just can't promise when I'll find the time to actually make that release… But I feel your pain.

Garrett Albright’s picture

Okay, I just released a new beta version which will try to create wide-open directories and such. I suspect it might not be enough, but it should allow you to at least download the directory. Please give it a try.

I might be approaching this problem the wrong way. I'll put some more thought to it when I have some time.

Alex Andrascu’s picture

The ownership problem still exists. I am runing Drupal on a share host and i missconfigured the permission to 755. Now i can't save anything in the subtheme's directory and i can't delete it also. At least until this problem exists give us the option to delete the subtheme under the 'nobody' user ownership. Thanks.

Garrett Albright’s picture

All right, that's it. I'm going to give up on trying to appease shared hosting edge cases any further. Please read this new section to Zenophile's documentation page for a way to possibly delete the theme, then uninstall Zenophile and don't use it any more until you can set up your own server. Sorry, but from now on, my answer to this problem is going to be "you're doing it wrong."

frank ralf’s picture

Priority: Critical » Normal
Status: Active » Closed (won't fix)

Thanks for that thorough explanation, Garrett! You're right, Zenophile is for creating themes on your development machine. Setting this to "won't fix" ;-)

valante’s picture

You know, there's a little fix that will save people a lot of time and frustration - mentioning on the project page itself that this module is not intended for shared servers. Zen docs lead the user right to this module, and it's almost ridiculous that this little fact is not mentioned anywhere.

Garrett Albright’s picture

You're right, valante. I'll go add a message to that effect to the project page.

eonblue’s picture

Lost a whole night to this, shit really wish I'd taken the disclaimer seriously.
I just didn't think a software that drupal and zen were recommending so brazenly would have such an exclusive usership.

Have to write to my server embarrasingly and everything! Those bloody folders won't be removed by my hand anyway.