Page 1 of 1

FileManager error when attempting to delete file or perform -any- action

Posted: Mon Jan 21, 2008 3:06 pm
by cnymike
CMS 1.2.3
File Manager 0.2.2
umask 022


Using File Manager to upload a file. the file is uploaded and given 644 permissions. Immediately trying to delete the file from within file manager, using the delete action, results in an error: 'An error occurred when trying to delete the file (Troubleshooting)'.

As a matter of fact, none of the Actions available in file manager work. I cannot delete a file, rename a file or chmod a file.

Re: FileManager error when attempting to delete file or perform -any- action

Posted: Mon Jan 21, 2008 7:27 pm
by generic
i can delete it, just can not rename a file or chmod a file

when i mouse over those icons i see somehting like this:

Code: Select all

-- AddME - Module:FileManager - string:chmod --

Re: FileManager error when attempting to delete file or perform -any- action

Posted: Mon Jan 21, 2008 7:37 pm
by cnymike
I restarted my computer and went through the process again, and this time I was able to upload a file and delete it using the file manager, but I could not rename it or chmod it.

When I attempt to rename a file, the screen changes to this URL... but there is nothing listed under the "FileManager" heading of the content area.
http://www.the domain name.us/admin/moduleinterface.php?mact=FileManager,m1_,chmodfile,0&m1_filename=DSC_0648.JPG&m1_path=%2Fuploads%2Fmedia&m1_sortby=nameasc
And when I attempt to rename the file the screen changes to this URL, but again, nothing is listed under the "FileManager" heading
http://www.the domain name.us/admin/moduleinterface.php?mact=FileManager,m1_,renamefile,0&m1_filename=DSC_0648.JPG&m1_path=%2Fuploads%2Fmedia&m1_sortby=nameasc

Just now however I tried uploading a 10.2MB file and this time I got a Fatal Error.
Fatal error: Call to a member function GetFriendlyName() on a non-object in /usr/www/users/cnymike/blahblahblah/admin/moduleinterface.php on line 120
Line 120 of the moduleinterface.php file is...

Code: Select all

echo $themeObject->ShowHeader($gCms->modules[$module]['object']->GetFriendlyName(), '', '', 'both').'</div>';

Re: FileManager error when attempting to delete file or perform -any- action

Posted: Mon Jan 21, 2008 7:56 pm
by cnymike
The upload error occurred using the FileManager "Settings" for upload method of "Standard html input-method". After getting the upload error I changed the upload method.

So this time in the FileManager "Settings", I changed the upload method to "Postlet, Java-based" and the upload was successful with no error message.

Bug?

Re: FileManager error when attempting to delete file or perform -any- action

Posted: Mon Jan 21, 2008 7:58 pm
by calguy1000
and..... what's your max upload size in the php.ini and memory limit, and time limits, and in the CMS made simple config.php

Most standard php servers limit file uploads in the php.ini to 2mb.... to increase it you have to increase your memory limit, the appropriate time limits, and possibly a few other things as well as the cms made simple upload limit.

Re: FileManager error when attempting to delete file or perform -any- action

Posted: Mon Jan 21, 2008 8:08 pm
by cnymike
Correct. I have learned this many months ago when I was experiencing upload problem with large files. I have since then upped all the values.

The max  upload was changed to 15MB in the php.ini and the config.php file. The memory limit was increased at one time to handle a 10MB upload size. The Memory limit was not upgraded when the file limit was increased to 15MB. I'll check to see if upping the memory limit will solve this issue.

I am not aware of a guideline that indicates what the memory limit should be increased to for a particular upload size limit.

OK...just checked and the memory limit in the ini is set to "memory_limit = 20388608"

Should be plenty enough right?

Re: FileManager error when attempting to delete file or perform -any- action

Posted: Mon Jan 21, 2008 8:11 pm
by cnymike
And if the memory limit was the issue anyway, why would the upload work using the java method and not with the standard method. If memory were an issue, I would expect it to fail either way.

Re: FileManager error when attempting to delete file or perform -any- action

Posted: Tue Jan 22, 2008 3:59 pm
by alanphil
FYI: I'm running version 1.2.3 "Black Rock", and was also having issues with File Manager. It would allow me to create and delete directories but I could not upload files (message about "File too big"). Especially odd because I have the same code base running on a linux server at home and it was not having this problem.

After digging around for a fix, found out that the $config['max_upload_size'] in the config.php file was set to 2 bytes! After resetting this value the upload function is working normally.

Alan