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

Pods 2.5 There was a server error with your AJAX request @Bi-directional field #2511

Closed
quasel opened this issue Dec 10, 2014 · 12 comments · Fixed by #2515
Closed

Pods 2.5 There was a server error with your AJAX request @Bi-directional field #2511

quasel opened this issue Dec 10, 2014 · 12 comments · Fixed by #2515
Assignees
Milestone

Comments

@quasel
Copy link
Member

quasel commented Dec 10, 2014

Edit Pod -> ACT -> Related Pod -> happens only for WP User/Cat/etc ...

JS Console:
Fatal error: Uncaught exception 'Exception' with message 'Related Pod not found' in /var/www/vhosts/just4us.eu/mq.just4us.eu/wp-content/plugins/pods/includes/general.php:145
Stack trace:
#0 [internal function]: pods_error(Object(Exception))
#1 {main}

thrown in /var/www/vhosts/just4us.eu/mq.just4us.eu/wp-content/plugins/pods/includes/general.php on line 145 (edited)

@Shelob9 Shelob9 added this to the Pods 2.5 milestone Dec 10, 2014
@Shelob9
Copy link
Contributor

Shelob9 commented Dec 10, 2014

@quasel Let me log in to their site to see the error in progress. It's happening when trying to set the bi-directional field in a pick field related to users. Error must be originating in PodsAPI::load_sister_fields(). Users is not currently extended by Pods, but that shouldn't be causing this.

screen shot 2014-12-10 at 9 19 41 am

@sc0ttkclark
Copy link
Member

This seems related to the display_errors default setting flip in 2.5

@sc0ttkclark
Copy link
Member

@sc0ttkclark sc0ttkclark self-assigned this Dec 12, 2014
@quasel
Copy link
Member Author

quasel commented Dec 19, 2014

Same issue with CPT - should i open a new Issue?

@Shelob9
Copy link
Contributor

Shelob9 commented Dec 19, 2014

@quasel Are you testing with the 2.X branch as it stands today and WordPress 4.1? I can't reproduce this locally with it, but maybe something else is going on for you.

@Shelob9 Shelob9 reopened this Dec 19, 2014
@quasel
Copy link
Member Author

quasel commented Dec 19, 2014

ajax

@Shelob9 Shelob9 modified the milestones: Pods 2.5, Pods 2.5.1 Dec 30, 2014
@quasel
Copy link
Member Author

quasel commented Jan 14, 2015

Seems this isn't solved entirely - it works for me with 2.5 (live and dev) but we had a report @slack support chat where this still happens ... @jamesgol did mention e8f5037#diff-f01d16819fcb44038b25d9cbc5778c56R1455 as starting point

@adamdunford
Copy link

Confirm this is not fixed. Pods 2.5.1.1 on WP 4.1:
image

@Shelob9
Copy link
Contributor

Shelob9 commented Feb 6, 2015

Yes I can confirm. Still an issue.

@Shelob9 Shelob9 modified the milestones: Pods 2.5.2, Pods 2.5.1 Feb 6, 2015
@sc0ttkclark
Copy link
Member

Check the JS console and let us know what you see, we are writing d (the return data) and json (the parsed json object from the return data) to the console for debug purposes on this specific error.

@jamesgol
Copy link
Contributor

jamesgol commented Feb 6, 2015

console.log( d ) prints: []
console.log( json ) prints: Object {}

If there is nothing eligible to be a bidirectional relationship on the sister pod it returns an empty object, so jQuery.isEmptyObject( json ) will be truthy and it'll print that error. Is that maybe supposed to be && instead of ||?

sc0ttkclark added a commit that referenced this issue Feb 6, 2015
@sc0ttkclark
Copy link
Member

Fixed via #2693

@Shelob9 Shelob9 reopened this Feb 27, 2015
@Shelob9 Shelob9 modified the milestones: Pods 2.5.3, Pods 2.5.2 Mar 2, 2015
@Shelob9 Shelob9 closed this as completed Mar 2, 2015
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

Successfully merging a pull request may close this issue.

5 participants