I just went in and refreshed my plugins and bam- now when I go to my site I get this:
Parse error: syntax error, unexpected T_STATIC, expecting ‘)’ in /home1/adaveduk/public_html/wp-content/plugins/testimonials-widget/lib/aihrus/class-aihrus-common.php on line 44
and I can’t even get to my dashboard….what do I do?
This error is because your PHP version is 3 years past replacement. Fixes are listed in link https://aihrus.zendesk.com/entries/30678006-Most-Aihrus-Plugins-Require-PHP-5-3-.
Hi Michael
I had this error as well.
I kind of panicked because my site went down.
I use 1&1 for my server and called them up at 21:30 and they advised me how to update my php to 5.4
Done that now and it worked straight away no problems.
Thanks
@shteca What were the directions that 1&1 gave you for updating to PHP 5.4?
If possible, I’d like to share them on my FAQ entry.
Sure. Just go to http://www.1and1.co.uk/login to log in to the dashboard.
Then in the Web Space section click on the Global PHP Version.
There is then just an option on the page for PHP Version, just select 5.4 from the drop down.
Same thing here
Parse error: syntax error, unexpected T_STATIC, expecting ‘)’ in /home/kristinw/public_html/wp-content/plugins/testimonials-widget/lib/aihrus/class-aihrus-common.php on line 88
Just reading through posts — I will upgrade to PHP 5-3
Hi everybody,
Great plugin, one of the best for testimonials out there IMO.
Got the same – Parse error: syntax error, unexpected T_STATIC, expecting ‘)’ in /home/content/72/7303572/html/tatianadesigns.com/wp-content/plugins/testimonials-widget/lib/aihrus/class-aihrus-common.php on line 88 –
on http://tatianadesigns.com
Will try to update the php and see if it does the trick
@belleweb, thank you for the compliment. I hope you got the PHP upgrade sorted out.
FYI, PHP 5.2 is still more than 50% of the WordPress userbase.
http://wordpress.org/about/stats/
So if you’re not going to work with it, then you should probably put in a bit of loader code at the beginning of the plugin to make it fail a bit more gracefully.
One way would be to simply have a main PHP file with this check in it:
if ( version_compare(phpversion(), '5.3', '>=') ) {
include 'main-plugin.php';
}
That way, the plugin won’t do anything at all on sites running older PHP versions. If you wanted, you could make it display a message saying it won’t work, or deactivate itself, or a number of other things too.
@otto,
Thank you for the recommendation and I’m working on it already. However, with so much else going on, I’m behind.
I got the reworked started last night with https://github.com/michael-cannon/cbqe-edit-flow/blob/oneone/cbqe-edit-flow.php#L43 that leads into https://github.com/michael-cannon/cbqe-edit-flow/blob/oneone/lib/requirements.php#L22 for not only PHP checks, but also ensuring needed plugins are there as well.
Now, there’s only a half dozen plus plugins to sort this issue out on.
I have a site using PHP 5.3 with this plugin, and it is breaking on line 88 as stated above.
NOTE: Even though hostgator says they have 5.3 on all servers … I solved this error by forcing 5.3 through htaccess with
AddType application/x-httpd-php53 .php
@otto,
Testimonials 2.17.0 contains WordPress and PHP version checking with admin notices. It’s been tested as working with PHP 5.2.17 and WordPress 3.8 as shown at https://aihr.us/wp-content/uploads/2013/12/Testimonials-requires-PHP-5.3.png.
The admin notice changes depending upon the requirements failure.
@all, you can begin your code grokking with below to see how it was done.
* https://github.com/michael-cannon/testimonials-widget/blob/2.17.0/testimonials-widget.php#L35
* https://github.com/michael-cannon/testimonials-widget/blob/2.17.0/lib/requirements.php
* https://github.com/michael-cannon/testimonials-widget/blob/2.17.0/lib/aihrus/requirements.php
Thank you to everyone that’s stayed with Testimonials by Aihrus through this ordeal.
A special round of thank yous to http://nomtbf.com for letting me use their systems for testing.