PHP errors in version 1.10

If you read CMSMS version 1.10 release notes, you will find out which PHP code changes were made.

As a consequence, modules, templates, and UDTs may break. Here is a short list of changes which need to be made to bring your code back to working condition:

1. Calls for stylesheet in a template are now made with {cms_stylesheet} instead of {stylesheet}

 

2. $gCms is no longer used. For example, if your module or UDT used to call:

global $gCms;
$db = $gCms->db;

You must now change these lines to:

$db = cmsms()->GetDb();

An example error for attempting to run the old version of the code might say something like:

Fatal error: Call to a member function Execute() on a non-object in /*/lib/classes/class.usertagoperations.inc.php(260) : eval()'d code on line 16

 

3. Several classes were deprecated as well. If you get the error:

Fatal error: Cannot access protected property Content::$m* in * line *

Then you need to modify everywhere your module or UDT makes a call in the form of

mActive

mName

mModifiedDate

, etc

change that to

Active()

Name()

ModifiedDate()

, etc

 

 



˅˅˅ Additional valuable information is available at one of the links below: ˅˅˅

 

Did you like the article? Let Google Search know by clicking this button: . Please link to content that you find useful on this website on your own website, forum or blog! You can also comment on this page below, or contact me to ask a question or suggest a topic for me to research. There is a user-editable Wiki available on my website, as well as a Forum that you can contribute to. Site Map.

Page last modified 28-Apr-12 22:12:01 EDT
Comments on this page:


Add a comment to this page
Comment Title:
Your Name:
Your Email Address:
Notify me of new comments to this item:
Additional Comments:
This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)