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

  1. strozw
    Posted 4 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


  2. Joey Kudish
    Plugin Author

    Posted 4 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.


  3. strozw
    Posted 4 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.


  4. Joey Kudish
    Plugin Author

    Posted 4 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Metadata Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic