WordPress.org

Ready to get started?Download WordPress

Forums

Custom Metadata Manager
[resolved] Parse error in v0.5.1 (4 posts)

  1. strozw
    Member
    Posted 2 years ago #

    I could not activate v0.5.1 with the following error.
    The PHP version 5.3.8 that I used.

    Parse error: syntax error, unexpected T_CASE in /Library/WebServer/Documents/works/business-leader/wp-content/plugins/custom-metadata/custom_metadata.php on line 948

    http://wordpress.org/extend/plugins/custom-metadata/

  2. Joey Kudish
    Member
    Plugin Author

    Posted 2 years ago #

    Hi strozw,

    I am the developer who updated the plugin to 0.5.1. Thanks for reporting the issue. Unfortunately I have not been able to reproduce it thus far, which makes it hard to troubleshoot. Would you be able to provide me with the code you are using to register your custom meta boxes?

    Also, have you tried disabling other plugins and reverting to the default Twenty Ten theme to make sure there wasn't a conflict?

    The more information you can provide me with, the better.

    Thanks

  3. strozw
    Member
    Posted 2 years ago #

    Hi Joachim Kudish.
    Thank you for the polite reply.

    I found the cause of the error.
    My php.ini setting disabled "short_open_tag", but "custom_metadata.php" is using short open tag in Line numbers 935, 954, 959, 961.

    "<? php" to "<?" replaced a result, the error did not occur.

    I'm sorry for my poor engilish.

    Thanks.

  4. Joey Kudish
    Member
    Plugin Author

    Posted 2 years ago #

    Hey strozw,

    Thanks again for reporting the issue in more details. My mistake for leaving in shorttags in there. I shouldn't have :)

    I've just pushed out v. 0.5.3 which should appear in the plugin repository shortly, I have replaced all the shorttag openings.

    Thanks again
    Cheers

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic