Forums

[Plugin: Connections] Parse error by activation (7 posts)

  1. WimDez
    Member
    Posted 10 months ago #

    Hello,

    I get an error when activating the plugin in IE :

    "Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /var/www/vhosts/missnieuws.be/httpdocs/wp-content/plugins/connections/includes/date.php on line 11"

    Can someone help me with this problem ?

    Wim

  2. shazahm1@hotmail.com
    Member
    Posted 10 months ago #

    I'll take a look at this tonight and debug. My apologies for the error.

  3. shazahm1@hotmail.com
    Member
    Posted 10 months ago #

    I just tried to see if I get this error by installing it fresh in WP 2.7 using IE 6. Which version of IE? Maybe the the install is corrupt or conflicting with another plug-in. Try deleting the plug-in using and re-installing it. If that doesn't work, try deactivating your plug-ins one by one to see if there's a conflict. Please let me know how you make out. With kind regards.

  4. WimDez
    Member
    Posted 10 months ago #

    Thanks for your quick response.

    We are using WP 2.7 on IE 7. When disabling the other plug-ins it stays the same. Also re-installing it doesn't help. When searching in Google at "Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR" it explains that php4 is running and php5 should be used.

    We don't know if we can do something to solve it or if it is a problem in your code.

    Hopefully you can do something with this information.

    With kind regards.

    Wim Dezutter

  5. shazahm1@hotmail.com
    Member
    Posted 10 months ago #

    Oh, I see. The coding of my plug-in requires PHP5. The only way that I know to fix it would to write a branch of every function that is compatible with PHP4. Honestly, I'm just learning PHP so I don't really know if I could even do this. You might want to have a look at the plug-ins that mine is based on. They are a bit more simple, but they don't use object oriented programming which I'm using, which requires PHP5.

  6. WimDez
    Member
    Posted 10 months ago #

    Thanks for your answer. We will look if we can change something on our servers so we can use PHP5 instead of PHP4. We will inform you if it work or not.

  7. WimDez
    Member
    Posted 10 months ago #

    We have changed to PHP5 today. Now it works normal.
    Will try to place some info in connections.

Reply

You must log in to post.

About this Topic