Support » Plugin: Pods - Custom Content Types and Fields » Syntax Error /includes/general.php

  • Resolved kamildesigner



    I installed pods. When this plugin is enabled, an error is displayed:

    Parse error: syntax error, unexpected T_FUNCTION in /wp-content/plugins/pods/includes/general.php on line 1002

    Can You help me?
    Best Regards

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Scott Kingsley Clark


    What version of PHP are you using?

    Plugin Author Jim True


    Sounds like you need to upgrade to PHP 5.3 or higher. I just received a similar message through twitter that had the same error and they were on PHP 5.2. Pods has a minimum PHP requirement of 5.3 (though, of course, running a higher version would be better).

    If you have your hosting account upgrade your PHP, I’m fairly sure your issue will resolve.

    I have the same problem, however my PHP version is 5.6.29 on I deleted and reinstalled Pods 2.6.9 and I still cannot re-activate Pods without this error:

    Parse error: syntax error, unexpected T_FUNCTION in /home2/piriroch/public_html/wp-content/plugins/pods/includes/general.php on line 1002


    Plugin Author Jory Hogeveen


    Hi @john_6x6,

    This parse error is not very common in PHP 5.6. I have Pods installed at some hosts with PHP 5.6.x and even PHP 5.4.x (sigh) and it works fine.
    If a parse error would happen on 5.6 then this support forum should overflow with issues. A parse error is not specific to a configuration or anything so it would break every installation with the same PHP version. Which is not the case.

    Please double-check your PHP version.

    Regards, Jory

    Plugin Author Scott Kingsley Clark


    Go to Pods Admin > Settings and let us know what PHP version it says there. Sometimes what PHP version the host says and what it uses is different because some directories can be set either by mistake or manually overridden as other PHP versions.

    @sc0ttkclark, you were right on. I couldn’t activate the plugin to check there, so I added the file with “phpinfo()” instead. Shows it’s actually 5.2.17. I will notify the host.

    Thank you all!

    FYI… they updated the PHP version to 5.6.29 right away and all is fine now. Thanks again for the help.

    Plugin Author Jim True


    Hey glad to hear it @john_6x6 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Syntax Error /includes/general.php’ is closed to new replies.