I have a similar problem. Since i updated from 2.7.2 to 3.5.1 mails are send without invoice attached. I use local phantomjs 2.1.1
In laravel-error.log there is the message:
<em>
[2017-07-30 14:54:52] production.ERROR: PhantomJS - Unable to decode: Invoice Ninja | Kostenlose Online Open-Source Rechnungsausstellung var NINJA = NINJA || {}; NINJA.fontSize = 9; NINJA.isRegistered = false; window.onerror = function (errorMsg, url, lineNumber, column, error) { if (errorMsg.indexOf('Script error.') > -1) { return; } try { // Use StackTraceJS to p arse the error context if (error) { var message = error.message ? error.message : error; StackTrace.fromError(error).then(functio n (result) { var gps = new StackTraceGPS(); gps.findFunctionName(result[0]).then(function (result) { logError (errorMsg + ': ' + JSON.stringify(result)); }); }); } else { logError(errorMsg); } trackEvent('/error', errorMsg); } catch (err) { } return false; } function logError(message) { $.ajax({ type: 'GET', url: 'https://rpi.it-support-ffm.de/ninja/public/log_error', data: 'error=' + encodeURIComponent(message) + '&url=' + encodeURIC omponent(window.location) }); } // http://t4t5.github.io/sweetalert/ function sweetConfirm(success, text, title) { title = title || "Bis t du dir sicher?"; swal({ //type: "warning", //confirmButtonColor: "#DD6B55", title: title, text: text, cancelButtonText: "Nein", confirmButtonText: "Ja", showCancelButton: true, closeOnConfirm: false, allowOutside Click: true, }).then(function() { success(); swal.close(); }); } /* Set the defaults for DataTables initialisati on */ $.extend(true, $.fn.dataTable.defaults, { "bSortClasses": false, "sDom": "tl", "sPaginationType": "bootstrap", "bInfo": tru e, "oLanguage": { 'sEmptyTable': "Es sind keine Daten vorhanden", 'sLengthMenu': '_MENU_ Zeilen', 'sInfo': "Zeige Eintrag _ST ART_ bis _END_ von _TOTAL_", 'sSearch': '' } }); /* This causes problems with some languages. ie, fr_CA var appLocale = 'de'; */ function fbq() { // do nothing } ; window._fbq = window._fbq || []; {"context":"PHP","user_id":1,"acc ount_id":"1","user_name":"Invoice User 1","method":"PUT","url":"https://server1/ninja/public/invoices/36","previous":"https://server1/ninja/public/invoice s/36/edit","user_agent":"Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko","ip":"1</em>92.168.0.1","count":1,"is_console":"no","is_api":"no","db_server":"mysql"} []
The behavior is expected when i set debug mode to true.
When i make an error_log in file “ninja/app/Libraries/CurlUtils.php” on the $response variable the response is a base64 string with debug mode = true (e.g. <head></head><body>data:application/pdf;base64,JVBERi0xLjMKJf////8KNyAwIG9iago8PAovVHlwZSAvRXh0R1N0YXRlCi9jYSAxCj4+CmVuZG9iago4IDAgb2JqCjw8Ci9UeXBlIC9FeHRHU3RhdGUKL0NBIDEKP j4KZW5kb2JqCjUgMCBvYmoKPDwKL1R5cGUgL1BhZ2UKL1BhcmVudCAxIDAgUgovTWVkaWFCb3ggWzAgMCA1OTUuMjggODQxLjg5XQovQ29udGVudHMgMyAwIFIKL1Jlc291cmNlcyA0IDAgUgo+Pg
) and normal source code with debug set to false (e.g.` PHP message: <head>
<!-- Source: https://github.com/invoiceninja/invoiceninja -->
<!-- Version: 3.5.1 -->
<meta charset=“utf-8”>
<title>Invoice Ninja | Kostenlose Online Open-Source Rechnungsausstellung</title>
<meta name="description" content="InvoiceNinja ist eine kostenlose, quelloffene Lösung
chöne Rechnungen erstellen und verschicken, von jedem Gerät mit Internetzugang. Deine Kunden k
en.">
<link href=“https://raspberrypi/ninja/public/favicon-v2.png” rel=“shortcut icon” type=
<meta property="og:site_name" content="Invoice Ninja">
<meta property="og:url" content="https://raspberrypi/ninja/public">
<meta property="og:title" content="Invoice Ninja">
<meta property="og:image" content="https://raspberrypi/ninja/public/images/round_logo.`).
Does anyone has an idea?