Closed funkdoobiest closed 4 years ago
What is the content of the E_NOTICE
. Do you have a trace?
Closing due to inactivity.
There is no Exception with "error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);". That is ne problem. When setting "error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);" and you create a new campaign "$segmentClass" is null.
Hi @funkdoobiest, I've tried setting the error reporting to the levels you described, but no exception is thrown when creating a new campaign. I tried setting the error_reporting
in config/app.php
and the `AppServiceProvider. Where did you configure the error_reporting?
Closing due to inactivity.
Hi,
following function is throwing an exception on our production system, where error reporting is like
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
PHP 7.4.5 Mailcoach 2.11.5
Class "Models\Campaign":
The problem is the try catch on "unserialize". unserialize is throwing an "E_NOTICE" and returns FALSE. When error reporting is without "E_NOTICE" $segmentClass is FALSE and "app($segmentClass)" is throwing an exception.
I tried to use my own model class for campaign, but in this case (edit or save campaign) the function is not getting called on custom model.