Allowed Memory Size fatal error

News Show Pro GK5 - flexible, responsive and easily extendable free Joomla module support forum.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue Oct 21, 2014 10:28 pm
Hi Gavick,

I'm running into an Allowed Memory Size error when trying to load the GK4 News Show Pro module version 1.6.4 in a Joomla 3.3.6 site with the Game template for J3.

The error says that it tried to allocate 42949672941 bytes. I converted that to MB and it says it would be about 41,000 MB. That's crazy! Right now I upped the PHP memory_limit setting to 512M.

Can you please tell me why this is happening?

Thanks

Code: Select all
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 42949672941 bytes) in /home/mysite/public_html/cfs_demo/administrator/components/com_modules/views/module/tmpl/edit_assignment.php on line 91
User avatar
Gold Boarder

GK User
Wed Oct 22, 2014 10:28 am
Hello,

First of all please try to disable the "Create thumbnails" feature - most probably you have a very big images to convert.
User avatar
Administrator

GK User
Wed Oct 22, 2014 9:50 pm
dziudek wrote:Hello,

First of all please try to disable the "Create thumbnails" feature - most probably you have a very big images to convert.


Thanks for your reply dziudek,

I'm not sure where to disable it. I didn't see anything in the Game template or in K2, though I know K2 resizes images for the article items.

By the way, I built the site on top of the Games Quickstart. I only have two K2 items remaining from the demo, which were existing items I re-titled and for which I provided new aliases, text, and images. And I remade both images today and they are about 60k each.

But you should know that I do have the problem with trying to view any module type, even Custom HTML modules. The admin template formatting simply does not show up and the unformatted module page seems to stop about halfway down the content.

I don't think it's a template issue.

I got that error code from the bottom of a halfway loaded page. The same version of the site on my local development computer doesn't display the error code, just the halfway loaded page.

Any ideas?

Thanks
User avatar
Gold Boarder

GK User
Wed Oct 22, 2014 10:39 pm
In this case it looks weird - I didn't have any similar issue. Did you tried to contact your hosting? Or please try to enable the debug plugin.

The thumbnails creation can be disabled in the NSP GK5 module under the "Thumbnails" tab.
User avatar
Administrator

GK User
Thu Oct 23, 2014 2:28 am
dziudek wrote:The thumbnails creation can be disabled in the NSP GK5 module under the "Thumbnails" tab.


I can't access the "Thumbnails" tab in NPS GK5, because the module doesn't fully load (and it is without the admin template CSS formatting).

I did have debug site enabled, but since the page doesn't fully load, I can't see the debug tables.

I do see this css code at the top when I click on the NSP GK5 module after the module title and the word "Site":

Code: Select all
span.readonly { padding: 10px; font-family: Arial; font-size:13px !important; font-weight: normal !important; text-align: justify; color: #4d4d4d; line-height: 24px; } span.readonly h1 { clear:both; font-family: Georgia, sans-serif; font-size:38px;...
User avatar
Gold Boarder

GK User
Thu Oct 23, 2014 12:44 pm
In this case you have to consult this issue with your hosting - I'm unable to help you.
User avatar
Administrator

GK User
Thu Oct 23, 2014 2:46 pm
Hi Dziudek,

A separate version of this site built on the University template works fine on both server platforms (Hostgator, and MAMP locally). I can open all modules and they display fine in the Module Manager Edit page. So it must be something to do with that specific site build.

I'll keep checking. Please let me know if you can think of anything else.

Btw, this site was built on the quickstart of Game, by renaming article titles and text, using exiting modules. Would it be too much trouble for you to try opening some modules in your Game demo and seeing if they open fully and display properly?

Railer
User avatar
Gold Boarder

GK User
Thu Oct 23, 2014 3:15 pm
Just found out that if I switch the default administrator template to Hathor, the modules display fine in the Module Manager Editing page. Problem is that I don't like the Hathor admin template.

Still looking for a solution to fix the issue in the Isis template.
User avatar
Gold Boarder

GK User
Thu Oct 23, 2014 3:27 pm
While I had the Hathor template as the default, I opened a NSP GK5 module and clicked on the Thumbnails tab, but there were no parameter settings displayed, just a blank white area. The other tabs did display their parameter options.

I also tried installing a bootstrap3 version of the Isis template, and had the same problem with the module editing page not displaying properly.

This is frustrating!
User avatar
Gold Boarder

GK User
Fri Oct 24, 2014 11:58 am
I think that it must be issue on your hosting or your configuration, because it is a first time when I see this kind of issue. On our server all modules looks fine.
User avatar
Administrator

GK User
Fri Oct 24, 2014 2:22 pm
No resolution yet on this issue. I'm thinking it is something to do with specific site content.

• I re-installed a fresh Games quickstart demo (J! 3.3.0) in MAMP, works fine.
• Upgraded to J! 3.3.6, works fine.

I'm going to try rebuilding the site in the next few days on this new demo install and check in between steps, and will report here.

I think I mentioned previously that I overwrote the various template demo image files with actual images, and linked to new images in articles and K2 items, retitling them, etc. Renamed menu items and their aliases. Renamed categories. Deleted unused content. I also enabled the Game template's CSS override feature and have quite a bit of CSS pasted into the css field. (I disabled the CSS override feature as a test on the problem site, but it seems that it had no effect on the module editor problem.)

I wonder if I ought to build the site from scratch? Using the quickstart demo as a starting point approach normally works fine for me. It's obviously a good way to shortcut the configuration of the template and modules. I normally unpublish and/or delete the modules I don't need.

I checked the Imageshow GK4 slide images and while one was 184k, the others were around 55k or 65k. I also checked the image sizes of the K2 items and they aren't excessively large. In general, the Game template does seem to display quite large image dimensional sizes by the intended configuration, which I assume would require broadband connections. The initial error I received was of exceeding the PHP memory_limit. It's at 128M on my MAMP platform. 256M on the server. Do you think the above image file sizes are too large? I process all jpg images in Fireworks at a quality setting between 50% to 80%. The Imageshow images are at 50% - 65% quality, to try to get them down to around 60kb or lower.

Can you please advise on that? What software do you use for optimizing images?

Also, I noticed that in the University template, the image quality is very good and the image of the man on the home page is 82kb. I checked one of the images in the Game demo Imageshow and it was 41kb. So my images don't appear to be too large, and I am puzzled as to what would be causing the memory_limit error, above?

If I don't hear from you before I embark on the rebuild of the site, I'll post my results here. If you have comments on what I just wrote, feel free to post them.

Thanks
User avatar
Gold Boarder

GK User
Sun Oct 26, 2014 6:41 am
Please remember that the final size of the image is not so important as the image dimensions, because the image dimensions can cause issues with memory.
User avatar
Administrator

GK User
Sun Oct 26, 2014 3:57 pm
Thanks Dziudek,

That's very important to know. What I do is to view the images on the demo site — view background image — and note the dimensions, and then set my marquis selector in Fireworks to a fixed aspect ratio matching the origin dimensions, and then select the desired area, crop it, and resize to the final dimensions, at 72ppi.

So as far as I know, I've reproduced them all to the same dimensions. There may have been one image which was shorter. I'll check and report back. But would a single image cause the error I'm getting? Seems unlikely.

Rather than wasting time troubleshooting this issue, I'm thinking that I'll spend the 4 or 5 hours and rebuild the site. Being very careful of the image sizes. I'll let you know whether I do that, or not.
User avatar
Gold Boarder


cron