View Full Version : How to enable umask?
njunkies
12-25-2006, 04:46 PM
Hi, just started using ULMB yesterday and so far it's excellent :)
I installed Joomla, and am trying to install a component but I get the following error;
Warning: umask() has been disabled for security reasons in .../components/com_installer/installer.class.php on line 486
Warning: umask() has been disabled for security reasons in .../components/com_installer/installer.class.php on line 497
How do I enable it?
Thanks :)
UnlimitedMB
12-25-2006, 06:55 PM
Edit installer.class.php and change umask to @umask on those lines.
Actually those are just warnings, so the script should continue normal anyway without needing to edit.
njunkies
12-25-2006, 07:02 PM
At the top it also says;
Failed to create directory "/hosted/subs/ulmb.com/n/j/njunkies/public_html/components/com_feedgator/"
But I just assumed it was because of the umask error.
When I change umask to @umask when I go to the installer page it says this;
Parse error: syntax error, unexpected '@' in /hosted/subs/ulmb.com/n/j/njunkies/public_html/administrator/components/com_installer/installer.class.php on line 486
:(
UnlimitedMB
12-25-2006, 09:28 PM
I made some changes to installer.class.php please try it again now.
njunkies
12-25-2006, 10:37 PM
I tried again but it still says...
Parse error: syntax error, unexpected '@' in /hosted/subs/ulmb.com/n/j/njunkies/public_html/administrator/components/com_installer/installer.class.php on line 486
Am I changing it correctly, eg:
I change it from this...
$old_umask = umask(0);
to...
$old_@umask = @umask(0);
Is that right?
UnlimitedMB
12-25-2006, 10:46 PM
no it should be
$old_umask = @umask(0);
njunkies
12-25-2006, 10:55 PM
Ah yes that solved the line 486 problem :)
Thanks :)
For line 497;
umask($old_umask);
Should I put the @ in front of just one of them or both of them?
njunkies
12-25-2006, 11:01 PM
Ok I fixed the umask error but the main error;
Failed to create directory "/hosted/subs/ulmb.com/n/j/njunkies/public_html/components/com_feedgator/"
That's still there :(
UnlimitedMB
12-26-2006, 02:09 AM
You will need to contact script author about it, its not a hosting problem.
njunkies
12-26-2006, 02:36 AM
Okay thanks for all your help :)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.