Parse error and other problems with include file- due to bad encoding or something
Parse error: syntax error, unexpected $end in /Users/ben/workspace/repos/agaric/agaric-modules/place/5/place/taxonomy_location/taxonomy_location_admin.inc on line 1
renamed file and started a new one with Mac line endings instead of Unix:
evil_textwrangler-inserted-bad-characters-taxonomy_location_admin.inc
The new file worked. But very soon, a new problem:
warning: Cannot modify header information - headers already sent by (output started at /Users/ben/workspace/repos/agaric/agaric-modules/place/5/place/taxonomy_location/taxonomy_location_admin.inc:1) in /Applications/MAMP/htdocs/joeaustin/includes/common.inc on line 311.
Putting the functions in the main problem and dropping the include solved the problem, so it was definitely an encoding or a Macintosh-vs-Unix line break issue.
Yeah, they have problems with character encoding:
TextWrangler
a product of Bare Bones Software, Inc.
version 2.2.1 (186) of Wed, 14 Feb 2007
copyright ©1992-2007 Bare Bones Software, Inc.
Registered to Benjamin Melan?ßon
Comments
Post new comment