Closed suntrop closed 8 years ago
HI @suntrop I'd need to see a complete code snippet to diagnose further. Can you try sending with this example and then post the output?
I'll check this tomorrow when I am back. By now I think the error has got something to do with the CMS (Processwire), because if I bypass the CMS and run the script directly I get the complete error instantly.
Asked a friend to test. This is the output invalid data format/type 1300 field 'options.click_tracking' is of type 'number', but needs to be of type 'boolean'
While that was my first mistake I already know what was wrong, but I don't know why I can't dump the complete exception. I want to log the errors.
But as I said, I think it is a problem caused by processwire CMS
OK thanks @suntrop - I'm going to go ahead and close, but feel free to re-open or create new issues for anything you encounter.
Hi
I tried to configure a simple email (never used SP before) and run out of memory if I want to show the $err within the catch block.
First what I have done: Installed SparkPost via composer and saw an error Guzzle was missing. So I ran the composer command to install Guzzle as well and uploaded the vendor folder again to my server. (Have composer only installed locally) I used the code from the documentation, only changed the email settings and put in my API key (from a subaccount with SMPT enabled).
When I load my page to send the email it stays white and my apache log says:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 259260416 bytes)
If I comment out the
var_dump
I see "Whoops! Something went wrong".But how do I know what is wrong if I can't look at the error? Perhaps I did installed SparkPost or Guzzle wrong? How do I check if they are installed correctly?
Using the script from within a CMS Renamed to
$spark_err
to avoid overloading the variable PHP 5.5 on FreeBSD 10.1 with Apache 2EDIT: The SparkPost dashboard shows no activity