Relative Date Plugin: pi.relative_date.php, incompatible with PHP 5.2.9?
Posted: 13 July 2009 05:35 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  57
Joined  06-27-2005

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) (builtMar 17 2009 12:04:37
Copyright (c1997-2009 The PHP Group
Zend Engine v2.2.0
Copyright (c1998-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 
[rootmyhost plugins]# php -e pi.textile.php 
[rootmyhost plugins]# php -e pi.relative_date.php 
PHP Parse error:  syntax errorunexpected '}' 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.2php -e pi.relative_date.php 
-bash-3.2php -v
PHP 5.2.6 
(cli) (builtMay  2 2008 16:06:40
Copyright (c1997-2008 The PHP Group
Zend Engine v2.2.0
Copyright (c1998-2008 Zend Technologies
    with the ionCube PHP Loader v3.1.29
Copyright (c2002-2007by ionCube Ltd 
 Signature 

Creative Arc, Minneapolis Web Design

Profile
 
 
Posted: 13 July 2009 05:54 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7266
Joined  05-07-2007

I’m sorry, but I’m not finding where to download that plugin.  By the looks of it you have a missing semi-colon on line 80, or an overall extra } on line 81.

-greg

 Signature 

gregaker.net | Follow me on Twitter

Profile
MSG
 
 
Posted: 14 July 2009 11:03 AM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15994
Joined  05-20-2002

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.

 Signature 
Profile
 
 
Posted: 31 July 2009 01:01 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  4
Joined  09-09-2008

i see this too with the relative_date plugin. I got past the syntax error by changing line 1 from:

<? 

to

<?php 

but i still get a blank plugins page.

Profile
 
 
Posted: 03 August 2009 08:13 AM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15994
Joined  05-20-2002

Do either of you have a link to the plugin itself?  (And I may shift this to the plugins forum if it’s third party- which I think it is.  But I’d like to take a look.)

 Signature 
Profile
 
 
Posted: 03 August 2009 10:57 AM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  4
Joined  09-09-2008

weird. i can’t find the link to the original plug-in.

Profile
 
 
Posted: 04 August 2009 09:15 AM   [ Ignore ]   [ # 6 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15994
Joined  05-20-2002

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?

 Signature 
Profile
 
 
Posted: 04 August 2009 09:34 AM   [ Ignore ]   [ # 7 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13725
Joined  04-15-2006

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

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile