(RESOLVED) PAtch Modify Timeline

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
crihou2
Posts: 22
Joined: Fri May 02, 2008 5:37 am
Location: Lille, France

(RESOLVED) PAtch Modify Timeline

Postby crihou2 » Thu May 29, 2008 5:23 am

Hi,

OCS2.1.0.1
It does not seem possible to return in modification on Timeline: blank page on .../manager/timeline.
After research it seems that the variable $end_year has a too important value ($end_year = 124944).

I don't know where it comes from but the patch below avoid that

Code: Select all

OCS.2.1.0.1/lib/smarty/plugins/function.html.select.date.php
line 265

before:
     $years = range((int)$start_year, (int)    $end_year                );
after :
     $years = range((int)$start_year, (int)min($end_year,$start_year+20));
Last edited by crihou2 on Fri Jun 06, 2008 1:42 pm, edited 1 time in total.

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

Re: PAtch Modify Timeline

Postby asmecher » Mon Jun 02, 2008 9:56 am

Hi crihou2,

A blank page should correspond to an error message in the PHP or web server error log; could you check to see if anything appeared there? Were you previously using the CVS version, or is is a pure installation of the 2.1 release?

Regards,
Alec Smecher
Public Knowledge Project Team

crihou2
Posts: 22
Joined: Fri May 02, 2008 5:37 am
Location: Lille, France

Re: PAtch Modify Timeline

Postby crihou2 » Wed Jun 04, 2008 2:02 am

Hi Alec

No error message in the web server error log.

I was previously using the 2.0 release and it worked.
Now I am in 2.1 and the TimelineEdit don't work any more except if I apply my mini patch.

Regards.

crihou2
Posts: 22
Joined: Fri May 02, 2008 5:37 am
Location: Lille, France

Re: PAtch Modify Timeline

Postby crihou2 » Wed Jun 04, 2008 3:00 am

Hi Alec,

I found the log error :

http://www.lille.iufm.fr-error.log:[client 10.199.2.6] PHP Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 71 bytes) in /mnt/nfs_www/exp/chv/colloques/lib/smarty/plugins/function.html_options.php on line 54, referer: http://www.lille.iufm.fr/colloqdvl/inde ... ager/index

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

Re: PAtch Modify Timeline

Postby asmecher » Wed Jun 04, 2008 9:34 am

Hi crihou2,

Try the patch at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=3544. It should correct the problem.

Regards,
Alec Smecher
Public Knowledge Project Team

crihou2
Posts: 22
Joined: Fri May 02, 2008 5:37 am
Location: Lille, France

Re: PAtch Modify Timeline

Postby crihou2 » Fri Jun 06, 2008 1:34 pm

Hi Alec,

Yes, the patch at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=3544. correct the problem.

Thanks.


Return to “OCS Technical Support”

Who is online

Users browsing this forum: No registered users and 3 guests