Memory Exhausted

Post

Posted
Rating:
#2884 (In Topic #520)
Avatar
Standard member
kitonline is in the usergroup ‘Fan in action’
I used php 5.6.  I try to upgrade to 10.0.5. The error is "Allowed memory size of 67108864 bytes exhausted (tried to allocate 786432 bytes) [sources/global.php(251) : eval()'d code(2110) : runtime-created function at 650]"

I have already used .user.ini to put in memory_limit=256M

But the same error. What can I do? I used Godaddy hosting.
2017-06-03 12_21_35-Composr upgrader.png
Online now: No Back to the top

Post

Posted
Rating:
#2885
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Go to:
Home → Admin Zone → Tools → PHP-Info / Server Checks

Search for memory_limit

If this isn't the 256MB that you set, then I would suggest you didn't adjust this setting correctly for godaddy. You may need to reach out to godaddy on how to change it. If this is 256MB then please let us know here.

You could also try the recommended.htaccess, rename to .htaccess
This may or may not work for you. 

Last edit: by Paul Flavel

Online now: No Back to the top

Post

Posted
Rating:
#2886
Avatar
Standard member
kitonline is in the usergroup ‘Fan in action’
Thank Paul.
It's 128M follow your instruction.
I created another phpinfo() at public_html, it returned 400M. I set 400M with .user.ini in public_html
10RC25.png

composr phpinfo.png
root phpinfo.png

 
Online now: No Back to the top

Post

Posted
Rating:
#2887
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
There was an issue with an earlier version of composr that caused this error.
What version are you upgrading from?
Online now: No Back to the top

Post

Posted
Rating:
#2888
Avatar
Standard member
kitonline is in the usergroup ‘Fan in action’
10RC25. How to get it around?
Online now: No Back to the top

Post

Posted
Rating:
#2889
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Ahhhh, just a few versions behind.
I would suggest you upgrade one version at a time, until you reach the current version.

This may be a little tricky.

First do a website backup……


Full list of manual updates per version:

http://compo.sr/upgrades/10.RC25-10.0.1.cms
http://compo.sr/upgrades/10.0.1-10.0.2.cms
http://compo.sr/upgrades/10.0.2-10.0.3.cms
http://compo.sr/upgrades/10.0.3-10.0.4.cms
http://compo.sr/upgrades/10.0.4-10.0.5.cms

This should work. In theory.
Please let me know how you go.

The other option (and better option, if you are comfortable with ftp etc) you have is to  "generate a personalised manual upgrader", there is a link for this on the upgrade page where you would normaly place your version link:


Download, extract then using ftp upload.
 

Last edit: by Paul Flavel

Online now: No Back to the top

Post

Posted
Rating:
#2893
Avatar
Standard member
kitonline is in the usergroup ‘Fan in action’
The memory error occurred after I entered Master password so I can't do the "generate a personalised manual upgrader" page. What can I do?

You mean I download an upgrade packages, extract and upload (no other steps) and then repeat?
http://compo.sr/upgrades/10.RC25-10.0.1.cms
http://compo.sr/upgrades/10.0.1-10.0.2.cms
http://compo.sr/upgrades/10.0.2-10.0.3.cms
http://compo.sr/upgrades/10.0.3-10.0.4.cms
http://compo.sr/upgrades/10.0.4-10.0.5.cms
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Rajesh KumarLiked by Chris Graham)
#2894
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
Those addresses you enter into you upgrade field.

Try using the below in your address bar
upgrader.php?type=file_upgrade&tar_url=

In my screenshot you will see a field to enter the addresses per my last post.

I would go for the manual option. Per the link in my image previously.

I have modified my generated link to be from 10.RC25 to 10.0.5

Click here

This should work. Did it on my mb.

Download, extract it then upload.

Remember. Always do a website full backup. Just incase.

Last edit: by Paul Flavel

Online now: No Back to the top

Post

Posted
Rating:
#2910
Avatar
Standard member
Paul Flavel is in the usergroup ‘Honoured member’
For the benefit of others who may encounter this issue, did the above work?
Online now: No Back to the top

Post

Posted
Rating:
#2914
Avatar
Standard member
kitonline is in the usergroup ‘Fan in action’
Just done it and it was sucessful.

I appended "/upgrader.php?type=file_upgrade" to to my site URL and could access the upgrader page with url input box after entered the Master Password.

The URL I used was your "generated link to be from 10.RC25 to 10.0.5".

But why your link is 62M.  But this "http://compo.sr/upgrades/10.RC25-10.0.5.cms" I got from https://compo.sr/news/view/new-releases/composr-10-0-5-released.htm is only 19M.

From the Composr CMS: Content Management meets social media I can't find the link to https://compo.sr/news/view/new-releases/composr-10-0-5-released.htm (PS: It was the landing page took too long to load completely.). I have to google to reach it.

Last edit: by kitonline

Online now: No Back to the top

Post

Posted
Rating:
#2915
Avatar
Standard member
kitonline is in the usergroup ‘Fan in action’
The lower part of the compo.sr homepage took ~20 second to load. See the screen recording.

compo.sr homepage not loaded fully.mp4

Online now: No Back to the top

Post

Posted
Rating:
#2922
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’

kitonline said

Just done it and it was sucessful.

I appended "/upgrader.php?type=file_upgrade" to to my site URL and could access the upgrader page with url input box after entered the Master Password.

The URL I used was your "generated link to be from 10.RC25 to 10.0.5".

But why your link is 62M.  But this "http://compo.sr/upgrades/10.RC25-10.0.5.cms" I got from https://compo.sr/news/view/new-releases/composr-10-0-5-released.htm is only 19M.

From the Composr CMS: Content Management meets social media I can't find I link to https://compo.sr/news/view/new-releases/composr-10-0-5-released.htm. I have to google to reach it.

The personal generated links consider what addons you have installed for the files extracted but also include full copies of all the non-installed addons as TAR files. It's the only way we can do it for manual extraction. For the automatic extraction it will update the existing non-install addon TAR files with updated files dynamically.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#2923
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’

kitonline said

The lower part of the compo.sr homepage took ~20 second to load. See the screen recording.

compo.sr homepage not loaded fully.mp4



Thank you for the constructive feedback. I've just made a number of optimisations. It will still take a few seconds for the tutorial carousels to load because there's a lot of data in there (all the tooltips), but I have deferred them so it doesn't affect the rest of the page loading.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#2924
Avatar
Standard member
kitonline is in the usergroup ‘Fan in action’
Won't a daily update be good enough?
Online now: No Back to the top

Post

Posted
Rating:
#2925
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’

kitonline said

Won't a daily update be good enough?

I'm not really sure what you mean. However, if you're suggesting new versions of Composr daily that's not feasible, they need some manual testing, and each release has the potential to require some manual work by themers in updating themes, or people with overridden code files, so it would use up too many resources for everyone to have the updates coming out daily.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#2926
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’

kitonline said

I used php 5.6.  I try to upgrade to 10.0.5. The error is "Allowed memory size of 67108864 bytes exhausted (tried to allocate 786432 bytes) [sources/global.php(251) : eval()'d code(2110) : runtime-created function at 650]"

I have already used .user.ini to put in memory_limit=256M

But the same error. What can I do? I used Godaddy hosting.
2017-06-03 12_21_35-Composr upgrader.png

Composr sets a lower memory limit, but it also raises it again for high-memory operations like upgrading.
Some web-hosts actually block changing of the memory limit, it is possible this was your problem, although I did not find any evidence of GoDaddy doing this from their website.

I have made some performance improvements that should make it use less memory and operate faster for future users. This will take a couple of upgrades to take effect, as the upgrader itself wouldn't be upgraded until after the next upgrade is done.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top
1 guest and 0 members have just viewed this.
Back to Top