Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-05-16 17:48:49
- mybureau
- New Member
- Registered: 2007-05-16
- Posts: 2
Parse error: syntax error, unexpected $end, expecting T_VARIABLE or '$
Hi, I just were trying to install the textpattern, but all I got was this message?
Parse error: syntax error, unexpected $end, expecting T_VARIABLE or ‘$’ in /home/ourburea/public_html/ilari/textpattern-4.0.4/textpattern/lib/txplib_misc.php on line 1266
Here is the lines from 1260-1269
// ———————————————————————————————
function build_file_path($base,$path)
{
$base = rtrim($base,’/\\’);
$path = ltrim($path,’/\\’);
return $base.DIRECTORY_SEPARATOR.$path; ——This is the line 1266 }
// ———————————————————————————————
I tried to google but didn’t find anything?
Thanks!
Offline
Re: Parse error: syntax error, unexpected $end, expecting T_VARIABLE or '$
That looks okay. Perhaps the txplib_misc.php file got damaged at some other place. Try re-installing.
Here that part of the code looks like this (exactly the same as far as I can see):
function build_file_path($base,$path)
{
$base = rtrim($base,'/\\');
$path = ltrim($path,'/\\');
return $base.DIRECTORY_SEPARATOR.$path;
}
Last edited by ruud (2007-05-16 18:06:05)
Offline
#3 2007-05-16 18:57:40
- mybureau
- New Member
- Registered: 2007-05-16
- Posts: 2
Re: Parse error: syntax error, unexpected $end, expecting T_VARIABLE or '$
1Thanks, I tried to re-install with different ftp software and now it’s works perfectly! Hurray! Thanks anyway for quick response
Offline