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

Importing error #67

Open
iansedano opened this issue Apr 23, 2020 · 4 comments
Open

Importing error #67

iansedano opened this issue Apr 23, 2020 · 4 comments

Comments

@iansedano
Copy link

I am maintaining someone else's wordpress site and when I try to import a slider I get this error from the console

JQMIGRATE: Migrate is installed, version 1.4.1
VM1248:1 Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at Object.success (admin.js?ver=1.3.6:1810)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at x (jquery.js?ver=1.12.4-wp:4)
at XMLHttpRequest.c (jquery.js?ver=1.12.4-wp:4)

and the main admin page says "please wait" but nothing happens.
I am attaching the zip file (it is the exact same zip file I exported from crelly)

crellyslider-selected_works.zip

If I can provide anything else please let me know!

@fabiorino
Copy link
Owner

Hi, that's weird, it looks like it triggers the success function, but clearly something goes wrong. Are you able to help me debug this? Unfortunately it requires some code modification to print the error message.

Edit the file wp-content/plugins/crelly-slider/wordpress/js/admin.js, add console.log(response); before line 1810 and after. Then try importing the slider and see what it prints in the browser console.

@iansedano
Copy link
Author

image

I added in the lines you mentioned, but still getting the same error message - nothing new in the console.

image

and the wordpress admin page:

image

@fabiorino
Copy link
Owner

Hi, another couple of things to check: do the images get uploaded? You should see them in the WordPress media gallery. Does the slider show up in the list of existing sliders?

@iansedano
Copy link
Author

Nope, no uploaded images and the slider does not show up. Its as if nothing happened.

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

2 participants