0

Trying to debug this for a friend - While opening invoices in the admin interface, he gets half the page contents, and sees this in apache error log -

Undefined index: cols in /var/www/tools/tcpdf/tcpdf.php

Been trying to google it, but couldnt get anything substantial..

Any pointers would be helpful.

4

2 回答 2

0

显然您正在调试模式下运行....尝试评论以下行

文件:config/defines.inc.php

找到这条线

定义('_PS_MODE_DEV_',真);

并更改为false

于 2014-02-01T03:18:32.613 回答
0

Prestashop 的tcpdf.php需要从您的 invoice.tpl (或附件,如 header.tpl、invoice.tax-tab.tpl、footer.tpl…)中获得完美的HTML语法

检查这一点:

  • 所有<table>,<td><tr>已关闭

  • 一切<td>都在<tr>,一切都<tr><tables>

由于 Smarty 语法,使用 HTML Tidy 很复杂,这就是为什么,为了找到我的问题来自哪里,我将我的代码部分注释掉。

如果您的 Prestashop < 1.5.6.3,请查看此缓冲区修复

于 2015-12-08T09:22:01.393 回答