mamboxplorer will not let me chmod

Joomla version 1.0 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
acaby
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Wed Aug 24, 2005 7:18 pm

mamboxplorer will not let me chmod

Post by acaby » Wed Aug 24, 2005 7:21 pm

I am running mambo4.5.2.3-phpshop-ecommerce edition
I used mamboxplorer and I tried to chmod com_remository writeable so I could add some dir's and files required for operation and mamboxplorer gave me the following error:
----------
Parse error: parse error, unexpected '@' in /home/acaby/public_html/mshop/administrator/components/com_mamboxplorer/
.include/fun_chmod.php on line 72
-----------
Could someone please help me with this as I am at a standstill with my website
Thanks,
Arthur

User avatar
witmatix
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Fri Aug 19, 2005 6:29 am
Contact:

Re: mamboxplorer will not let me chmod

Post by witmatix » Thu Aug 25, 2005 1:15 am

When looking at the file listed in your error, there does indeed appear to be a parse error.  Line 72, and surrounding relavent code, of $mambo_dir/administrator/components/com_mamboxplorer/.include/fun_chmod.php read:

Code: Select all

                  if( $do_recurse )
                        $ok = chmod_recursive( get_abs_item($dir,$item), bindec($bin) );
                  else
                        $ok @chmod( get_abs_item($dir,$item), bindec($bin) );

                  if(!$ok) {
                          show_error($item.": ".$GLOBALS["error_msg"]["permchange"]);
                  }

Whereas it should read:

Code: Select all

                  if( $do_recurse )
                        $ok = chmod_recursive( get_abs_item($dir,$item), bindec($bin) );
                  else
                        $ok = @chmod( get_abs_item($dir,$item), bindec($bin) );

                  if(!$ok) {
                          show_error($item.": ".$GLOBALS["error_msg"]["permchange"]);
                  }
Both ways work on our server, though I'm not sure why.  Try adding that extra "=" after the second $ok and see if that helps.  That should stop your parse error.
------------------------
Witmatix.com Inc.
http://witmatix.com
------------------------

QuickSync
Joomla! Intern
Joomla! Intern
Posts: 78
Joined: Thu Aug 18, 2005 3:36 am

Re: mamboxplorer will not let me chmod

Post by QuickSync » Thu Aug 25, 2005 5:14 am

I just wanted to add.

MamboExplorer have troubles working in shared hosting environment.
CHMOD attempts in folder inside the root is always denied.

User avatar
Damienov
Joomla! Ace
Joomla! Ace
Posts: 1437
Joined: Fri Aug 19, 2005 12:08 am
Contact:

Re: mamboxplorer will not let me chmod

Post by Damienov » Thu Aug 25, 2005 5:19 am

Also try asking your host if the apache PHPSUEXEC is on
if its off, you will have problems with changing file permission
Waddaya mean I can't swing my lightsaber in the forum??


Locked

Return to “Installation - 1.0.x”