Fatal Error - (My php is updated to 5) (7 posts)

  1. surfer800
    Posted 4 years ago #

    The Error: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/28/4282028/html/wp-content/plugins/sharedaddy/sharing.php on line 4

    I know what you're going to say, "Update your php to 5, you'll have to wait until the update, sorry"...

    But I've already updated my php to version 5. I even called my hosting service to verify that it was updated.

    I deactivated and deleted the plugin, reinstalled it...same error.
    Any thoughts?

  2. John Godley
    Plugin Author

    Posted 4 years ago #

    Can you create a script called info.php in your public_html home directory and into this add:

    <?php phpinfo(); ?>

    Then try and access the script from a browser and see what version of PHP you are running. The error you listed above is seen when you try to run PHP5 code in PHP4 (a google search for the error will show lots of other similar situations).

  3. surfer800
    Posted 4 years ago #

    Thanks John, but I'm not sure how to create a script called info.php.

    Do you mean go into my themes and edit my info.php section? and add the <?php phpinfo();?> string into that section?

    Also, how do I access the script from the browser? You're speaking in another language most of us don't understand, I was a computer programmer and I still don't understand what you mean....

    but thanks buddy and I look forward to your clarification so I can try and resolve this.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

  5. surfer800
    Posted 4 years ago #

    I'm using a MAC, and I tried using my text editor, but it won't save it as a .php file as instructed on the link, only as .rtf
    my microsoft Word version doesn't save it to that format either.

    I contacted GoDaddy (my host) twice and they said to me both times that I'm running a php5.

    Even if the script says I'm running a 5, what is the next step I can do? Maybe GoDaddy is bullsh*ting me?

  6. esmi
    Forum Moderator
    Posted 4 years ago #

    You need to use a plain text editor

  7. John Godley
    Plugin Author

    Posted 4 years ago #

    Try installing something like http://wordpress.org/extend/plugins/phpinfo/

    It is just to verify if you really are using PHP4 or 5

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Sharedaddy
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic