Page 1 of 1
Forum made simple problems - permissions?
Posted: Mon Mar 19, 2007 3:08 pm
by martyn_ja
Hi,
I am using CMS made simple v 1.0.4 running on a hosted Linux system (details below as from the system information module):
CentOS release 4.4 (Final), PHP Version 4.4.4 (safe mode is OFF, PHP runs as a module and PHP runs under the userid that I use to log onto the host's CPANEL), Apache/1.3.37 and MySQL 4.1.21-standard.
I can use the module installer to install all manner of modules without too much trouble, but I have continuing problems with installation of Forum Made simple (error shown at foot of this post). Can anyone shed any light on this error. It is the only module causing problems.
I have a separate personal Linux box and I have never had any problems with a "local" install of this module before EXCEPT in hosted environments. It's driving me nuts
Regards,
Martyn
Steps which generate the problem:
Try to install Forum 0.4 via Module Manager
Error!
Module installation failed :Internal error, could not find the instance of a module
===
Go back into Extensions>>Modules
Appears as not installed (forum 0.4)
Choose install
Green tick - Success --Add Me - module:forum string:postinstall--
===
Go to extensions and see a new menu entry called:
--Add Me - module:forum string:postinstall--
Click on it and get:
Fatal error: Call to a member function on a non-object in /home/lpkzpct/public_html/admin/moduleinterface.php on line 117
===
Go back into Extensions>>Modules and try change permissions for forum 0.4
Get error:
Warning: chmod() [function.chmod]: No such file or directory in /home/lpkzpct/public_html/lib/misc.functions.php on line 954
--Add Me - error -- Couldn't change permissions on some files (Troubleshooting)
===
Same errors with forum 0.2 and 0.3
Note
=====
Pre-installed and checked prerequisites with no errors using Module Manager:
FrontEndUsers 1.1.2
Re: Forum made simple problems - permissions?
Posted: Mon Mar 19, 2007 3:23 pm
by Nullig
I'm having the exact same problem - same errors.
Funnily enough, I have a test server on a windows box running Xitami Web Server and I was able to install it there perfectly. No problems at all.
I tried copying the Forum folder from my test server to my hosted site and still no way to get it installed.
Like you, it shows installed, but a check of the database shows that it didn't even create the necessary tables, which I suspect is the problem.
I've had no trouble installing any other modules - this is the only one, and I really want to use it.
Hopefully, one of the devs will see these posts and offer some insights.
Nullig
Re: Forum made simple problems - permissions?
Posted: Mon Mar 19, 2007 3:41 pm
by martyn_ja
Hi,
Thanks for confirming that I'm not going mad here and that the error can be reproduced. I wonder if creating the appropriate forum tables using the CMS database from our "good" local installs of this module might make it work - I'll try that a bit later.
Regards,
Martyn
Re: Forum made simple problems - permissions?
Posted: Mon Mar 19, 2007 4:08 pm
by Nullig
I tried that, but still no luck.
Nullig
Re: Forum made simple problems - permissions?
Posted: Mon Mar 19, 2007 6:43 pm
by Nullig
Some more info...
It seems that I can install this mod successfully on Windows servers, but not Linux servers.
On Windows, I installed it on a Xitami server and an IIS server without a hitch.
On Linux, I could not install it at 2 different hosting servers, both running Apache.
I'm wondering if this might be a "case" issue, as the module installs with the name "forum" (all lowercase), but the Directory is "Forum" (uppercase F). Isn't windows less case sensitive than linux?
Could this be part of the problem?
Nullig
Re: Forum made simple problems - permissions?
Posted: Fri Mar 23, 2007 3:47 pm
by martyn_ja
Hi,
You could be spot on here with the case issue since I know for a fact that case can be an issue in porting between Linux and Windows for MySQL. I am using MySQL on both platforms for my CMS as I suspect you are.
I think it may be worth looking in the PHP code and looking for any possible case-related issues and also checking the MySQL data/table cases supporting the forum. Simply having Forum instead of forum on a Linux system would cause problems that would not be apparent in a Win32 environment. I will check out the code and see if I can find a fix.
Martyn
Re: Forum made simple problems - permissions?
Posted: Sat Mar 24, 2007 11:24 am
by roundtrip
martyn_ja wrote:
I am using CMS made simple v 1.0.4 running on a hosted Linux system (details below as from the system information module):
I can use the module installer to install all manner of modules without too much trouble, but I have continuing problems with installation of Forum Made simple (error shown at foot of this post). Can anyone shed any light on this error. It is the only module causing problems.
Steps which generate the problem:
Try to install Forum 0.4 via Module Manager
Error!
Module installation failed :Internal error, could not find the instance of a module
Likewise, on my CPanel LAMP shared hosting. Must be something in the module that doesn't like Linux.
Update: I've just changed the admin file permission setting to 018 and did a fresh install of CMSMS and the forum software still had an error. However, this time an install of the FrontEndUsers module and another install attempt of Forums saw it install successfully. Still to set it all up and getting it working but at least I know the install problems have been down to the permissions being incorrect on the first attempt.
It would be great if the module installer could check the permissions we're correct before install the module. Not sure if that request is possible or if it will be an easy one. We can but ask

.
Re: Forum made simple problems - permissions?
Posted: Wed Mar 28, 2007 1:56 pm
by Torpedine
Not functioning here even after the reinstallation of FEU
Re: Forum made simple problems - permissions?
Posted: Tue Apr 10, 2007 11:47 am
by alch-lab
bug in module when installing, seems like this is in PHP5. But to me helps to edit in Forum.module.php.
function GetName()
{
// return get_class($this);
return "Forum";
}
seems like
http://www.php.net/get_class return in lower case, but module name is in upper case
Re: Forum made simple problems - permissions?
Posted: Wed Apr 11, 2007 11:10 am
by flushell
How can you edit this file?
I can't. With FTP and SSH too little permisions and in file manager you cannot edit. The xml-file is encoded.
Edit:
HERE IS THE SOLUTION FOR THE PROBLEM (Workaround, bug should be fixed)
- Install fileeditor module:
http://dev.cmsmadesimple.org/projects/fileeditor/
- Install File Manager module:
http://dev.cmsmadesimple.org/projects/filemanager/
- With fileeditor go to /modules/Forum/Forum.module.php.
You can't realy edit the file (permissions again), but copy the text and paste it into Wordpad or another suitable text-editor.
Then look in the file for
Code: Select all
function GetName()
{
return get_class($this);
}
And replace that with:
Code: Select all
function GetName()
{
// return get_class($this);
return "Forum";
}
Save the text on your hardisk as Forum.module.php
- With FileManager go to /modules/Forum. Delete Forum.module.php (That's right, you CAN delete files)
- With Filemaneger upload your new Forum.module.php
Voila!
Re: Forum made simple problems - permissions?
Posted: Wed Apr 11, 2007 4:17 pm
by martyn_ja
Thanks for the workaround - it works perfectly.
Regards
Martyn