-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jquery error when posting tickets as user #47
Comments
hello @vasilejianu, The HTTP error 500 error you're getting is generated in Laravel and not in jquery itself. In PanicHD there are some e-mail notifications active by default, but if you don't have all email parameters correctly filled up in your Laravel app or PanicHD or they don't work, when you add a new ticket you will get the error you have specified. You may even check you Laravel log to view that error traceback. Do check this, please follow these steps:
|
[2021-06-23 12:08:35] local.ERROR: Attempt to read property "id" on null {"userId":1,"exception":"[object] (ErrorException(code: 0): Attempt to read property "id" on null at F:\dev\apex-windows\vendor\panichd\panichd\src\Models\Ticket.php:835) |
Hi @vasilejianu, As you may see at the beginning of your error traceback, it starts in "panichd\src\Models\Ticket.php" at line 835. This line contains:
You may use Laravel tinker to check what do you get in your Laravel app when executing this code:
If you have PanicHD correctly configured, you should get at least one member account instance. If I do this in my local app I get: Please share here what do you get with it. If you get null result, you should review your Laravel users table in your database, and check if your admin account has "panichd_admin" field value "1" |
ok that makes sense now , its my fault |
Hi @vasilejianu, I'm glad I could help you. Thanks for your quick response |
i think now im facing the email problem you mentioned above [2021-06-24 18:04:15] local.ERROR: Address in mailbox given [] does not comply with RFC 2822, 3.6.2. {"userId":24,"exception":"[object] (Swift_RfcComplianceException(code: 0): Address in mailbox given [] does not comply with RFC 2822, 3.6.2. at F:\dev\apex-windows\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Mime\Headers\MailboxHeader.php:355) |
while creating a ticket as user the window doesn't close after clicking add
I checked the console and it throws a jquery error
jquery-3.4.1.min.js:2 POST http://127.0.0.1:8000/tickets 500 (Internal Server Error)
send @ jquery-3.4.1.min.js:2
ajax @ jquery-3.4.1.min.js:2
ajax_form_submit @ create:380
(anonymous) @ create:361
dispatch @ jquery-3.4.1.min.js:2
v.handle @ jquery-3.4.1.min.js:2
The text was updated successfully, but these errors were encountered: