Title: Parse error
Last modified: April 5, 2018

---

# Parse error

 *  [cife1](https://wordpress.org/support/users/cife1/)
 * (@cife1)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/parse-error-479/)
 * 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 8 years, 1 month ago by [cife1](https://wordpress.org/support/users/cife1/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-479%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [lpini](https://wordpress.org/support/users/lpini/)
 * (@lpini)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/parse-error-479/#post-10160702)
 * 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
 *  [ERALION](https://wordpress.org/support/users/freeben/)
 * (@freeben)
 * [8 years ago](https://wordpress.org/support/topic/parse-error-479/#post-10285816)
 * 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.
 *  [YuriKolovsky](https://wordpress.org/support/users/yurikolovsky/)
 * (@yurikolovsky)
 * [8 years ago](https://wordpress.org/support/topic/parse-error-479/#post-10286807)
 * [@freeben](https://wordpress.org/support/users/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 8 years ago by [YuriKolovsky](https://wordpress.org/support/users/yurikolovsky/).
 *  [lpini](https://wordpress.org/support/users/lpini/)
 * (@lpini)
 * [8 years ago](https://wordpress.org/support/topic/parse-error-479/#post-10318600)
 * [@freeben](https://wordpress.org/support/users/freeben/), [@yurikolovsky](https://wordpress.org/support/users/yurikolovsky/),
   you are referring to a different issue than [@cife1](https://wordpress.org/support/users/cife1/)
   one, but good catch anyway.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Parse error’ is closed to new replies.

 * ![](https://ps.w.org/instapage/assets/icon-256x256.jpg?rev=1491646)
 * [Instapage Plugin](https://wordpress.org/plugins/instapage/)
 * [Support Threads](https://wordpress.org/support/plugin/instapage/)
 * [Active Topics](https://wordpress.org/support/plugin/instapage/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/instapage/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/instapage/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [json](https://wordpress.org/support/topic-tag/json/)

 * 4 replies
 * 4 participants
 * Last reply from: [lpini](https://wordpress.org/support/users/lpini/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/parse-error-479/#post-10318600)
 * Status: not resolved