Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Failed when when I create more than 4 maps

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
studionews



Joined: 15 Jan 2007
Posts: 4

PostPosted: Fri Jan 19, 2007 9:44 am    Post subject: Failed when when I create more than 4 maps Reply with quote

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

PostPosted: Fri Jan 19, 2007 2:51 pm    Post subject: Re: Failed when when I create more than 4 maps Reply with quote

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: 2058
Location: United Kingdom

PostPosted: Fri Jan 19, 2007 4:55 pm    Post subject: Re: Failed when when I create more than 4 maps Reply with quote

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

PostPosted: Fri Jan 19, 2007 5:39 pm    Post subject: Re: Failed when when I create more than 4 maps Reply with quote

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

PostPosted: Fri Jan 19, 2007 9:26 pm    Post subject: Reply with quote

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: 2058
Location: United Kingdom

PostPosted: Sat Jan 20, 2007 10:42 am    Post subject: Reply with quote

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

PostPosted: Sun Jan 21, 2007 1:32 pm    Post subject: Reply with quote

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

PostPosted: Mon Jan 22, 2007 1:26 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group