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

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.
Post Reply
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

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

Post 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.
generic
New Member
New Member
Posts: 6
Joined: Fri Feb 09, 2007 8:55 pm

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

Post 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 --
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

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

Post 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>';
Last edited by cnymike on Mon Jan 21, 2008 7:48 pm, edited 1 time in total.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

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

Post 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?
Last edited by cnymike on Mon Jan 21, 2008 7:57 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

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

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

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

Post 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?
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

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

Post 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.
alanphil

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

Post 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
Post Reply

Return to “CMSMS Core”