Lars Posted August 14, 2014 Share Posted August 14, 2014 Hi, Got a problem here. When I use the back-end and try to create a new template I end up on this page: "/processwire/setup/template/add". The page starts with an error-block saying: "Unknown Selector operator: '=!' -- was your selector value properly escaped?" and the rest of the page is empty. No new templates for me.... Well, not true, I work around it by copying some existing template and rename it so I am not stuck, still this is an annoyance. I have not installed any new modules after this error started to occur so I doubt it can be from a module (not that I know if any module is involved in creating a new template). The only module I have modified is "MarkupBlog". Restored the code on that one, but did not help. Anyone had this problem before? Link to comment Share on other sites More sharing options...
cstevensjr Posted August 14, 2014 Share Posted August 14, 2014 What version of PW and can you please attach a image of what you see? Link to comment Share on other sites More sharing options...
horst Posted August 14, 2014 Share Posted August 14, 2014 @xorotle: has you set debug to true? (site/config.php -> $config->debug = true;) have you entries in your site/assets/logs/error.txt ? (after switching debug to true?) 1 Link to comment Share on other sites More sharing options...
Lars Posted August 15, 2014 Author Share Posted August 15, 2014 Thanks Horst, your tip for turning on Debug solved my problem. I did not know there was a Debug setting. Debug gave me an extensive list instead of the short error message. The problem came from having one file in the template directory named "!tmp.php". Just a scrap file I used as clipboard for bits and pieces, named with a leading "!" so that it would sort at top of the file list in my editor. Now, the "!" in the file name was the culprit. Naming or renaming any PHP file in the /template/ directory with a leading "!" will re-create the problem. Lesson of the day: Do not use leading "!" in template file names. Thanks everyone helping out in his forum. Process Wire is just amazing. 2 Link to comment Share on other sites More sharing options...
kongondo Posted August 15, 2014 Share Posted August 15, 2014 ......Debug solved my problem. I did not know there was a Debug setting. Debug gave me an extensive list instead of the short error message..... Remember to switch off debug mode before going live (on a remote server). Debug 'true' should never be used on a remote server...for security reasons... 1 Link to comment Share on other sites More sharing options...
horst Posted August 22, 2014 Share Posted August 22, 2014 @xorotle: you can use the underscore for that or you can configure something other in your site/config.php for $config->ignoreTemplateFileRegex see: https://github.com/ryancramerdesign/ProcessWire/blob/dev/wire/config.php#L249 if you define something in your site/config.php it overrides the setting from wire/config.php. 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now