Page 1 of 1
[Solved]Fatal error: Call to a member function GetFriendlyName..[browser issue!]
Posted: Wed Oct 31, 2007 2:47 pm
by Matt Jason H
I'm getting this when trying to access various parts of modules in CMSMS on a fresh install of the latest version. Never had it before, and the same server is running about 25 other instances of CMSMS flawlessly.
Fatal error: Call to a member function GetFriendlyName() on a non-object in /home/user/public_html/admin/moduleinterface.php on line 120
It seems to be related to parameters in the URL. As it doesn't tend to happen unless there's parameters present in the URL.
For example, with module manager the default list on A shows up fine, selecting another letter of the alphabet adds parameters into the URL, then the error is produced:
First page:
/~user/admin/moduleinterface.php?module=ModuleManager
Letter M, produces error:
/~user/admin/moduleinterface.php?mact=ModuleManager,m1_,defaultadmin,0&m1_curletter=M
Thanks for any help in advance,
Matt

Re: Fatal error: Call to a member function GetFriendlyName() on a non-object in
Posted: Wed Oct 31, 2007 5:41 pm
by Pierre M.
Hello Matt,
what do you see in the logs ?
Please confirm you mean "1.2" by "latest version".
May be it is an odd module. Try to reinstall with less modules to narrow the one which is at trouble.
Pierre M.
Re: Fatal error: Call to a member function GetFriendlyName() on a non-object in
Posted: Thu Nov 01, 2007 10:00 am
by Matt Jason H
I can confirm i mean 1.2 by the latest version.
I've echoed out the $_REQUEST array and get the following result (on an error page):
Array ( [mact] => ModuleManager,m1_,defaultadmin,0 [m1_curletter] => L [cms_language] => en_US [cms_admin_user_id] => 1 [cms_passhash] => *** [token] => *** [remember] => 1 [id] => 2 [CMSSESSID**] => ***d )
So i see that the parameters are getting through fine.
As for trying with less modules, this is a clean installation of the system so doesn't have any added stuff. I've tried uninstalling and reinstalling module manager and other modules, but this doesn't seem to work either.
I'll try and see what I can find in the log next.
Re: Fatal error: Call to a member function GetFriendlyName() on a non-object in
Posted: Thu Nov 01, 2007 10:12 am
by Matt Jason H
Ok, got the error log now, apache error_log says:
[Thu Nov 1 10:15:29 2007] [error] PHP Fatal error: Call to a member function GetFriendlyName() on a non-object in /home/user/public_html/admin/moduleinterface.php on line 120

Re: Fatal error: Call to a member function GetFriendlyName() on a non-object in
Posted: Thu Nov 01, 2007 4:27 pm
by Pierre M.
Hello again Matt,
thank you for the resquested HTTP log.
What is your
FTP tool ? Can you install via SSH ?
Do you have clean upload FTP logs ?
Pierre M.
Re: Fatal error: Call to a member function GetFriendlyName() on a non-object in
Posted: Thu Nov 01, 2007 7:39 pm
by Matt Jason H
I have tried installing both by SSH (wgeting the gzipped tarball), and uploading the unziped zip file via FTP (Filezilla FTP, latest version).
Both upload methods produce the same results on any fresh install on any account on my server. However an installation which I upgraded to 1.4 using the diff package works fine.
Re: [Browser Issue?] Fatal error: Call to a member function GetFriendlyName() on
Posted: Fri Nov 02, 2007 12:28 am
by Matt Jason H
Re: [Browser Issue?] Fatal error: Call to a member function GetFriendlyName() on
Posted: Fri Nov 02, 2007 12:36 am
by Matt Jason H
After much debugging with the help of the endlessly patient calguy1000 I have found the issue!
In the cookie for the domain this was on, the variable id was set, with a value of 2.
The cookie superglobal array gets included in the request superglobal array by PHP. CMSMS then uses isset($_REQUEST['id']) (or similar) to decide what execution flow to take.
This is what caused the issue.
Seems like a freak occurrence.
Just in case it helps anyone else i'm on Firefox 2.0.0.8, Windows Vista Ultimate 64bit.
Re: [Solved]Fatal error: Call to a member function GetFriendlyName..[browser issue!]
Posted: Wed Mar 19, 2008 4:56 pm
by belgirl
I am also getting this issue suddenly with the "play" module when trying to upload a video. I get the error in firefox and IE7. Can anyone help? Thanks!