Closed j-jalving closed 4 months ago
We're fixing this error on the Statamic side, but @riasvdv I'd recommend using ::dispatch()
on this line instead of using event()
. In our dispatch
method, we set up the authenticated user so queued commits messages are made from the right person.
-event(new RedirectSaved($redirect));
+RedirectSaved::dispatch($redirect);
@jasonvarga thanks for the tip, will release a new version with that!
One of my clients notified me of an error that might have snuck in one of the more recents versions of Statamic Redirect (currently on 3.5.0). When saving a redirect a Server Error pops up. The changes are still being saved though!
The problem is, I can't seem to replicate this issue when testing locally (even when setting my env to production). This is the error I find in my servers error log: