Hi,
what php version are you running? The linenumber indicates the usage of namespaces. Namespaces are supported since php 5.3.
-
This reply was modified 9 years, 9 months ago by
No3x.
Are you sure? Do you have multiple instances of php installed? If the error appears with 5.4.28 I don’t have a answer.
You were right. I was looking at the wrong hosting account. Upgrading to 5.4.x worked.
Really weird. I don’t know if it’s a godaddy issue or what, but after upgrading to 5.4 on the cpanel, the plugin activates fine then a few minutes later, it fails again. Same error. I go and check the CLI, the php version installed is 5.3.13. Should still work with 5.3 though, correct?
Hi, 5.3 is required for namespaces but I use some other features that need 5.4. The plugin should activate fine with 5.3 but throw a message saying you need to run with 5.4 without php errors at least.
The php version on cli is not always the php version used to process .php files. You could check this with a simple phpinfo().
Ya, that’s what I did. Not sure why my Cpanel says 5.4 and my instance is running 5.3. I guess I’ll have to talk with godaddy. Thanks for helping
-bash-3.2$ php -r "phpinfo();"
phpinfo()
PHP Version => 5.3.13
They did a lot of performance tweaks on php. Sorry for breaking the site for you and forcing you for upgrade php but on the other hand it’s overdue.