#0 [0]TypeError in tcpdf.php line 18399

array_push(): Argument #1 ($array) must be of type array, null given

  1. }
  2. }
  3. $cellw += (($colspan - 1) * $cellspacing['H']);
  4. // increment column indicator
  5. $colid += $colspan;
  6. // add rowspan information to table element
  7. if ($rowspan > 1) {
  8. $trsid = array_push($dom[$table_el]['rowspans'], array('trid' => $trid, 'rowspan' => $rowspan, 'mrowspan' => $rowspan, 'colspan' => $colspan, 'startpage' => $this->page, 'startcolumn' => $this->current_column, 'startx' => $this->x, 'starty' => $this->y));
  9. }
  10. $cellid = array_push($dom[$trid]['cellpos'], array('startx' => $this->x));
  11. if ($rowspan > 1) {
  12. $dom[$trid]['cellpos'][($cellid - 1)]['rowspanid'] = ($trsid - 1);
  13. }
  14. // push background colors
  15. if (isset($dom[$parentid]['bgcolor']) AND ($dom[$parentid]['bgcolor'] !== false)) {
  16. $dom[$trid]['cellpos'][($cellid - 1)]['bgcolor'] = $dom[$parentid]['bgcolor'];
  17. }
  18. // store border info
  19. if (!empty($tdborder)) {

Call Stack

  1. in tcpdf.php line 18399
  2. at array_push() in tcpdf.php line 18399
  3. at TCPDF->writeHTML() in Pdf.php line 309
  4. at pdf->article()
  5. at ReflectionMethod->invokeArgs() in Container.php line 345
  6. at Container->invokeReflectMethod() in Controller.php line 110
  7. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  8. at Pipeline->think\{closure}() in Pipeline.php line 66
  9. at Pipeline->then() in Controller.php line 113
  10. at Controller->exec() in Dispatch.php line 52
  11. at Dispatch->run() in Route.php line 755
  12. at Route->think\{closure}() in Pipeline.php line 59
  13. at Pipeline->think\{closure}() in Pipeline.php line 66
  14. at Pipeline->then() in Route.php line 756
  15. at Route->dispatch() in Http.php line 208
  16. at Http->dispatchToRoute() in Http.php line 198
  17. at Http->think\{closure}() in Pipeline.php line 59
  18. at Pipeline->think\{closure}() in MultiApp.php line 51
  19. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  20. at Pipeline->think\{closure}() in AllowCrossDomain.php line 61
  21. at AllowCrossDomain->handle()
  22. at call_user_func() in Middleware.php line 134
  23. at Middleware->think\{closure}() in Pipeline.php line 85
  24. at Pipeline->think\{closure}() in SessionInit.php line 58
  25. at SessionInit->handle()
  26. at call_user_func() in Middleware.php line 134
  27. at Middleware->think\{closure}() in Pipeline.php line 85
  28. at Pipeline->think\{closure}() in LoadLangPack.php line 53
  29. at LoadLangPack->handle()
  30. at call_user_func() in Middleware.php line 134
  31. at Middleware->think\{closure}() in Pipeline.php line 85
  32. at Pipeline->think\{closure}() in Pipeline.php line 66
  33. at Pipeline->then() in MultiApp.php line 52
  34. at MultiApp->handle()
  35. at call_user_func() in Middleware.php line 134
  36. at Middleware->think\{closure}() in Pipeline.php line 85
  37. at Pipeline->think\{closure}() in Install.php line 19
  38. at Install->handle()
  39. at call_user_func() in Middleware.php line 134
  40. at Middleware->think\{closure}() in Pipeline.php line 85
  41. at Pipeline->think\{closure}() in AllowCrossDomain.php line 61
  42. at AllowCrossDomain->handle()
  43. at call_user_func() in Middleware.php line 134
  44. at Middleware->think\{closure}() in Pipeline.php line 85
  45. at Pipeline->think\{closure}() in SessionInit.php line 58
  46. at SessionInit->handle()
  47. at call_user_func() in Middleware.php line 134
  48. at Middleware->think\{closure}() in Pipeline.php line 85
  49. at Pipeline->think\{closure}() in Pipeline.php line 66
  50. at Pipeline->then() in Http.php line 199
  51. at Http->runWithRequest() in Http.php line 162
  52. at Http->run() in index.php line 29

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_X_FORWARDED_FOR 220.181.108.17
HTTP_CLIENT_IP 220.181.108.17
HTTP_USER_AGENT Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html
HTTP_SEC_CH_UA_MOBILE ?0
HTTP_SEC_CH_UA " Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"
HTTP_REFERER http://www.baidu.com/search/spider.html
HTTP_ORIGIN http://www.baidu.com/search/spider.html
HTTP_ACCEPT */*
HTTP_HOST www.dazhe5.cn
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME dazhe5.cn
SERVER_PORT 443
SERVER_ADDR 172.17.0.74
REMOTE_PORT 47816
REMOTE_ADDR 59.47.232.78
SERVER_SOFTWARE nginx/1.24.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/dazhe/public
DOCUMENT_URI /index.php
REQUEST_URI /api/app-article-11181.pdf
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/api/app-article-11181.pdf
SCRIPT_FILENAME /www/wwwroot/dazhe/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1731676951.7706
REQUEST_TIME 1731676951