Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7458381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T13:26:23+00:00 2026-05-29T13:26:23+00:00

I’m trying to implement the simple-linkedinphp library (it’s found at http://code.google.com/p/simple-linkedinphp/ ) It runs

  • 0

I’m trying to implement the simple-linkedinphp library (it’s found at http://code.google.com/p/simple-linkedinphp/)

It runs fine on localhost, but when I upload it to the server I get a 500 Internal Server Error. Here’s what the error log says:

[12-Feb-2012 20:35:09] PHP Parse error: syntax error, unexpected T_STRING in /home1/bangaban/public_html/LIAPIwrappertest/linkedin_3.1.1.class.php on line 1

This doesn’t help because line 1 is just the opening <?php tag and then some comments.

The library requires PHP 5+ and the cURL extension on the server and phpinfo() shows that to be installed. I don’t think there are any syntax errors in the script because it works fine on localhost and it’s a library that’s been used by many people.

I googled and found some resources that talk about 500 errors being caused by write access; this question talks about that a bit, but it’s a different error message, so I’m not sure how it would apply to this case.

It seems like it’s something on the server side, perhaps something in the php.ini file? Or maybe the .htaccess file? I’ve never had this problem before with libraries or php scripts
once I’ve got them to work on localhost, so this is really strange to me.

EDIT/UPDATE:

I changed the file permissions from 644 to 755, but that didn’t do anything.

I changed demo.php to load a test file instead of linkedin_3.1.1.class.php and that worked fine, so it’s definitely not parsing just SOME files. Then I decided to try some of the earlier versions of the same library. Version 3.1.0 parses and runs without error. Version 3.2.0 does not parse, although the parse error is different from version 3.1.1. That’s strange because the download count is 752 for v3.2.0, so how could it not work for me if it worked for hundreds of other people?

Anyways, I’m going to work with v3.1.0 for now and see if anyone can solve the mystery of why all the versions after v3.0.0 get parse errors. I’ve logged an issue with my hosting provider, as well as on the project page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T13:26:24+00:00Added an answer on May 29, 2026 at 1:26 pm

    HTTP Error 500 Internal server for php pages and solution

    Generally, to solve this problem you need to take help of log files located at following location:

    => /var/log/message
    => /var/log/httpd/error_logs (/var/log/lighttpd/error_log or /var/log/httpd/error_log)
    

    This error only occurs because of web server software. However after looking through logs you may not find many details. This problem may be caused by:

    1. A malformed php cgi script
    2. An invalid directive in an .htaccess or other config file
    3. Limitation imposed by file system and server software (for example php log file size set to 10Mb)
      4.Missing php.ini (or cannot read php.ini file)

    In most case it is an invalid .htaccess directive. However recently I came across a web server w/o /etc/php.ini file. A long time ago I setup this server )Apache chrooted jail). So you need to maintain two files one outside jail and another inside jail:

    => /etc/php.ini
    => /chroot/etc/php.ini <-- this file was missing
    

    Many scripts open this file on fly to get correct configuration directives. If this file not found you get error 500. It took some time to figure out this problem. Finally strace helped me out to debug this problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm making a simple page using Google Maps API 3. My first. One marker
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.