PATCHING CORE PROGRAM FILE BREAKS CMSB ADMIN PAGE FORMATTING - Jul 9th, 2020


I had to patch the code in a core program file (lib/common.php) for some specific functionality, but no matter what I
tried I came up with a trashed Admin page formatting.

What was even more strange is that when I undid the code changes, and re-uploaded what should have been the unmodified
file, the badly formatted admin pages remained.

Both Greg Thomas from Interactive Tools and I were at a loss to explain the issue until CMSB user Steve99 came up with
the solution.

He said: "In reference to "but the page is very strangely formatted"... I've seen that happen before when patching a
file. It ended up being the DreamWeaver html editor that corrupted the file.

Try replacing the modified file with the original packaged one, then perform the edits in another editor program such as
Notepad++ or Sublime Text and upload.

I was originally using DreamWeaver and when I used Notepad++ instead, the page formatting remained correct.

Now that I think about it, Dreamweaver also sometimes caused 'cannot send header' errors by inserting a hidden blank
character before the opening PHP tag.

Moral... Use another text editor in these rare situations.



The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact Interactive Tools for information on the downloading of the software or the purchasing of licenses.


Terms of Service