Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Forum
Help
Search
Login
Register
News
:
December 02, 2008, 01:20:56 pm
RSGallery2 Support Forums
RSgallery2 support forums
RSgallery2 bugs & problems
(Moderators:
Jonah
,
Tomislav Ribicic
,
Daniel Tulp
,
Ronald Smit
)
"Allowed memory size exhausted" error
« previous
next »
Topic Tools
Search this topic
Pages
1
2
Author
Topic: "Allowed memory size exhausted" error (Read 19351 times)
«
on:
December 04, 2006, 01:19:54 pm »
mariya
Newbie
Posts: 40
"Allowed memory size exhausted" error
Hello!
Trying to help out a friend. He's using RSGallery2 1.11.9 Alpha - SVN: 366.
He is getting the following error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 9216 bytes) in /home/domain/public_html/administrator/components/com_rsgallery2/includes/img.utils.php on line 527
What he's done is - added 5 photos, deleted them afterwards, decided to create new categories &
upload photos into them - and the above is what he gets.
Thanks in advance for your help!
Mariya
PS - I have seen this post
http://rsgallery2.net/component/option,com_smf/Itemid,17/topic,45.0
and it did not help, he doesn't seem to have a php.ini. He reckons this is the line with the error:
$database->setQuery("SELECT gallery_id FROM #__rsgallery2_files WHERE name = '$name'");
Thanks again guys!
Logged
Reply #1
«
on:
December 06, 2006, 04:16:36 pm »
Daniel Tulp
Administrator
Hero Member
Search search search before posting please
Posts: 1870
Re: "Allowed memory size exhausted" error
first off, every php install has a php.ini file, but if you are on a shared server, you won't be able to access it
what you can do then is add lines to the .htaccess file to increase you memory size or just ask the friendshosting
add to .htaccess:
php_value memory_limit 16M
Logged
RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
Reply #2
«
on:
December 28, 2006, 08:55:51 pm »
Wago
Newbie
Posts: 4
Re: "Allowed memory size exhausted" error
After upgrading to 1.11.11 (latest nightly) i got an same sort of error:
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 2200 bytes) in /home/twenteprimeurrally.nl/public_html/administrator/components/com_rsgallery2/includes/img.utils.php on line 566
After trying to upload an .zip i tried it with an single file (2.35M) i got the same result.
I'm not an PHP expert, but i think the php.ini isn't the problem.
Thanks in advance for your sugestions.
Logged
Reply #3
«
on:
December 29, 2006, 01:50:14 pm »
Ronald Smit
Administrator
Hero Member
Posts: 1218
Re: "Allowed memory size exhausted" error
Wago is right.
It has nothing to do with php.ini. Every image manipulation function(resizing, watermarking, thumbs creation) is using up memory. If memory is not cleared after each action, the memory will reach it's limits.
In short this means we need to force the script to free up memory. I have made some modifications to the script and put it in SVN. For those that want to try, I attached the modified
img.utils.php
Overwrite the one in
<yourhost>/administrator/components/com_rsgallery2/includes
and try again. If everything is OK, this should not happen again.
Please report back into this thread.
Good luck,
Logged
Ronald Smit
RSGallery2 Developer
FAQ
|
Known issues
Reply #4
«
on:
December 29, 2006, 03:55:40 pm »
Wago
Newbie
Posts: 4
Re: "Allowed memory size exhausted" error
After uploading the new img.utils.php there seems to be no difference.
The strange thing is that uploading images in an other gallary is no problem.
The one with the problem:
http://www.twenteprimeurrally.nl/component/option,com_rsgallery2/Itemid,51/catid,5/
Example of an working one:
http://www.twenteprimeurrally.nl/index.php?option=com_rsgallery2&Itemid=51&catid=6
Logged
Reply #5
«
on:
December 29, 2006, 04:33:08 pm »
Ronald Smit
Administrator
Hero Member
Posts: 1218
Re: "Allowed memory size exhausted" error
Aha, that does make sense.
I see the SEF URL has the problem, and the normal one does not.
It seems there are more users have problems with SEF.
Check out
http://rsgallery2.net/component/option,com_smf/Itemid,14/topic,5749.0
Perhaps you are using the same component.
Let me know if this is actually what is causing the problem and what component that is.
Cheers,
Ronald
Logged
Ronald Smit
RSGallery2 Developer
FAQ
|
Known issues
Reply #6
«
on:
December 30, 2006, 11:01:44 am »
Wago
Newbie
Posts: 4
Re: "Allowed memory size exhausted" error
Thanks Ronald, i look into this.
The example was not the best one; it was one that was not accesed true the browser, so OpenSEF did not have rewrite it. The link is now:
http://www.twenteprimeurrally.nl/component/option,com_rsgallery2/Itemid,51/catid,6/
Logged
Reply #7
«
on:
January 05, 2007, 06:45:56 pm »
Wago
Newbie
Posts: 4
Re: "Allowed memory size exhausted" error
Tried to upload in that specific galery without OpenSEF, but the warning stays.
Well i call it the day for now.
Cheers,
Wago
Logged
Reply #8
«
on:
February 14, 2007, 07:54:34 am »
Martin Kacz
Newbie
Posts: 1
Re: "Allowed memory size exhausted" error
I get this using upload (trying this only with one file)
I'll get
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 1920 bytes) in httpd.www/administrator/components/com_rsgallery2/includes/img.utils.php on line 667
My php.ini is set to 12M and my host/provider didnt or wouldnt set it higher.
It works fine uploading images below 1920px width. I've tryed renaming the image file (if that would do anything good) but didnt help, its the file size ofcource!.
this error is when using Ronalds img.utils.php
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 7680 bytes) in httpd.www/administrator/components/com_rsgallery2/includes/img.utils.php on line 561
Using RSGallery2 1.12.2 Alpha - SVN: 584
«
Last Edit: February 14, 2007, 12:45:09 pm by Martin Kacz
»
Logged
http://www.stylat.se
Reply #9
«
on:
April 12, 2007, 09:03:21 am »
front
Newbie
Posts: 3
Re: "Allowed memory size exhausted" error
I get a simular error too: Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 2272 bytes) in /web/www.-----.nl/htdocs/administrator/components/com_rsgallery2/includes/img.utils.php on line 667
Is there allready a solution for this?
Logged
Reply #10
«
on:
April 25, 2007, 01:02:28 am »
M Rammeloo
Newbie
Posts: 6
Re: "Allowed memory size exhausted" error
I'm also getting this error:
Fatal error: Allowed memory size of 10485760 bytes exhausted (tried to allocate 1632 bytes) in /home/rammeloo/domains/rammeloo.com/public_html/yasmijn/administrator/components/com_rsgallery2/includes/img.utils.php on line 519
- I doesn't matter if I try to upload a single image, zip or ftp
- I doesn't matter if I use 1.12.2, or SVN 630 or 700 (although credits say SVN 689
I'm happy to give more information. I'm even prepared to give superadmin access to a developer, because I really want to show some pictures of my three day old daught to the world (ofcourse I know about alpha software etc.)
Martijn
Edit: however...... I found out that I had made a mistake while resizing the pics. They were waaaay to big. After using the proper settings in Irfanview, everything was OK. Note to self: don't play with the website after feeding your baby at 3 am
Perhaps the others with this problem should also (re)check their filesizes
«
Last Edit: April 25, 2007, 03:10:27 am by M Rammeloo
»
Logged
Reply #11
«
on:
May 16, 2007, 07:48:09 am »
CofL
Newbie
Posts: 7
Re: "Allowed memory size exhausted" error
Hello ladies & gents,
Same error here, and it disappears when you upload smaller images....All files > 1 M are rejected, files < 500 kB are fine.
( /Joomla/administrator/components/com_rsgallery2/includes/img.utils.php on line 667 )
Any news yet on how to tackle this problem? I really need to go live with the site......
regards
CofL
Logged
Reply #12
«
on:
May 16, 2007, 12:32:43 pm »
Daniel Tulp
Administrator
Hero Member
Search search search before posting please
Posts: 1870
Re: "Allowed memory size exhausted" error
you can try increasing your allowed memory size in your php.ini file
Logged
RSgallery2 developement team
RSgallery2 modules:
design.danieltulp.nl
Reply #13
«
on:
May 29, 2007, 04:36:08 am »
CofL
Newbie
Posts: 7
Re: "Allowed memory size exhausted" error
Memory is defined at 10M, and provider will not increase....
Any ideas?
kind regards,
CofL
Logged
Reply #14
«
on:
June 09, 2007, 11:49:43 am »
CofL
Newbie
Posts: 7
Re: "Allowed memory size exhausted" error
ok,
I guess I'll have to wait until the provider changes its policies or the developers change the program.
32 M is way too much memory for a program to use....
Until then......no RS2gallery for me I guess. Pity.....
Logged
Pages
1
2
« previous
next »
Jump to:
Please select a destination:
-----------------------------
RSgallery2 support forums
-----------------------------
=> RSgallery2 bugs & problems
===> Resolved Issues
===> Known Issues
=> Features
=> Display and Templates
=> RSgallery2 modules and plugins (mambots)
-----------------------------
RSGallery2
-----------------------------
=> General discussion
=> Gallery Showcase
=> Template directory
=> Meta Forum
=> Duplicate Threads
-----------------------------
Language translations
-----------------------------
=> General language and translation questions
=> Chinese
=> Danish
=> Dutch
=> English
=> French
=> German
=> Greek
=> Polish
=> Spanish
=> Other languages
=> New translations
-----------------------------
Developers corner
-----------------------------
=> Developer Lobby
=> Nightly Builds for RSGallery2 in Joomla 1.5
=> J15Backport [Closed]
=> Nightly Builds for RSGallery2 Legacy, J1.5 or J1.0 - Now Reopened!
Print
Advanced search
Powered by SMF 1.1.7
|
SMF © 2006-2008, Simple Machines LLC
Pn-Pn Theme by koni.
Loading...