FrontEndUsers, umask, etc…

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
10010110

FrontEndUsers, umask, etc…

Post by 10010110 »

Woah, here’s a strange one. I’ve used the CMS on a site for a while now, I had FrontEndUsers and CustomContent installed and working. Now, ever since I upgraded the CMS to the latest version (1.2) I noticed that somehow the thumbnails in the image manager aren’t displayed anymore… for the images that were already there, that is. Newly added images would get a thumbnail alright. That was the first thing that I wondered about but I thought that it wouldn’t be that much of an issue if everything else is working properly (which it did).

Now, all of a sudden I’m getting a lot of PHP warnings and errors regarding the “moduleloader” or something like that, and that it faild to open CustomContent and FrontEndUsers due to permissions being denied. I have no idea what caused this? It used to work until yesterday or a couple of days ago I think. Well, anyway… I removed the two said modules from the server (without uninstalling because I wouldn’t get access to the module listing as a fatal error occurred) which got rid of the errors and warnings, and I installed the latest versions of these modules and it seems to do the trick. However, now I was trying to create new properties, groups, and users, and the strange thing is that it only let me add properties! Even if I click on the “Groups” or “Users” tabs, it says “Add property” rather than “Add User” etc., and it actually does only add another property, even if I’m doing this from the user management page.

Why is this happening and how can I fix that? Has it something to do with umask? I was testing umask 022 and it said that he directory wasn’t writable… that would maybe explain why the thumbnails aren’t shown anymore but it wouldn’t really explain why it would show them properly for newly added files, would it? And I can’t imagine that this has an impact on the FrontEndUsers and CustomContent modules, or does it?

Any help is greatly appreciated, I’m really confused…
unknown

Re: FrontEndUsers, umask, etc…

Post by unknown »

Hello,
While calguy1000 could easily answer questions regarding FEU. In your current situation
I see a couple of possible issues - given the path you used to "upgrade" (deleting the
files and (re)installing). FEU isn't just a file based tool. It creates/manipulates entries in
your DB. Point being - deleting and reinstalling the module outside of the module
manager could concievably introduce some problems - I'm not saying it did,
just saying it could. But as file perms are clearly an issue. Let's start there. :)
From the root folder of youe web site:

Code: Select all


chmod -R 0755 .
cd tmp
chmod -R 0777 .
cd ../uploads
chmod -R 0777 .

OK DONE.

But wait! Who actually owns these files and folders?
Good question!

If your web server's identity is www (very common - but you'll need to find out for sure).

From your web servers root -

Code: Select all


chown -R www:www .

DONE! all permissions are fixed, and correct. :)

OH.
I should also recommend clearing the cache from the admin panel before (and possibly after)
performing these operations. :)



Last edited by unknown on Sun Nov 11, 2007 12:01 am, edited 1 time in total.
Locked

Return to “CMSMS Core”