[solved] Fatal error: Call to a member function GetFriendlyName() ...

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

[solved] Fatal error: Call to a member function GetFriendlyName() ...

Post 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?
Last edited by cnymike on Sun Feb 17, 2008 11:15 pm, edited 1 time in total.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: File Manager upload Fatal error: Call to a member function GetFriendlyName()

Post by cnymike »

anyone care to chime in on this?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: File Manager upload Fatal error: Call to a member function GetFriendlyName()

Post by calguy1000 »

check your error log.  there'll probably be something there.
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: File Manager upload Fatal error: Call to a member function GetFriendlyName()

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

Re: File Manager upload Fatal error: Call to a member function GetFriendlyName()

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

Re: File Manager upload Fatal error: Call to a member function GetFriendlyName()

Post 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

Code: Select all

post_max_size = 15M  
     
Post Reply

Return to “CMSMS Core”