-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
php error with latest version? #60
Comments
Hi Elise; thanks for reporting this issue. Can you tell us:
This is line 8 of the current version of the plugin: https://github.com/INN/pym-shortcode/blob/f08d558680623e31294fb1d728a734db2f18e440/inc/shortcode.php#L8 If you're getting a T_STRING there, I'm worried that you're using a version of PHP that may not be supported by this plugin. We've required at least PHP 5.3 since Pym.js Embeds version 1.3.2.1, and the current version of the plugin is 1.3.2.2. The current versions of the PHP language that are supported by PHP's maintainers are:
|
Hey team, yeah my theme was super old and they stopped updating it so in order to remove THAT variable, I updated to a new, supported theme. But when I tried to activate the plug-in, it still sent the same fatal error. I'm running version 4.9.9 of WordPress. If the theme I'm now using is fresh, then I'm assuming the php version is much newer as well. Theoretically that would allow me to activate the plugin again, right? |
That's not necessarily the case; WordPress itself supports PHP versions back to PHP 5.2. Assuming that <?php
phpinfo(); and then visit What PHP version does If it's version 5.2 or prior:
|
Saving this snippet for inclusion in the plugin: |
|
Removing this from the 1.3.2.3 milestone because I don't have a way to test PHP < 7.3 at the moment, and also because PHP 5.6 has been EOL since 31 December 2018: https://www.php.net/eol.php |
All my shortcodes are broken now that I'm unable to activate this plugin -- Here's the message I get:
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/mattstiles/webapps/heyelise/wp-content/plugins/pym-shortcode/inc/shortcode.php on line 8
Halp?
The text was updated successfully, but these errors were encountered: