I can't see anything wrong with this, but I see the above exception occasionally in the logs. What's wrong?
PHP Fatal error: Cannot access protected property Exception::$message in /web/index.php on line 23
On line 23 I have,
echo '<?xml version=\'1.0\'?><error-response status="error"> <message><![CDATA['.$e->message.']]></message> </error-response>';
Use $e->getMessage()
instead of $e->message
because message is a protected property :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With