HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[Resolved][Revisiting][Resolved] Memory limit error

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#96672 (In Topic #19191)
Avatar

Community saint

editing forum notifications -> advanced

When editing my notification settings for the "Forum topic activity" and click advanced, I get this error…




I know this has been hashed over many times, but…

I've set PHP memory to 128M in all my php.ini files (probably 4 locations server-wide) and in .htaccess. I've noticed when using PHP Info from the "Tools" in the admin panel it shows 64M local and 128M master. When I run my php info file from the root doc directory I get 128M local and 128M master, which matches all my php config files. Which php info should I believe, and, if 64M is actuallyl correct, where the heck do I change that "fantom" one?



Last edit: by sholzy

Steve
Back to the top
 
Important!
Posted
Rating:
#96677
Avatar

Automated fix message

sholzy said

When editing my notification settings for the "Forum topic activity" and click advanced, I get this error…




I know this has been hashed over many times, but…

I've set PHP memory to 128M in all my php.ini files (probably 4 locations server-wide) and in .htaccess. I've noticed when using PHP Info from the "Tools" in the admin panel it shows 64M local and 128M master. When I run my php info file from the root doc directory I get 128M local and 128M master, which matches all my php config files. Which php info should I believe, and, if 64M is actuallyl correct, where the heck do I change that "fantom" one?

This issue has been filed on the tracker as issue #1166, with a fix.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Important!
 
Posted
Item has a rating of 5 (Liked by sholzy)  
Rating:
#96678
Avatar

ocPortal uses a 64MB limit internally in normal operation, for safety purposes. In a very small set of circumstances it will raise this limit, but this isn't a case where we want to do that. Instead we need to limit the notifications shown to 250. That shouldn't impact users, as the normal operation would be to turn them off from viewing a particular topic, and the review here is only useful for reviewing if you have a small set of them.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#96686
Avatar

Community saint

Thanks Chris, that fixed it.  :thumbs:

Steve
Back to the top
 
Posted
Rating:
#96727
Avatar

Community saint

I thought this was solved. Clicking on the "monitor" button throws the same error. The monitor button does update to show "unmonitor", not sure if the thread is actually being monitored though.

Steve
Back to the top
 
Posted
Rating:
#96735
Avatar

I couldn't reproduce on your w*i*software.com domain, under the sholzy username. I'm happy to test/debug direct on your site if you let me know the username and which site :).

The limit of topic notifications to display may need reducing further. You could try changing 250 to 200 in these files:
sources/hooks/systems/notifications/ocf_topic.php
and
sources/notifications.php


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#96737
Avatar

Community saint

Chris Graham said

I couldn't reproduce on your w*i*software.com domain, under the sholzy username. I'm happy to test/debug direct on your site if you let me know the username and which site :).

You had the correct username and domain. :) Try this topic…
/forum/index.php?page=topicview&id=gambas-version-3%2Fg3-gen
eral%2Fshowing-timer-value-in#post_9330


Adjusting the notifications from my profile page works fine after your fix, but using the monitor button in a topic gives the error.

None of my users have said they've had any issues. But then again I don't think most really care one way or the other if they receive notifications.

The limit of topic notifications to display may need reducing further. You could try changing 250 to 200 in these files:
sources/hooks/systems/notifications/ocf_topic.php
and
sources/notifications.php


I changed the two values to 200, still the same result after clearing caches.


Bonus points:  :lol:
While you're in there, visit the site tree editor and tell me if it's working for you. It's not for me. I had this issue before on another (and much slower) server around version 7.1.x.
[edit:] If this is a bug, Ill open another topic on it.

Neither of these two issues is high priority for me, so even if it takes another week before you  get around to it it would be ok with me.  :thumbs:


Last edit: by sholzy

Steve
Back to the top
 
Posted
Rating:
#96738
Avatar

Community saint

If I log in as Admin it works without errors.  :sarcy:

Steve
Back to the top
 
Posted
Rating:
#96739
Avatar

Ok, solved and solved.

Both situations where large numbers of forums meant I had to make the code a bit smarter.

sources/site_tree.php was where the second fix happened.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#96740
Avatar

Community saint

Awesome!  :thumbs: Thanks Chris!

I haven't seen the site tree branches expand that quick in a very long time.

Both situations where large numbers of forums meant I had to make the code a bit smarter.

So, I guess I'm kinda of rough on your software?   :whistle:   If I have the opportunity to break something, I'll do it. :thumbs:

Steve
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: