Closed Mike-Howerton closed 2 years ago
Hi @Mike-Howerton
I tried to reproduce your issue with both single and multiple relationships setting to autocomplete but cannot reproduce this issue. For this reason I think this might be a conflict with a plugin or theme: https://docs.pods.io/faqs/plugin-theme-conflicts/ Please test and let us know!
I restored a complete backup of the site to my dev environment. I have changed the theme to 2021, disabled all plugins and then reactivated the pods plugin.
Attached are the edit screens for tournaments and tours/events. I then went in to edit a tournament, clicked on the tour_id field and hit the delete key. Same thing happens. Error is also attached.
Hi @Mike-Howerton
I tried the following settings:
I believe these are the only options with a similar UI. With none of the above can I reproduce the issue.
Did you check your browser console for JS errors?
I turned on the javascript console and when I hit delete on that field, the following error appears...
TypeError: null is not an object (evaluating 'e.value') (anonymous function) — pods-dfv.min.js:1:1130028 forEach (anonymous function) — pods-dfv.min.js:1:1130002 Vc — react-dom.min.js:87:314 Ql — pods-dfv.min.js:1:1126160 we — react-dom.min.js:84:295 He — react-dom.min.js:97:467 Th — react-dom.min.js:152:226 tj — react-dom.min.js:152:155 Te — react-dom.min.js:146:154 Te (anonymous function) — react-dom.min.js:61 unstable_runWithPriority — react.min.js:25:262 Pg — react-dom.min.js:61 ha — react-dom.min.js:60:454 (anonymous function) — react-dom.min.js:236 Ei — react-dom.min.js:41:91 Ei
I tried to copy and paste the text below this but had issues. Here is a screen grab so that you can see the complete error.
I did see that top javascript error and wonder if that has anything to do with it. When I dig into that error, it points to the following code in custom.js
/ viewport width / $(function(){
$('.js-button-nav').click(function(){ $(this).toggleClass('open-menu'), $('.site-nav').slideToggle(); return false; });
I assume the two other errors are the date issue that we already know about.
Mike
Hi @Mike-Howerton
That could indeed be this issue here. I guess it's rendered from the theme? Please remove that script for admin pages.
What's strange is that it still happens when I change the theme to something like 2020.
Where would I begin to look at how to remove the script from admin pages?
Mike
Let's retest this on Pods 2.8.9 which will be out shortly.
Just upgraded and tested. This is still happening.
Hi @Mike-Howerton Did you check for a must-use plugin? Some non-WP script is interfering here.
Please open the first error undefined is not a function near $
> This might give more insights in the location of the bug.
That points to the $(function(){ line in this code...
/ viewport width / $(function(){
$('.js-button-nav').click(function(){ $(this).toggleClass('open-menu'), $('.site-nav').slideToggle(); return false; });
Since it's causing the error, please fix or remove that code :)
My guess is that it's coming from a theme or something and it should only be loaded on the front-end.
Description
I came across this issue completely on accident today.
I have a custom post type (tournament) that is connected to another custom post type (tour) by a tour_id field. This displays in the tournament admin page as a dropdown field. When on that field, if you hit the delete key on a blank field, the field changes to “There was an error rendering the field.”.
Note that if you start typing into the field and hit delete too many times, this also happens.
This is happening in Firefox and Safari.
Version
2.8.1.1
Testing Instructions
Two CPTs connected via relationship fields. Add new record under either one of these CPTs and hit delete on the connecting field.
Screenshots / Screencast
No response
Possible Workaround
No response
Site Health Information
Pods Package