• Resolved thyrnir

    (@thyrnir)


    Hi,

    I cannot create a survey. The creator does not show up, console shows an error:

    [Error] SyntaxError: JSON Parse error: Unexpected EOF
    parse
    value — admin.php:117
    value — admin.php:117
    SurveyCreatorRenderComponent — admin.php:108
    wt — react-dom.min.js:10:47639
    js — react-dom.min.js:10:120587
    wl — react-dom.min.js:10:88662
    bl — react-dom.min.js:10:88590
    yl — react-dom.min.js:10:88453
    il — react-dom.min.js:10:85277
    ol — react-dom.min.js:10:83834
    v — react.min.js:10:3387
    ce — react.min.js:10:5530

    As far as I saw in the html code, the error is thrown up when it tries to create a new Survey.Model with empty json code.

    I tested with WordPress 6.5.2 and WordPress 6.4.4, also in fresh setups. Same error every time.

    Best,
    Thynir

    • This topic was modified 10 months, 2 weeks ago by thyrnir.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter thyrnir

    (@thyrnir)

    Did further testing: When inserting json code into the sql database, the survey can be shown on a page and works fine. Editor/creator on the other hand still does throw an error.

    As I just saw, with that, It throws another error. This time it is:

    [Error] SyntaxError: /Inline Babel script: Unterminated string constant (70:35)
    
      68 |                         });
      69 |                         const creator = editor;
    > 70 |                         var json = '{
         |                                    ^
      71 |  \"title\": \"Test\",
      72 |  \"description\": \"Test\",
      73 |  \"logoFit\": \"none\",
    	(anonyme Funktion) (babel.min.js:1:1621800)
    	(anonyme Funktion) (babel.min.js:1:1621802)
    	i (babel.min.js:1:1614323)
    	r (babel.min.js:1:2110566)
    	d (babel.min.js:1:2111033)
    	u (babel.min.js:1:2111743)
    	(anonyme Funktion) (babel.min.js:1:2116764)
    	x (babel.min.js:1:2116771)
    	b (babel.min.js:1:2116378)
    • This reply was modified 10 months, 2 weeks ago by thyrnir.
    Plugin Author devsoftbaltic

    (@devsoftbaltic)

    Thanks for the reporting! We will investigate the problem and return back as soon as possible.

    Dmitry,
    SurveyJS Team

    Plugin Author devsoftbaltic

    (@devsoftbaltic)

    We fixed the problem via the https://github.com/surveyjs/surveyjs-wordpress/commit/be150747031fa1de40b1e61ab272853691011021

    The fix is already available.

    Thanks,
    Dmitry
    SurveyJS Team

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot create / edit surveys, creator runs into an error’ is closed to new replies.