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.


[ocP 8.1] users profile: error message and allowed memory size of 67108864 bytes exhausted when

Login / Search

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

Fan in action

I recently updated to version 8.1. Since then i get following errors.
I am using a very slightly modified default theme (only some css styles) and german language.

When visiting any users profile:
Javascript error: e is undefined
Source file: http://xxx/themes/my_theme/templates_cached/DE/javascript_ajax_people_lists.js
Line: 17

When visiting my own admin profile:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 491520 bytes) in /var/www/xxx/sources/tempcode.php(1651) : eval()'d code on line 48

I have already tried to expand the memory according the FAQ but without result.


Thanks for any support.
Back to the top
 
Posted
Rating:
#87028
Avatar

Fan in action

Ok i found the solution for the first error:
it is filed on the tracker as issue #596

Back to the top
 
Important!
Posted
Rating:
#87029
Avatar

Automated fix message

Johor said

I recently updated to version 8.1. Since then i get following errors.
I am using a very slightly modified default theme (only some css styles) and german language.

When visiting any users profile:
Javascript error: e is undefined
Source file: http://xxx/themes/my_theme/templates_cached/DE/javascript_ajax_people_lists.js
Line: 17

When visiting my own admin profile:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 491520 bytes) in /var/www/xxx/sources/tempcode.php(1651) : eval()'d code on line 48

I have already tried to expand the memory according the FAQ but without result.


Thanks for any support.
This issue has been filed on the tracker as issue #597, 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
Rating:
#87070
Avatar

Fan in action

Thanks, but this fix didn't solve my problem.
I get exactly the same error message after applying the fix:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 491520 bytes) in /var/www/windstar-club.de/sources/tempcode.php(1651) : eval()'d code on line 48
Back to the top
 
Posted
Rating:
#87073
Avatar

8.1.1 is coming out in an hour or so - please re-report if it happens with this.


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:
#87075
Avatar

Fan in action

Ok, i did the update to 8.1.1 and something has changed…

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 417991 bytes) in /var/www/windstar-club.de/sources/tempcode.php on line 304

or

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 292089 bytes) in /var/www/windstar-club.de/sources/tempcode.php(1665) : eval()'d code(11) : runtime-created function on line 1
Back to the top
 
Posted
Rating:
#87077
Avatar

Okay, probably the webhost is imposing the 64MB limit, which is the same as ocPortal's default limit, hence my confusion. The member profile's are quite hefty since v8 due to all the tabs – I will perform a memory usage analysis on it soon.


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:
#87078
Avatar

Fan in action

In my php5.ini i have set memory_size = 1024M;
phpinfo() says Local Value: 128M and Master Value: 1024M
In the .htaccess php_value memory_limit is set to "128M"
Back to the top
 
Posted
Rating:
#87081
Avatar

Fan in action

Got it!

I am using php5 with suhosin, but i have never cared for it…
It disallows setting the memory_limit to a value greater than the one the script started with by default.
Setting of suhosin.memory_limit = 128M fixes my problem.

Thanks for your quick response and help that points me finaly in the right direction.
Back to the top
 
Posted
Rating:
#87084
Avatar

Cool. The screen should not be using that much memory though, so I'm still considering this a bug until at least I've investigated.


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:
#87128
Avatar

For reference, memory usage of the tabs is roughly as follows…

Code

Baseline: 9.19MB
 Activities: 0.12MB
 Filedump: 0.02MB
 Posts: 0.02MB
 About: 1.94MB
 Blog: 0.16M
 Friends: 0.78MB
 Points: 0.43MB
 Galleries: 0.03MB
 Warnings: 0.02MB
 PTs: 0.45MB
 Edit: 1.66MB
  Avatar: 1.66MB
  Delete: 0.03MB
  Photo: 0.07MB
  Privacy: 0.37MB
  Profile: 0.92MB
  Settings: 1.09MB
  Signature: 0.19MB
  Title: 0.03MB
  Notifications: 9.7MB

(That's not very scientific - e.g. avatar won't use so much, but it is the first edit tab so is the one that first loads the forms API)

Clearly notifications is a problem. It definitely slows down load, as well as uses 1/2 of the memory all the tabs use combined. I will see if that can be optimised.

In total we're still under 32MB. So it's still nowhere near the 64MB beater being seen in this topic. Do you have any large sets of default avatars to pick from, or particularly complex panels, or large amounts of profile field data? (for example)


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
 
Important!
Posted
Rating:
#87134
Avatar

Automated fix message

Chris Graham said

Cool. The screen should not be using that much memory though, so I'm still considering this a bug until at least I've investigated.
This issue has been filed on the tracker as issue #616, 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
Rating:
#87135
Avatar

This is a rather complex change that improves how some parts of our core Javascript code functionality, which was necessary given that the AJAX loading of tabs has to deal with stuff never intended to load via AJAX.

I would appreciate it if people report if they find any problems after installing this fix, as I am reluctant to release it in a patch release until then.


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:
#87136
Avatar

Community saint

I cannot comment on the 'fix' as I haven't installed it.

I've tried to replicate the issue (as reported by Johor) by 'beasting-up' my profile on my live 8.1.1 site, but I cannot get it to misbehave.

That being the case, I've avoided the fix. Sorry!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#87137
Avatar

Fan in action

Chris Graham said


In total we're still under 32MB. So it's still nowhere near the 64MB beater being seen in this topic. Do you have any large sets of default avatars to pick from, or particularly complex panels, or large amounts of profile field data? (for example)

I don't have other sets than the default avatars bundled with ocPortal.
I use some standard panels such as side_shoutbox and main_forum_topics and 2 different own panels. One is to show the banner of a sponsor (4 times) and one is to show Google AdSense.

The profile field data is nearly empty.

Right now i suspect the Google AdSense panel, since it does not show on my admin profile, but on all others. I will remove it temporarily together with the suhosin.memory_limit to see the effect.

I will also check your fix #616.
Back to the top
 
Posted
Rating:
#87138
Avatar

The fix would help narrow it down, as if you turn your memory limit back down, you'll see which tab causes the memory problem (as they now all generate in separate HTTP requests).


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:
#87139
Avatar

Fan in action

Removing the panels didn't change anything.

I applied the fix and my profil tab is loaded.
The tab posts shows the loading animation but did not finish at all.

When selecting edit tab the first time following error apears:

Code

preinitFileInput is not defined
Source: http://xxx/themes/myTheme/templates_cached/DE/javascript.js
Line: 556

The content of the edit screen is ok.
This happens only once. No error is shown after changing to another tab and back to edit.

All other tabs are ok.
Back to the top
 
Posted
Item has a rating of 5 (Liked by Guest)  
Rating:
#87140
Avatar

Ah. You might need to empty your browser cache for the edit tab to work correctly, as we've changed the Javascript. I will take a look at the posts tab, that could be the cause for you. Most users have it disabled as the activities addon replaces it, so it might be a bug nobody has noticed.


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
Item has a rating of 5 (Liked by Guest)  
Rating:
#87141
Avatar

Fan in action

There is another error message on edit tab i have missed:

Code

standardAlternateFields is not defined
Quelldatei: http://xxx/themes/myTheme/templates_cached/DE/javascript.js
Zeile: 572

it is the first one and then 3 times the "preinitFileInput is not defined"
Back to the top
 
Posted
Rating:
#87143
Avatar

Fan in action

Emptying my browser cache didn't change anything.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Expand