2025-07-25 19:39:59 [::1][-][-][error][application] Invalid extradata JSON structure: {…
- User
2025-07-25 19:39:59 [::1][-][-][error][application] Invalid extra_data JSON structure: { "order_reference_id":"PdQXOoBF53wbAVYGfLzUvhCkOaQXqx5HZy_bidlZ9MgQtIkZJrIEJxI8p1ioW1mZ", "order_success_id":"iZUZ7fK0TH63t9viTqc4Wj0Q0MZOI8Qn","order_cancel_id":"ywMOIeQ99Q8XReTSd96jZcosHZE1Yeaz"}; Context: { "extra data": { "order_reference_id": "PdQXOoBF53wbAVYGfLzUvhCkOaQXqx5HZy_bidlZ9MgQtIkZJrIEJxI8p1ioW1mZ", "order_success_id": "iZUZ7fK0TH63t9viTqc4Wj0Q0MZOI8Qn", "order_cancel_id": "ywMOIeQ99Q8XReTSd96jZcosHZE1Yeaz" }, "method": "app\components\services\SessionUserService::writeSession", "file": "/app/components/services/SessionUserService.php", "line": 162 }
private function validateJsonData(array jsonData): bool { this->logDebug("validateJsonData called with keys: " . implode(', ', array_keys(jsonData)), ], 'validation');
- Assistant
The root cause of the "Invalid extra_data JSON structure" error in your log is due to a key mismatch between your allowed keys array and the keys you are trying to write into the session.
Problem: