Skip to content
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

ajax notices onSubmit #36

Open
cfoellmann opened this issue Sep 2, 2019 · 0 comments
Open

ajax notices onSubmit #36

cfoellmann opened this issue Sep 2, 2019 · 0 comments

Comments

@cfoellmann
Copy link
Collaborator

cfoellmann commented Sep 2, 2019

I get some notices when submitting the apply form.

  • We have custom fields defined.
  • The application is saved and mailed correctly.
    But I want it to be clean.

Console output by query monitor:

query-monitor.js:324 {type: "notice", message: "Undefined index: input_file_multi_lebenslauf-weitere-dokumente-1", file: "wp-content/plugins/job-postings/include/class-job-application-submit.php", line: 332, stack: Array(2), …}component: "Plugin: job-postings"file: "wp-content/plugins/job-postings/include/class-job-application-submit.php"line: 332message: "Undefined index: input_file_multi_lebenslauf-weitere-dokumente-1"stack: Array(2)0: "JobApplicationSubmit::ajax_submit()"1: "do_action('wp_ajax_jobslisting_apply_now')"length: 2__proto__: Array(0)type: "notice"__proto__: Object
(anonymous) @ query-monitor.js:324
dispatch @ jquery.js:3
r.handle @ jquery.js:3
trigger @ jquery.js:3
x @ jquery.js:4
c @ jquery.js:4
XMLHttpRequest.send (async)
(anonymous) @ VM289:1
send @ jquery.js:4
ajax @ jquery.js:4
(anonymous) @ script.js?v=2.3.0:359
dispatch @ jquery.js:3
r.handle @ jquery.js:3
query-monitor.js:324 {type: "notice", message: "Undefined variable: admin_email", file: "wp-content/plugins/job-postings/include/class-job-notifications.php", line: 265, stack: Array(5), …}component: "Plugin: job-postings"file: "wp-content/plugins/job-postings/include/class-job-notifications.php"line: 265message: "Undefined variable: admin_email"stack: Array(5)0: "JobNotifications::getAllFields()"1: "apply_filters('job-postings/email/merge_tags')"2: "JobNotifications::sendEntryEmail()"3: "JobApplicationSubmit::ajax_submit()"4: "do_action('wp_ajax_jobslisting_apply_now')"length: 5__proto__: Array(0)type: "notice"__proto__: Object
(anonymous) @ query-monitor.js:324
dispatch @ jquery.js:3
r.handle @ jquery.js:3
trigger @ jquery.js:3
x @ jquery.js:4
c @ jquery.js:4
XMLHttpRequest.send (async)
(anonymous) @ VM289:1
send @ jquery.js:4
ajax @ jquery.js:4
(anonymous) @ script.js?v=2.3.0:359
dispatch @ jquery.js:3
r.handle @ jquery.js:3
query-monitor.js:324 {type: "notice", message: "Undefined index: value", file: "wp-content/plugins/job-postings/include/class-job-notifications.php", line: 188, stack: Array(5), …}component: "Plugin: job-postings"file: "wp-content/plugins/job-postings/include/class-job-notifications.php"line: 188message: "Undefined index: value"stack: Array(5)0: "JobNotifications::getAllFields()"1: "apply_filters('job-postings/email/merge_tags')"2: "JobNotifications::sendEntryEmail()"3: "JobApplicationSubmit::ajax_submit()"4: "do_action('wp_ajax_jobslisting_apply_now')"length: 5__proto__: Array(0)type: "notice"__proto__: Object
(anonymous) @ query-monitor.js:324
dispatch @ jquery.js:3
r.handle @ jquery.js:3
trigger @ jquery.js:3
x @ jquery.js:4
c @ jquery.js:4
XMLHttpRequest.send (async)
(anonymous) @ VM289:1
send @ jquery.js:4
ajax @ jquery.js:4
(anonymous) @ script.js?v=2.3.0:359
dispatch @ jquery.js:3
r.handle @ jquery.js:3
query-monitor.js:324 

Anyone having similar output?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant