Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Uncaught SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse #64

Open
fgamba opened this issue Mar 15, 2019 · 2 comments

Comments

@fgamba
Copy link

fgamba commented Mar 15, 2019

Hi there,

Every time I try to choose a language for a given version of the website (see attached)

In this line of code:
var data = JSON.parse( self.attr( 'data-export' ) );
I made a console.log and attr is undefined
js-error

Please advice, thanks!

@fgamba
Copy link
Author

fgamba commented Mar 15, 2019

On the other side, I commented the "data" var depicted above and replace the values in :
$.ajax({ async: true, url: ajaxurl, type: "GET", data: { action : 'run_export', wpml2mlp : data.wpml2mlp, language : $('#inpsyde_multilingual_lang').val(), timezone : timezone },
for
$.ajax({ async: true, url: ajaxurl, type: "GET", data: { action : 'run_export', wpml2mlp : data.wpml2mlp, language : $('#inpsyde_multilingual_lang').val(), timezone : timezone },

but I'm not sure which value I need to use in wpml2mlp, please advice

@fgamba
Copy link
Author

fgamba commented Mar 19, 2019

Hi there, any updates?

Just FYI, I am using the last version of Wordpress and PHP 5.6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant