matomo-org / matomo-for-wordpress

Get a fully functioning Matomo Analytics for your WordPress. Star us on Github? +1. Matomo is the leading open alternative to Google Analytics that gives you full control over your data. Privacy is built-in. 100% data ownership, no one else can see your data. We love Pull Requests!
https://matomo.org
GNU General Public License v3.0
118 stars 25 forks source link

Personal Email Reports : PDF generation failure #98

Closed extremeshok closed 4 years ago

extremeshok commented 4 years ago

When HTML is used, the report generates perfectly.

When PDF is used, the following error is thrown: Opera Snapshot_2019-11-20_022900 Opera Snapshot_2019-11-20_023155

view source of the error page %PDF-1.7 %]_we-WtT홨Υw.{r8 /Filter /FlateDecode /DecodeParms << /Predictor 15 /Colors 3 /BitsPerComponent 8 /Columns 1050 >> /Length 24633 >> stream xǜxď٩'Ͳ^t<I HH* 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 341.703539 186.480000 352.179539] /P 171 0 R /NM (0039-0012) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product-category/locksmith-tools/)>> /H /I>> endobj 41 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 324.128736 167.913000 334.604736] /P 171 0 R /NM (0039-0013) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product/honda-city-door-lock/)>> /H /I>> endobj 42 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 306.553933 295.029000 317.029933] /P 171 0 R /NM (0039-0014) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product/honda-hon66-2-plus-1-remote-key-blank-without-transponder-space/)>> /H /I>> endobj 43 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 288.979130 278.010000 299.455130] /P 171 0 R /NM (0039-0015) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product/lishi-2-in-1-auto-lock-pick-decoder-suzuki-hu87/)>> /H /I>> endobj 44 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 271.404327 275.616000 281.880327] /P 171 0 R /NM (0039-0016) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product/lishi-2-in-1-auto-lock-pick-decoder-toyota-toy38r-toy41/)>> /H /I>> endobj 45 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 253.829523 296.154000 264.305523] /P 171 0 R /NM (0039-0017) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product/vw-passat-b5-transponder-key-blank-new-with-excellent-quality/)>> /H /I>> endobj 46 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 236.254720 58.869000 246.730720] /P 171 0 R /NM (0039-0018) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/shop/)>> /H /I>> endobj 47 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 218.679917 312.471000 229.155917] /P 171 0 R /NM (0039-0019) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/checkout/order-received/127811/?key=wc_order_Adn33Un0Gf20&utm_nooverride=1&amt=194.33&cc=USD&cm={"order_id":127811,"order_key":"wc_order_Adn33n0Gf20"}&st=Completed&tx=16E7430W1264941D)>> /H /I>> endobj 48 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 201.105114 293.445000 211.581114] /P 171 0 R /NM (0039-0020) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/de/produkt/goso-bauschlosserwerkzeuge-honda-lockpick/)>> /H /I>> endobj 49 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 183.530311 47.475000 194.006311] /P 171 0 R /NM (0039-0021) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/es/)>> /H /I>> endobj 50 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 165.955508 80.847000 176.431508] /P 171 0 R /NM (0039-0022) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/for/dodge/)>> /H /I>> endobj 51 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 148.380705 61.425000 158.856705] /P 171 0 R /NM (0039-0023) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/for/dodge/)>> /H /I>> endobj 52 0 obj <</Type /Annot /Subtype /Link /Rect [31.181457 552.601177 34.214457 563.077177] /P 175 0 R /NM (0041-0000) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/)>> /H /I>> endobj 53 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 535.026374 90.459000 545.502374] /P 175 0 R /NM (0041-0001) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/my-account/)>> /H /I>> endobj 54 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 517.451571 122.337000 527.927571] /P 175 0 R /NM (0041-0002) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/my-account/orders/)>> /H /I>> endobj 55 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 499.876768 54.945000 510.352768] /P 175 0 R /NM (0041-0003) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/cart/)>> /H /I>> endobj 56 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 482.301964 96.219000 492.777964] /P 175 0 R /NM (0041-0004) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/maintenance/)>> /H /I>> endobj 57 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 464.727161 283.581000 475.203161] /P 175 0 R /NM (0041-0005) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/es/producto/lishi-2-en-1-de-bloqueo-automático-recoger-chrysler-cy-24-camiones/)>> /H /I>> endobj 58 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 447.152358 105.732000 457.628358] /P 175 0 R /NM (0041-0006) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/for/volkswagen/)>> /H /I>> endobj 59 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 429.577555 140.004000 440.053555] /P 175 0 R /NM (0041-0007) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/for/volkswagen/page/2/)>> /H /I>> endobj 60 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 412.002752 56.709000 422.478752] /P 175 0 R /NM (0041-0008) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/help/)>> /H /I>> endobj 61 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 394.427949 165.393000 404.903949] /P 175 0 R /NM (0041-0009) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/my-account/?action=register)>> /H /I>> endobj 62 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 376.853145 156.555000 387.329145] /P 175 0 R /NM (0041-0010) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/my-account/support-ticket/)>> /H /I>> endobj 63 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 359.278342 156.312000 369.754342] /P 175 0 R /NM (0041-0011) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product-category/car-keys/)>> /H /I>> endobj 64 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 341.703539 154.548000 352.179539] /P 175 0 R /NM (0041-0012) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product-category/gadgets/)>> /H /I>> endobj 65 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 324.128736 186.480000 334.604736] /P 175 0 R /NM (0041-0013) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product-category/locksmith-tools/)>> /H /I>> endobj 66 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 306.553933 167.913000 317.029933] /P 175 0 R /NM (0041-0014) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product/honda-city-door-lock/)>> /H /I>> endobj 67 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 288.979130 295.029000 299.455130] /P 175 0 R /NM (0041-0015) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product/honda-hon66-2-plus-1-remote-key-blank-without-transponder-space/)>> /H /I>> endobj 68 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 271.404327 278.010000 281.880327] /P 175 0 R /NM (0041-0016) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product/lishi-2-in-1-auto-lock-pick-decoder-suzuki-hu87/)>> /H /I>> endobj 69 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 253.829523 275.616000 264.305523] /P 175 0 R /NM (0041-0017) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product/lishi-2-in-1-auto-lock-pick-decoder-toyota-toy38r-toy41/)>> /H /I>> endobj 70 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 236.254720 296.154000 246.730720] /P 175 0 R /NM (0041-0018) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product/vw-passat-b5-transponder-key-blank-new-with-excellent-quality/)>> /H /I>> endobj 71 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 218.679917 58.869000 229.155917] /P 175 0 R /NM (0041-0019) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/shop/)>> /H /I>> endobj 72 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 201.105114 312.471000 211.581114] /P 175 0 R /NM (0041-0020) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/checkout/order-received/127811/?key=wc_order_Adn3XZUn0320&utm_nooverride=1&amt=194.33&cc=USD&cm={"order_id":127811,"order_key":"wc_order_Adn3X3f20"}&st=Completed&tx=16E743W1264941D)>> /H /I>> endobj 73 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 183.530311 293.445000 194.006311] /P 175 0 R /NM (0041-0021) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/de/produkt/goso-bauschlosserwerkzeuge-honda-lockpick/)>> /H /I>> endobj 74 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 165.955508 47.475000 176.431508] /P 175 0 R /NM (0041-0022) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/es/)>> /H /I>> endobj 75 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 148.380705 61.425000 158.856705] /P 175 0 R /NM (0041-0023) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/es/)>> /H /I>> endobj 76 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 523.776374 162.360000 534.252374] /P 185 0 R /NM (0046-0000) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/my-account/?action=register)>> /H /I>> endobj 77 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 506.201571 295.524000 516.677571] /P 185 0 R /NM (0046-0001) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product/honda-hon66-2-plus-1-remote-key-blank-without-transponder-space/)>> /H /I>> endobj 78 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 488.626768 139.077000 499.102768] /P 185 0 R /NM (0046-0002) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product-category/other/)>> /H /I>> endobj 79 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 471.051964 151.713000 481.527964] /P 185 0 R /NM (0046-0003) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://xxx.com/product/goso-lock-spinner/)>> /H /I>> endobj 80 0 obj <</Type /Annot /Subtype /Link /Rect [31.181457 563.851177 292.775457 574.327177] /P 191 0 R /NM (0049-0000) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (http://https//secure.comodo.com/ttb_searcher/trustlogo?v_querytype=W&v_shortname=SECEV&v_search=https://xxx.com/&x=1&y=1)>> /H /I>> endobj 81 0 obj <</Type /Annot /Subtype /Link /Rect [31.181457 552.601177 294.665457 563.077177] /P 193 0 R /NM (0050-0000) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (http://https//my.xxx.com/wp-content/uploads/cm/gosolocksmithtools_20in1pickkit_bag.jpg?_ga=2.1177137.1673020694.1574129983-2099244329.1557710061)>> /H /I>> endobj 82 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 535.026374 294.129000 545.502374] /P 193 0 R /NM (0050-0001) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (http://https//my.xxx.com/wp-content/uploads/cm/ne71rlishi2in1.jpg)>> /H /I>> endobj 83 0 obj <</Type /Annot /Subtype /Link /Rect [31.181457 308.624756 91.931457 319.100756] /P 211 0 R /NM (0059-0000) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://matomo.org/faq/general/#faq_144)>> /H /I>> endobj 84 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 291.049953 80.289000 301.525953] /P 211 0 R /NM (0059-0001) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://matomo.org/faq/general/#faq_144)>> /H /I>> endobj 85 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 273.475150 137.313000 283.951150] /P 211 0 R /NM (0059-0002) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (http://google.com/search?q=lishi+geely)>> /H /I>> endobj 86 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 255.900346 171.990000 266.376346] /P 211 0 R /NM (0059-0003) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (http://bing.com/search?q=transponder+code+t5)>> /H /I>> endobj 87 0 obj <</Type /Annot /Subtype /Link /Rect [31.181457 308.624756 185.324457 319.100756] /P 213 0 R /NM (0060-0000) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://matomo.org/faq/general/#faq_144)>> /H /I>> endobj 88 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 291.049953 173.682000 301.525953] /P 213 0 R /NM (0060-0001) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://matomo.org/faq/general/#faq_144)>> /H /I>> endobj 89 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 273.475150 171.990000 283.951150] /P 213 0 R /NM (0060-0002) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (http://bing.com/search?q=transponder+code+t5)>> /H /I>> endobj 90 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 255.900346 137.313000 266.376346] /P 213 0 R /NM (0060-0003) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (http://google.com/search?q=lishi+geely)>> /H /I>> endobj 91 0 obj <</Type /Annot /Subtype /Link /Rect [31.181457 308.624756 106.241457 319.100756] /P 215 0 R /NM (0061-0000) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (http://baidu.com/)>> /H /I>> endobj 92 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 291.049953 118.341000 301.525953] /P 215 0 R /NM (0061-0001) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://fumamx.com/)>> /H /I>> endobj 93 0 obj <</Type /Annot /Subtype /Link /Rect [31.185000 273.475150 300.150000 283.951150] /P 215 0 R /NM (0061-0002) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (https://www.paypal.com/webapps/hermes?flow=1-P&ulReturn=true&country.x=GB&hermesLoginRedirect=xoon&locale.x=en_GB&mfid=157412364793_87a923f107a9&rm=2&token=5U1442576348906&useraction=commit)>> /H /I>> endobj 94 0 obj <</Type /Annot /Subtype /Link /Rect [2.835000 1.000000 19.005000 2.156000] /P 249 0 R /NM (0078-0000) /M (D:20191120003232+00'00') /F 4 /Border [0 0 0] /A <</S /URI /URI (http://www.tcpdf.org)>> /H /I>> endobj 494 0 obj <</Title (

tsteur commented 4 years ago

I did some search about this but can't find much on the internet. Tested PDF report as well with various data and reports and graphs but works always fine. Any chance you could paste your "Matomo => System report" output here? I would for example try to install same plugins etc and see if there's an issue.

Any chance you could check if the PHP setting zlib.output_compression is enabled?

extremeshok commented 4 years ago

Opera Snapshot_2019-11-20_113828 ``

Matomo

Endpoints

Crons

Mandatory checks

Optional checks

Matomo Settings

WordPress

WordPress Plugins

MU Plugins

Plugins

Server

Database

tsteur commented 4 years ago

@extremeshok any chance you could check your PHP error logs or temporarily enable WP_DEBUG?

tsteur commented 4 years ago

I installed all the same plugins and was able to reproduce this issue. Creating a fix for this now which will be likely released tomorrow.