fabiorino / crelly-slider

A free responsive slider for WordPress that supports layers. Add texts, images, videos and beautify them with transitions and animations.
MIT License
104 stars 36 forks source link

Importing error #67

Open iansedano opened 4 years ago

iansedano commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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