Forum Replies Created
-
AuthorPosts
-
David Hahn
ParticipantFound the typo in the child theme’s functions.php file, and that was indeed causing the problem, the import works correctly now.
So not a problem with Connections at all.
Thanks for your help!
David Hahn
ParticipantAh, thanks, that tip to look at the Network tab and into the admin-ajax.php revealed what seems to be an error in our functions.php file in our child theme. I saw a “?>” at the beginning of the request; temporarily removed our functions.php file completely; and the import worked correctly, with multiple admin-ajax.php firings.
So we’ll look through our functions.php file to see if we can find the error, most likely a typo somewhere.
Will let you know how it turns out.
David Hahn
ParticipantDisabling the calendar plugin got rid of the ai1ec-related javascript errors, so no errors on the Map page, but still only imported the first 100 records and has these errors after clicking the “Import” button:
load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:9 JQMIGRATE: Migrate is installed, version 1.4.1
VM2113:2 Uncaught SyntaxError: Unexpected token ? in JSON at position 1
at JSON.parse (<anonymous>)
at Function.n.parseJSON (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:4)
at Function.a.parseJSON (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:9)
at Object.<anonymous> (admin.php?page=connections_csv&action=import:387)
at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:2)
at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:2)
at y (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:4)
at XMLHttpRequest.c (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:4)
n.parseJSON @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:4
a.parseJSON @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:9
(anonymous) @ admin.php?page=connections_csv&action=import:387
i @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:2
fireWith @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:2
y @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:4
c @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:4David Hahn
ParticipantOkay, here is what I got.
After hitting the “Map” button, the following shows up on console:
load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:9 JQMIGRATE: Migrate is installed, version 1.4.1
admin.php?page=connections_csv&action=map:439 GET http://localhost/?ai1ec_render_js=common_backend&is_backend=true&ver=2.5.16 net::ERR_CONTENT_DECODING_FAILEDAnd then after clicking “Import” the console shows:
load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:9 JQMIGRATE: Migrate is installed, version 1.4.1
admin.php?page=connections_csv&action=import:462 GET http://localhost/?ai1ec_render_js=common_backend&is_backend=true&ver=2.5.16 net::ERR_CONTENT_DECODING_FAILED
VM626:2 Uncaught SyntaxError: Unexpected token ? in JSON at position 1
at JSON.parse (<anonymous>)
at Function.n.parseJSON (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:4)
at Function.a.parseJSON (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:9)
at Object.<anonymous> (admin.php?page=connections_csv&action=import:413)
at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:2)
at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:2)
at y (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:4)
at XMLHttpRequest.c (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:4)
n.parseJSON @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:4
a.parseJSON @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:9
(anonymous) @ admin.php?page=connections_csv&action=import:413
i @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:2
fireWith @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:2
y @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:4
c @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.7.2:4The “ai1ec” referenced there is the All In One Events Calendar plugin, I’ll try disabling that and see if that makes a difference.
David Hahn
ParticipantThis reply has been marked as private.David Hahn
ParticipantYep, got it. We’ll register the custom fields in code as recommended in that QuickTip.
Thanks.
-
AuthorPosts
