It appears the basename() function does not provide the proper filename for the built-in pages that come with the Pico CMS (Welcome, Sub Page Index and Sub Page). This results in Invalid file errors when attempting to edit any of the pages. I am using wamp.