mediawiki-extensions / mw-calendar

Automatically exported from code.google.com/p/mw-calendar
0 stars 2 forks source link

Fatal Error after adding a four calendar long array to subcribe #119

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Wiki Version: 1.15.1
Calendar Version: 3.8

Problem: I added a new calendar that subscribed to four other calendars. got 
the error below. 
Three works fine so far. 

error was displayed in my browser window just after I saved the page
 Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 8192 bytes) in 
/home/httpd/www2/wiki/includes/LinkBatch.php on line 1

Original issue reported on code.google.com by lloyd_fo...@Hotmail.com on 27 Dec 2009 at 10:49

GoogleCodeExporter commented 8 years ago
Can you give me an example of your calendar tag setup. Thanks!

Original comment by kenyu73 on 5 Jan 2010 at 1:32

GoogleCodeExporter commented 8 years ago
Hey, I figured out how to fix it.
the error is in the error manual.

http://www.mediawiki.org/wiki/Manual:Errors_and_Symptoms#Fatal_error:_Allowed_me
mory_size_of_nnnnnn
n_bytes_exhausted_.28tried_to_allocate_nnnnnnnn_bytes.29

I changed 
ini_set( 'memory_limit', '20M' ); in localsettings.php to 32M and I can now 
subscribe to more than 3 
calendars. 

here's an example of my calendar tag: <calendar name ="Calendar"
week
subscribe="RESOCcal:Main/Social Events/RESOC, Calendar:Main/Public Calendar, 
Seniorscal:Main/Senior 
Events/Senior Events"
disableaddevent
 />
(it's messy but that is 3 calendars). Before when I tried to add a fourth it 
gave the fatal error. Now that I 
increased the memory limit in the php I can add more. 
Hope that helps

Original comment by lloyd_fo...@Hotmail.com on 6 Jan 2010 at 7:34

GoogleCodeExporter commented 8 years ago
Nice catch! It's probably not x amount of calendars that caused the error, it 
was
probably the number of events (or data size) combined in all of the calendars. 
I'll
have to add this in the tips section of MediaWiki.

Thanks again!

Original comment by kenyu73 on 6 Jan 2010 at 1:22

GoogleCodeExporter commented 8 years ago

Original comment by kenyu73 on 6 Jan 2010 at 1:33