I was installing cmsmadesimple, and ran into an issue where errors were thrown while running cmsmadesimple under PHP 5.3.0 env.
Upon checking the Forums, it became clear that cmsmadesimple did NOT yet support PHP 5.3.0 in its 1.6.5 release, that the newer 1.7.0 would address the issue(s).

I have yet to run into any other issues, but the editcontent.php file was the one that gave me trouble, here is how I fixed it:
http://forum.cmsmadesimple.org/index.php/topic,36805.0.html

I was able to ‘patch’ this myself by doing the following:

open up /admin/editcontent.php

search and replace all get_class(
replace with fix_get_class(

add the code below to the top of the editcontent.php file

Code:
function fix_get_class($object)
{
            if (is_object($object)) {
                 return strtolower(get_class($object));
            }
            return false;
}

Keep in mind this is a quick, rough patch. It seems to work just fine for me after the patch, and I have not run into any issues… yet.

So whoever needs it, enjoy, apply the patch and good luck in running the quick easy to use CMS application.


4 Comments to “CMSMadeSimple 1.6.5 – PHP 5.3.0 patch fix”

  1. Faishol | September 7th, 2010 at 1:03 PM

    Thanks a lot, man!
    I use CMS Made Simple 1.4.1 “Spring Garden”
    Now, the problem’s solved! I love U!

  2. steven | May 14th, 2011 at 4:49 PM

    also used this….thank u

  3. Denise | June 27th, 2012 at 9:14 PM

    Yay thanks for this!!

  4. Jakub | June 28th, 2012 at 1:01 PM

    @Denise, glad you still find it useful after all this time 🙂

Leave a Comment