Problem w. theme conversion "... unexpected T_STRING..."
Permalink
Greetings, I used this guide to convert my custom theme:
http://www.concrete5.org/documentation/how-tos/designers/converting...
And receive this error when trying to activate it:
My default php looks like this:
Could anyone help me figure out what I am doing wrong? Line one means that it's the XML encoding line that's causing the problem, but I figure I am missing something basic here that's not in the tutorial? Thanks in advance.
http://www.concrete5.org/documentation/how-tos/designers/converting...
And receive this error when trying to activate it:
Parse error: syntax error, unexpected T_STRING in /var/hellhoster/webs/goliat-web/bogenschiessen-new/themes/holtkamp/default.php on line 1
My default php looks like this:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" > <head> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <? Loader::element('header_required'); ?> <meta name="robots" content="index, follow" /> <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> <link rel="icon" href="favicon.ico" type="image/ico" /> <link rel="stylesheet" type="text/css" href="<?=$this->getThemePath()?>styles.css" /> <!--[if lt IE 7]> <style media="screen" type="text/css"> .col1 { width:100%; }
Viewing 15 lines of 45 lines. View entire code block.
Could anyone help me figure out what I am doing wrong? Line one means that it's the XML encoding line that's causing the problem, but I figure I am missing something basic here that's not in the tutorial? Thanks in advance.
Remove the pho markers around the first line
One night of sleep makes a big difference in my grey matter computing power, I see the ? were causing the problems now by conflicting with concrete5 code.
Out of idle curiosity I decided to research why that XML encoding tag in there is there in the first place and I eventually landed at a very interesting link, right here:
http://www.joelonsoftware.com/articles/Unicode.html...
This explains what the UTF-8 is for very nicely and it also lets me feel slightly better about completely deleting that line, because I have it in a meta tag telling my browser that the page is in xhtml UTF-8 under the header anyway:
Thanks again for the response!
Out of idle curiosity I decided to research why that XML encoding tag in there is there in the first place and I eventually landed at a very interesting link, right here:
http://www.joelonsoftware.com/articles/Unicode.html...
This explains what the UTF-8 is for very nicely and it also lets me feel slightly better about completely deleting that line, because I have it in a meta tag telling my browser that the page is in xhtml UTF-8 under the header anyway:
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
Thanks again for the response!
also, you can set the favicon in the dashboard, just so you know,