The CMS is giving me a headache!

@ben I have a blog that I set up on one of my sites (mairfoils.com) that works perfectly. I needed to duplicate this blog on a sister site, so I dutifully copied everything, including all the MD files and images, to the other site.

The listing for the blog works perfectly, but no matter what I try, I cannot get the individual post page to work; it always displays the mess shown below.

I cannot understand what could be going wrong. I have checked everything and made sure all the files are present, but it just won’t work. I even tried a few restarts with no luck.

Why would this not work, when it works perfectly on another site and in my testbed?

I’m sure there is probably some simple step that is missing that did not make it over from the other site, but what it might be escapes me.

Can you check you’ve changed the page file extension to .php?

Ha, I was out working in my shop when I suddenly had a flash, “Did you change the file extension?”, so I came in, and of course I had not changed it, and of course after changing now it works.

From now on, any project I create that is going to use the CMS (which would be every one), I’m going to set the default to “php” for all extensions.

Sorry about that.

1 Like

haha, I’m just glad it was a simple fix :wink:

You can set a default page extension in the app, this will apply to all projects and be used whenever a new page is created :slight_smile:

Yes, I have done that now.

Although interestingly, I had done it before I started on this project, but when I created this page, it did not use it. So somehow it got unset when I upgraded to the latest version.

1 Like

@dan I’d like to report that setting the default to PHP does not appear to persist across projects all the time.

I had to add support for the CMS to another project today, so I figured I’d make sure I did not get caught again. Changed the default to PHP before quitting. When I started back up and created the necessary page in the project, it came up as HTML, not PHP.

I did a couple more restarts, and now it seems to be sticking. Before, I would open up Elements, and it would still say HTML as the default.