File not opened using PHP Editor
4 posts
• Page 1 of 1
File not opened using PHP Editor
I'm not sure if this is an issue for you guys or the VS team, but I added a new file extension (.tpl) to be a PHP Editor file type. When I open this file in 2010, everything is working fine, but in 2012 I am greeted with the following (attached image). You can use the code from here if you like.
The error for the first red-line is "XML document cannot contain multiple root level elements." The second is "Entity 'nbsp' not defined." The third is "Namespace prefix 'cs' is not defined." All of the ones with the PHP in them are listed with "Missing attribute name." Obviously it's just trying to validate the markup, but it does end up being pretty distracting.
Thanks,
Andrew
The error for the first red-line is "XML document cannot contain multiple root level elements." The second is "Entity 'nbsp' not defined." The third is "Namespace prefix 'cs' is not defined." All of the ones with the PHP in them are listed with "Missing attribute name." Obviously it's just trying to validate the markup, but it does end up being pretty distracting.
Thanks,
Andrew
You do not have the required permissions to view the files attached to this post.
-
AndyM84 - Posts: 69
- Joined: August 6th, 2012, 3:24 pm
- Location: Boston, MA, USA
Re: Possible VS2012 Issue
It looks like the file is not opened using our PHP Editor.
(No navigation bar, "XML document cannot contain multiple root level elements" is not our error message, ...)
This is very common issue. It happens, when you assign another editor thru 'Open With' command, which overrides File Extensions settings.
Try to go to File -> Open -> File, find some file with '.tpl' extension, and choose 'Open With' command at the bottom, highlight "PHP Editor" in the list and click "Set as Default".
(No navigation bar, "XML document cannot contain multiple root level elements" is not our error message, ...)
This is very common issue. It happens, when you assign another editor thru 'Open With' command, which overrides File Extensions settings.
Try to go to File -> Open -> File, find some file with '.tpl' extension, and choose 'Open With' command at the bottom, highlight "PHP Editor" in the list and click "Set as Default".
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Possible VS2012 Issue
Love you guys...that solved it for me. Thanks!
-
AndyM84 - Posts: 69
- Joined: August 6th, 2012, 3:24 pm
- Location: Boston, MA, USA
Re: Possible VS2012 Issue
I'm glad it works!
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 27 guests