We had to update our live server to PHP 5.2.9 to match our test server.
[root@myhost plugins]# php -v
PHP 5.2.9 (cli) (built: Mar 17 2009 12:04:37)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
After the upgrade, I noticed I can’t browse to Admin > Utilities > Plugin Manager; I simply get a blank screen.
I don’t get any errors directly to my httpd log (apache), but I did notice running php -e
directly on the plugin throws an error:
[root@myhost plugins]# ls -l
total 92
-rw-r--r-- 1 equimed psacln 21693 May 13 07:48 pi.entries_number.php
-rw-r--r-- 1 equimed psacln 20934 May 13 07:48 pi.linklocker_stats.php
-rw-r--r-- 1 equimed psacln 3159 May 13 07:48 pi.reeposition.php
-rw-r--r-- 1 equimed psacln 1821 Jul 13 17:26 pi.relative_date.php
-rw-r--r-- 1 equimed psacln 36557 May 13 07:48 pi.textile.php
[root@ myhost plugins]# php -e pi.reeposition.php
[root@ myhost plugins]# php -e pi.textile.php
[root@ myhost plugins]# php -e pi.relative_date.php
PHP Parse error: syntax error, unexpected '}' in /var/www/vhosts/myhost.com/httpdocs/admin/plugins/pi.relative_date.php on line 81
Can someone else with 5.2.9 confirm if php displays any errors on pi.relative_date.php?
For reference, my staging server has no problem with it:
-bash-3.2$ php -e pi.relative_date.php
-bash-3.2$ php -v
PHP 5.2.6 (cli) (built: May 2 2008 16:06:40)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with the ionCube PHP Loader v3.1.29, Copyright (c) 2002-2007, by ionCube Ltd
Man- that plugin is familiar. But I can’t spot it either. What I’d do first- just remove the pi file from the plugins. If the plugin page then loads- you know that’s the issue (which I strongly suspect it is). In which case- Greg is dead on. Or possibly contact the author/forum thread for help with it.
And if you can link to the plugin, we could try a little replication.
For now- since this appears to be an issue with a third party plugin, I’m going to shift the thread to the third party dev. forum.
Heh- well, I feel slightly less bad about not being able to find it either!
Hrm- was that one perhaps replaced by the addition of {relative_date} to the weblog tag as a single variable?
pi.relative_date.php was a plugin made by Lumis (of Image Sizer fame) a while back now.
I can’t find a link on his site for download although I did download the file some time back now so remember that is where it is from.
Perhaps Lumis will come in to this thread and let you know where it can be found now though.
Best wishes,
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.