Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • uniwebsa Friend
    #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!
    T

    Saguaros Moderator
    #349287

    sorry i could not help you in this case, can you pls post your issue on the joomla’s forum,

    Thanks

    uniwebsa Friend
    #349699

    Thanks 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 Moderator
    #350030

    i 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

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Saguaros 14 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum