Mecha CMS

Mecha CMS blog and documentation.

Template Broken After Upgrading?

Updated: Sunday, 07 August 2016

Repairs for broken shields.

If you suddenly get some errors in the shield after upgrading to the current version of Mecha, maybe some of the changes below could give you some clues. There are some parts in the CMS that I have replaced to make sure that the next version will be more consistent. I don’t provide any kind of backward-compatibility code for now, considering that the release versions is still very new. If you are a CMS user of version 1.0.1 and below, maybe these changes highlights can help you to solve your problems that occured after upgrading to the current version without having to rewrite all of your shield architecture. For the new users, you may ignore this article.

Broken Layout in Manager Menu

It’s because I have changed .widget-admin-menu into .widget-manager-menu. To resolve this issue, simply update your CSS files.

Error in Comments Section

If you got some errors in the comments section after upgrading, it’s because $page->page_total_comments_text has been replaced into $page->total_comments_text and $page->page_total_comments also has been replaced into $page->total_comments. To resolve this issue, simply update the contents of your comments.php file.

Since version 1.0.3, the comment manager link (edit and delete link) on every comment item already changed slightly with the new prefix id: that placed before the comment ID like this:

// Before
http://mecha-cms.com/2016/manager/comment/repair/1401464225
http://mecha-cms.com/2016/manager/comment/kill/1401464225

// After
http://mecha-cms.com/2016/manager/comment/repair/id:1401464225
http://mecha-cms.com/2016/manager/comment/kill/id:1401464225

To resolve this issue, simply update the contents of your comments.php file. This changes also occurs in some of other manager links, but those links are not embedded in the shield like this comment links.

Donation and Email Subscription