RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 22, 2008, 03:02:29 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  RSgallery2 bugs & problems (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  "Allowed memory size exhausted" error
Advanced search
  « previous next »
Pages 1 2
Author
Topic: "Allowed memory size exhausted" error  (Read 19132 times)
« on: December 04, 2006, 01:19:54 pm »
mariya Offline
Newbie
*
Posts: 40

View Profile

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 Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870
danieltulp@hotmail.com
View Profile WWW Email

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 Offline
Newbie
*
Posts: 4

View Profile WWW

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 Offline
Administrator
Hero Member
*****
Posts: 1214

View Profile WWW Email

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 Offline
Newbie
*
Posts: 4

View Profile WWW

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.  Huh

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 Offline
Administrator
Hero Member
*****
Posts: 1214

View Profile WWW Email

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 Offline
Newbie
*
Posts: 4

View Profile WWW

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 Offline
Newbie
*
Posts: 4

View Profile WWW

Tried to upload in that specific galery without OpenSEF, but the warning stays.

Well  i call it the day for now.  Cry

Cheers,

Wago
Logged
 
Reply #8
« on: February 14, 2007, 07:54:34 am »
Martin Kacz Offline
Newbie
*
Posts: 1
toastmaster1@hotmail.com
View Profile WWW Email

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

 
Reply #9
« on: April 12, 2007, 10:03:21 am »
front Offline
Newbie
*
Posts: 3

View Profile Email

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, 02:02:28 am »
M Rammeloo Offline
Newbie
*
Posts: 6

View Profile Email

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  Smiley

Perhaps the others with this problem should also (re)check their filesizes
« Last Edit: April 25, 2007, 04:10:27 am by M Rammeloo » Logged
 
Reply #11
« on: May 16, 2007, 08:48:09 am »
CofL Offline
Newbie
*
Posts: 7

View Profile

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, 01:32:43 pm »
Daniel Tulp Offline
Administrator
Hero Member
*****
Search search search before posting please Posts: 1870
danieltulp@hotmail.com
View Profile WWW Email

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, 05:36:08 am »
CofL Offline
Newbie
*
Posts: 7

View Profile

Memory is defined at 10M, and provider will not increase....

Any ideas?

kind regards,

CofL
Logged
 
Reply #14
« on: June 09, 2007, 12:49:43 pm »
CofL Offline
Newbie
*
Posts: 7

View Profile

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..... Undecided
Logged
 
Print  Pages 1 2
« previous next »
Jump to: