|
|
| Author |
Message |
studionews
Joined: 15 Jan 2007 Posts: 4
|
Posted: Fri Jan 19, 2007 9:44 am Post subject: Failed when when I create more than 4 maps |
|
|
Hi
When I create more than 4 maps the fiveth doesn't good.
Why ? Can't we not create more than 4 maps ?
thk |
|
| Back to top |
|
 |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Fri Jan 19, 2007 2:51 pm Post subject: Re: Failed when when I create more than 4 maps |
|
|
| studionews wrote: | Hi
When I create more than 4 maps the fiveth doesn't good.
Why ? Can't we not create more than 4 maps ?
thk |
Check these things in your php.ini:
; Maximum size of POST data that PHP will accept.
post_max_size = 20M (default is much lower)
; Maximum allowed size for uploaded files.
upload_max_filesize = 10M (default is much lower)
Also make sure you are giving php enough memory in php.ini as well.
Answer to your question is, yes, more than 4 maps works fine. Good luck. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Fri Jan 19, 2007 4:55 pm Post subject: Re: Failed when when I create more than 4 maps |
|
|
| chadd wrote: |
Check these things in your php.ini:
; Maximum size of POST data that PHP will accept.
post_max_size = 20M (default is much lower)
; Maximum allowed size for uploaded files.
upload_max_filesize = 10M (default is much lower)
|
How/Why do these two make a difference? I'm curious...
Anyway, memory_limit does for sure, and indeed you can have many more than 4 maps. Memory should be released between maps in the poller too, so the memory_limit should only affect the size of one map, rather than the total size of all maps. If not, I've broken something somewhere... |
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Fri Jan 19, 2007 5:39 pm Post subject: Re: Failed when when I create more than 4 maps |
|
|
| Howie wrote: | | chadd wrote: |
Check these things in your php.ini:
; Maximum size of POST data that PHP will accept.
post_max_size = 20M (default is much lower)
; Maximum allowed size for uploaded files.
upload_max_filesize = 10M (default is much lower)
|
How/Why do these two make a difference? I'm curious...
Anyway, memory_limit does for sure, and indeed you can have many more than 4 maps. Memory should be released between maps in the poller too, so the memory_limit should only affect the size of one map, rather than the total size of all maps. If not, I've broken something somewhere... |
I could see that MAYBE the first option MIGHT have an effect, but the second should not. |
|
| Back to top |
|
 |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Fri Jan 19, 2007 9:26 pm Post subject: |
|
|
I think this is the one that ended up doing the trick for me:
; Maximum size of POST data that PHP will accept.
post_max_size = 20M (default is much lower)
I found the information in another forum, because I was having the same problem - and I think it was because of the size of my map (over 2M - the default POST limit). I made both changes at the same time, so I am guessing that the above one is the one that mattered. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Sat Jan 20, 2007 10:42 am Post subject: |
|
|
| chadd wrote: | I think this is the one that ended up doing the trick for me:
; Maximum size of POST data that PHP will accept.
post_max_size = 20M (default is much lower)
I found the information in another forum, because I was having the same problem - and I think it was because of the size of my map (over 2M - the default POST limit). I made both changes at the same time, so I am guessing that the above one is the one that mattered. |
Which is weird, because weathermap doesn't use POST requests at all (OR uploads). I guess this is some typical PHP quirk. The manual doesn't mention any link between locally created files and post_max_size. That's why I asked. Gotta love PHP  |
|
| Back to top |
|
 |
studionews
Joined: 15 Jan 2007 Posts: 4
|
Posted: Sun Jan 21, 2007 1:32 pm Post subject: |
|
|
Hi,
I tested in my php.ini that :
; Maximum size of POST data that PHP will accept.
post_max_size = 20M (default is much lower)
; Maximum allowed size for uploaded files.
upload_max_filesize = 10M (default is much lower)
Now all is right !!!!!!!!!! I can create more than 4 maps
Thank you very much |
|
| Back to top |
|
 |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Mon Jan 22, 2007 1:26 pm Post subject: |
|
|
| glad that you got it working. Just out of curiosity, which one of the two/three settings did the trick for you (if you know)? Also, what was the file size your 4th map? Thanks. |
|
| Back to top |
|
 |
|