• I’m getting this error when I try to activate the plugin:

    Parse error: syntax error, unexpected ‘[‘ in /home1/scanco/public_html/wp-content/plugins/instapage/models/InstapageCmsPluginDebugLogModel.php on line 165

    Can you help?

    • This topic was modified 6 years, 11 months ago by cife1.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • To fix, revert the latest commit:

    Remove lines 122 and from 155 to 187 from /models/InstapageCmsPluginDebugLogModel.php
    Remove lines from 115 to 140 from /templates/log.php

    I have the same problem : “Couldn’t parse response.”

    I’ve tried your solution to revert the latest commit, but it doesn’t changes anything.

    @freeben

    This is a bug in the instapage plugin, I’m unable to find where I can report it to instapage so I’m writing it here.

    Go to the file /wp-content/plugins/instapage/InstapageCmsPluginAjaxController.php

    On line 339 there will be a InstapageCmsPluginHelper::checkResponse($response)

    change it to

    InstapageCmsPluginHelper::checkResponse($response, ”, false)

    This is because this call echoes the response, resulting in two concatenated JSON responses in one http request which obviously results in a “can’t parse” error.

    • This reply was modified 6 years, 10 months ago by YuriKolovsky.

    @freeben, @yurikolovsky, you are referring to a different issue than @cife1 one, but good catch anyway.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Parse error’ is closed to new replies.