Do you know this error message:
Parse error: syntax error, unexpected end of file in /var/www/html/scj/tube/index.php(0) : eval()'d code on line 658
I did an import of my running templates into my test-system.
This templates are containing some PHP code. And now I get the error above.
It seems that the old templates without PHP code are working.
Do you have any hint, why this happens?
Parse error
Re: Parse error
it's really easy - you have en error in your php code.
Don't forget to run script update
-
- Posts: 97
- Joined: Tue Mar 15, 2016 9:41 pm
Re: Parse error
Is it possible that something will go wrong in case of template SQL export and then import?
The templates are working on a running installation.
The second installation has a problem after import.
The templates are working on a running installation.
The second installation has a problem after import.
Re: Parse error
I don't think so.
Anyway there's no point to guess, reupload templates many times and so.
Just check your code and that's it.
Anyway there's no point to guess, reupload templates many times and so.
Just check your code and that's it.
Don't forget to run script update
-
- Posts: 97
- Joined: Tue Mar 15, 2016 9:41 pm
Re: Parse error
I checked my code.
Following code is working on my running site:
<?php if (!isset($_SESSION['user'])) {?>
<li><a data-fkt="2" href='/action/register'>Register FREE account!</a></li>
<? } ?>
This will produce the error on my test system.
So I have to change this code on my test system to:
<? if (!isset($_SESSION['user'])) {?>
<li><a data-fkt="2" href='/action/register'>Register FREE account!</a></li>
<? } ?>
But then this is not executed. It is printed on the page instead without parsing.
Is there any PHP.INI option necessary to parse the php in your templates?
Following code is working on my running site:
<?php if (!isset($_SESSION['user'])) {?>
<li><a data-fkt="2" href='/action/register'>Register FREE account!</a></li>
<? } ?>
This will produce the error on my test system.
So I have to change this code on my test system to:
<? if (!isset($_SESSION['user'])) {?>
<li><a data-fkt="2" href='/action/register'>Register FREE account!</a></li>
<? } ?>
But then this is not executed. It is printed on the page instead without parsing.
Is there any PHP.INI option necessary to parse the php in your templates?
-
- Posts: 97
- Joined: Tue Mar 15, 2016 9:41 pm
Re: Parse error
What do I have to use instead?
This is working on my running site. Why?
This is working on my running site. Why?
Re: Parse error
Don't forget to run script update