Title: Parse error: syntax error, unexpected &#039;&lt;&#039; in */alpinebot-primary.php(380)
Last modified: August 21, 2016

---

# Parse error: syntax error, unexpected '<' in */alpinebot-primary.php(380)

 *  Resolved [Christopher Kirk-Nielsen](https://wordpress.org/support/users/jakhris/)
 * (@jakhris)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/)
 * Hey there,
 * I’ve been using this plugin for a few months and it’s really excellent, does 
   exactly what I need it to. Sadly, I added a picture today on Instagram and since,
   the gallery doesn’t display anymore, instead I get this PHP error:
    `Parse error:
   syntax error, unexpected '<' in /homepages/##/x#########/htdocs/wp-content/plugins/
   alpine-photo-tile-for-instagram/gears/alpinebot-primary.php(380) : eval()'d code
   on line 1`
 * This is my website: [http://geekometric.com/](http://geekometric.com/)
 * I’ve tried to go in and edit the code to remove tags, or just the bracket. I 
   also tried to remove any semicolons in case the result was serialized (since 
   there was a comment on a picture with a “;)”), but I haven’t made any progress.
   I didn’t find where the code was used so I didn’t get the chance to extract the
   code that is being fed to the eval() function. I’ve tried searching for this 
   error but the only hits I get are other blogs with the same error.
 * Any idea how I can fix this?
 * Thanks a lot for you help!
 * PS: If it helps, here are the hidden comments:
    `<!-- Using AlpinePT for Instagram
   v1.2.6 with JSON--><!-- Request made --><!-- Try json_decoder() --><!-- An error
   occured: Empty JSON --><!-- Failed using wp_remote_get and JSON @ https://api.
   instagram.com/v1/users/#########/media/recent/?access_token=#########.xxxxxxx.
   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&count=12 --><!-- Sorry:<br><br>- Instagram feed
   not found.-->`
 * [https://wordpress.org/plugins/alpine-photo-tile-for-instagram/](https://wordpress.org/plugins/alpine-photo-tile-for-instagram/)

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/page/2/?output_format=md)

 *  Thread Starter [Christopher Kirk-Nielsen](https://wordpress.org/support/users/jakhris/)
 * (@jakhris)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693284)
 * Quick update: it now works just fine. It must have been a temporary problem caused
   by Instagram’s feed. Hopefully that’s the last time I saw the error.
 * Take care!
 *  Plugin Author [theAlpinePress](https://wordpress.org/support/users/thealpinepress/)
 * (@thealpinepress)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693292)
 * Thanks for letting me know. Yes, it looks like Instagram went down for a bit.
   Nonetheless, the plugin should be able to recover and say that Instragam is down
   rather than crashing. I’ll look into it.
    Best, Eric
 *  [nightowl99](https://wordpress.org/support/users/nightowl99/)
 * (@nightowl99)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693363)
 * Hello Eric, I have the exact same problem.
 * Have been trying to resolve with the host (Namecheap) but they are not sure what
   the plugin needs from their end.
 * This is what it says in the error logs:
 * PHP Parse error: syntax error, unexpected ‘<‘ in /home/xxxxxxxx/public_html/wp-
   content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php(380):
   eval()’d code on line 1
 * And this is in the “hidden comments”:
 * `<!-- Failed using wp_remote_get and JSON @ https://api.instagram.com/v1/users/########/
   media/recent/?access_token=##########################################&count=60--
   >`
 * Can you give us an idea what we’re missing?
    Thank you!
 * Edit: I had it set to num=”30″. When I reduced to num=”25″ the feed displayed
   again.
 *  [nightowl99](https://wordpress.org/support/users/nightowl99/)
 * (@nightowl99)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693365)
 * I spoke too soon. Sometimes it works for a moment, then we get a “Sorry: Instagram
   feed not found”.
 *  Plugin Author [theAlpinePress](https://wordpress.org/support/users/thealpinepress/)
 * (@thealpinepress)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693369)
 * Can you please try the new update? I have also added a “Plugin Tools” page that
   should make it easier to identify problems.
    Best, Eric
 *  [nightowl99](https://wordpress.org/support/users/nightowl99/)
 * (@nightowl99)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693370)
 * Hi Eric,
 * Thanks for responding!
 * I tried the update, deleted and reinstalled the plugin, but I can’t even add 
   the user back. After adding the client IDs and authorizing I get “An error occured(
   No access token found).”
 * The “Plugin Tools” tab reveals the following:
 * Current PHP version of your server: 5.3.27
    Check: curl_init function found. 
   Check: json_decode function found.
 * Thank you,
    Anne
 * P.S.: Perhaps I should also mention the the callback URI triggers a 404 according
   to my error logs.
    (/wp-admin/options-general.php?page=alpine-photo-tile-for-
   instagram-settings&tab=add)
 *  Plugin Author [theAlpinePress](https://wordpress.org/support/users/thealpinepress/)
 * (@thealpinepress)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693371)
 * Have you tried method 2 for adding users? It sounds to me like your server is
   either having trouble connecting out or parsing the response. At least that would
   explain the missing access token.
 * I am not sure what to make of the 404 error. I always feel like I am trouble-
   shooting with a blindfold, but hopefully we can figure out what is wrong.
 *  Plugin Author [theAlpinePress](https://wordpress.org/support/users/thealpinepress/)
 * (@thealpinepress)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693372)
 * Also, I added another check to the Plugin Tools page, if you wouldn’t mind deleting
   and re-installing again…
 *  [nightowl99](https://wordpress.org/support/users/nightowl99/)
 * (@nightowl99)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693373)
 * Yes, I tried method 2 but was not able to add user either. That’s when I get 
   a 404 page. It’s just strange that it worked fine for a while and then stopped
   without anyone touching the site. This seems to indicate either a change in the
   server setup or the Instagram API, no?
 *  [nightowl99](https://wordpress.org/support/users/nightowl99/)
 * (@nightowl99)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693374)
 * Update: After I saw your last message I did delete/reinstall, and now it works!
 * Woo-Hoo! Let’s hope it’ll stick. Thanks so much, Eric!
 *  Plugin Author [theAlpinePress](https://wordpress.org/support/users/thealpinepress/)
 * (@thealpinepress)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693375)
 * Oh great 🙂 Glad I could help.
    Cheer, Eric
 *  [nightowl99](https://wordpress.org/support/users/nightowl99/)
 * (@nightowl99)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693377)
 * Sorry to say, this morning the feed was down again. So I had another look at 
   the new Plugin Tools tab, and the System Check says:
 * Check: Plugin failed to connect to Instagram.com.
    Code: 500, Message: Internal
   Server Error.
 * Further down in the Plugin Loading Test, I entered the shortcode and got the 
   same errors for the first part (Loading from Instagram Feed), resulting in the“
   Sorry, Feed not found” output.
 * The second part (Load from cache) worked fine and displayed the feed.
 * After performing this test the feed displays again on the front end.
 *  Plugin Author [theAlpinePress](https://wordpress.org/support/users/thealpinepress/)
 * (@thealpinepress)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693378)
 * Ok, an Internal Server Error is beyond my control. It sounds like the server 
   hosting your website is (periodically) unable to connect to Instagram. In other
   words, it has all the necessary tools and the code works, but the server fails
   nonetheless.
 * You could try some other Instagram plugins. Maybe they do something differently,
   but I suspect the problem is with the reliability of your hosting provider.
 *  [nightowl99](https://wordpress.org/support/users/nightowl99/)
 * (@nightowl99)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693379)
 * It’s very well possible that the problem is with the server side of things. However,
   Namecheap is otherwise a good provider, and they are very willing to help. It’s
   just that they don’t know what could be missing that would make the plugin work
   better.
 * A search on Google for the direct phrase match of the error output
 * “wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php(
   380) : eval()’d code on line 1”
 * yields over 6000 results, indicating that this may be a widespread issue that
   is not limited to my particular install. It’s a shame because I really love this
   plugin otherwise.
 * Thank you,
    Anne
 *  Plugin Author [theAlpinePress](https://wordpress.org/support/users/thealpinepress/)
 * (@thealpinepress)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/#post-4693380)
 * Are you still getting that message? That error is the reason for the most recent
   update. Did I not fix it?

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/page/2/?output_format=md)

The topic ‘Parse error: syntax error, unexpected '<' in */alpinebot-primary.php(
380)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/alpine-photo-tile-for-instagram_978a78.
   svg)
 * [Alpine Photo Tile for Instagram](https://wordpress.org/plugins/alpine-photo-tile-for-instagram/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/alpine-photo-tile-for-instagram/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/alpine-photo-tile-for-instagram/)
 * [Active Topics](https://wordpress.org/support/plugin/alpine-photo-tile-for-instagram/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/alpine-photo-tile-for-instagram/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/alpine-photo-tile-for-instagram/reviews/)

## Tags

 * [eval](https://wordpress.org/support/topic-tag/eval/)
 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 19 replies
 * 4 participants
 * Last reply from: [ddashfens](https://wordpress.org/support/users/ddashfens/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-112/page/2/#post-4693405)
 * Status: resolved