Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Issue when oEmbed 2.0.0 plugin is activated
Kemat1an
New
When i activate the plugin and try to open a discussion, this message appear in my CGI and Scripts Page Errors:
20140328T072345: forum.kemat1an.it/index.php PHP Parse error: syntax error, unexpected T_USE, expecting T_FUNCTION in /hermes/bosoraweb143/b2025/ipg.kemat1anit/community/plugins/oembed/library/vendors/fg/essence/lib/Essence/Essence.php on line 30
Any suggestion?
I didn't change any file, it is just copied and pasted from github source to my hosting.
0
Comments
This addon is for 2.2+ which is alpha software. Are you running 2.2?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Version 2.2.10.3
According to this document: http://www.php.net/manual/en/language.namespaces.importing.php
That file uses an unsupported use of the
use
keyword. Not sure how it wasn't caught already.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Those are called "Traits" (http://www.php.net/manual/en/language.oop5.traits.php) and were introduced in PHP 5.4. Am I correct in assuming that you're running 5.3?
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
Traits are pretty cool, but they should have a different keyword or something. Especially considering they are re-using a keyword that isn't allowed there. I suppose it is nice in the fact that it errors out on systems that don't support it, but adding a keyword would do the same thing, right?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@Kasper, You're right, I'm on 5.3.
There is something that I can do in order to let this plugin work with PHP 5.3?
You would need to hack the Essence library and initialize all the traits as object properties in the class constructors. Unless you're keen on making it work with PHP 5.3 I wouldn't recommend it though—it seems like a bit of a rabbit hole.
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
@Kasper
Wow, that's a huge work!
Good!