Page 1 of 1
[solved] Fatal error: Call to a member function GetFriendlyName() ...
Posted: Fri Nov 09, 2007 8:31 pm
by cnymike
CMSMS 1.2
Just tried using File Manager to upload an mp3 file, 8MB in size. Received this error...
Fatal error: Call to a member function GetFriendlyName() on a non-object in /usr/www/users/xxxxxx/xxxxxx/admin/moduleinterface.php on line 120
What's this all about?
Re: File Manager upload Fatal error: Call to a member function GetFriendlyName()
Posted: Mon Nov 19, 2007 12:04 am
by cnymike
anyone care to chime in on this?
Re: File Manager upload Fatal error: Call to a member function GetFriendlyName()
Posted: Mon Nov 19, 2007 12:06 am
by calguy1000
check your error log. there'll probably be something there.
Re: File Manager upload Fatal error: Call to a member function GetFriendlyName()
Posted: Mon Nov 19, 2007 12:31 am
by cnymike
What error log? The shared server error log? I don't have any access to the server error log if that's the log you refer to.
I'm not sure about this error yet but I have a sneaky suspicion it might be a file size related issue. I'm going to play around with some file uploads this week and see what I come up with.
Re: File Manager upload Fatal error: Call to a member function GetFriendlyName()
Posted: Mon Nov 19, 2007 1:59 pm
by cnymike
This error seems to be file size related. The file that generated this error was 8.9MB. I tried sending a smaller file that was 6.5MB and did not get this error. So now I'll look at maximum file upload size values to see if that is what is causing the error.
Re: File Manager upload Fatal error: Call to a member function GetFriendlyName()
Posted: Sun Feb 17, 2008 11:14 pm
by cnymike
It has taken me several months to figure this out but I've finally discoverd what the problem was.
If you are running under phpsuexec or phpcgiwrap, changing the memory values in the .htaccess file are pointless and will result in an error since Apache is no longer involved when running PHP in cgiwrap or phpsuexec. Instead you need to modify a php.ini file. In my situation, I had changed the php.ini to the following value
Code: Select all
upload_max_filesize = 15M ; 4 MB default limit on file
And I also had changed the CMSMS config.php file to this...
Code: Select all
#---------------
#Upload Settings
#---------------
#Maxium upload size (in bytes)?
$config['max_upload_size'] = 15000000;
But still, I was getting the fatal error when attempting to upload files any larger than 8MB. But what I discovered just now, is there is yet another value that must be changed in the php.ini file and that is the "post_max_size" value. Once I increased that value to 15MB as well, the fatal error stopped occurring and I was finally able to upload my 12MB file.
This is the additional value that I had to add to my php.ini file