-
AuthorPosts
-
July 6, 2010 at 6:24 pm #152349
Hi there
When you click on the PDF icon in an article of the site, the following error occurs:
Parse error: syntax error, unexpected $end in /home/xxxxx/public_html/libraries/tcpdf/tcpdf.php on line 6069
————
6065 function RegularPolygon($x0, $y0, $r, $ns, $angle = 0, $draw_circle = false, $style = “”,
$line_style = array(), $fill_color = array(), $circle_style = “”, $circle_outLine_style =
array(), $circle_fill_color = array()) {
if (3 > $ns) {
$ns = 3;
}
6069 if ($draw_circle) {
$this->Circle($x0, $y0, $r, 0, 360, $circle_style, $circle_outLine_style,
$circle_fill_color);
}
$p = array();
for ($i = 0; $i < $ns; $i++) {
$a = $angle + ($i * 360 / $ns);
$a_rad = deg2rad((float) $a);
$p[] = $x0 + ($r * sin($a_rad));
$p[] = $y0 + ($r * cos($a_rad));
}
$this->Polygon($p, $style, $line_style, $fill_color);
6080 }——————————
I compared this live PHP file to the one which I did on my localhost and it ended on line 6069.
So I then took the remainder of the code and added it here and now the following error occurs:
Parse error: syntax error, unexpected ‘<‘ in /home/xxxxx/public_html/libraries/tcpdf/tcpdf.php on line 3212
———
//Pages root
$this->offsets[1]=strlen($this->buffer);
$this->_out(‘1 0 obj’);
$this->_out(‘<</Type /Pages’);
$kids=’/Kids [‘;
3212 for($i=0;$i><$nb;$i++) {
$kids.=(3+2*$i).’ 0 R ‘;
}
$this->_out($kids.’]’);
$this->_out(‘/Count ‘.$nb);
$this->_out(sprintf(‘/MediaBox [0 0 %.2f %.2f]’,$wPt,$hPt));
$this->_out(‘>>’);
$this->_out(‘endobj’);
}/**
————–
Do you have any idea what is going on here or how I can fix it?
Thanks!
TSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 8, 2010 at 4:11 am #349287sorry i could not help you in this case, can you pls post your issue on the joomla’s forum,
Thanks
July 12, 2010 at 4:26 pm #349699Thanks Tienhc
It does not look like we have access to the main forum.. or am I having a blonde moment? Do you need an advanced subscription to do that?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 16, 2010 at 2:07 am #350030i do make sure possible resolve this issue, can you pls give me the FTP account and the administrator via PM, i’ll check this issue for you
Thanks
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by Saguaros 14 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum