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.


Problem with uploaded images to catalog

Login / Search

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

Community saint

When trying to create a new entry for an image catalog, the database entry is created without a link to the uploaded image. The image is uploaded to /uploads/catalogues but the database entry shows no image uploaded. Since I cannot rely on the Flash uploader, I use the Simple Uploader. The following is the what the catalog entry looks like after the upload:



When going to the category in the front-end, you get the following error:

Code

An error has occurred

PHP ERROR [1] Out of memory (allocated 53739520) (tried to allocate 28536768 bytes) in /home/xxxxxxxxxxx/public_html/xxxxxxxxxxx/sources/images.php on line 533 (version: 7.1.1, PHP version: 5.2.17, URL: /catalogues/category/image-gallery/other.htm?keep_no_swfupload=1)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check ocPortal website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File    '/home/xxxxxxxxxxx/public_html/xxxxxxxxxxx/sources/failure.php'
Line    '669'
Function    'get_html_trace'
Args   

File    '/home/xxxxxxxxxxx/public_html/xxxxxxxxxxx/sources/global2.php'
Line    '936'
Function    '_fatal_exit'
Args   
'PHP ERROR [1] Out of memory (allocated 53739520) (tried to allocate 28536768 bytes) in /home/xxxxxxxxxxx/public_html/xxxxxxxxxxx/sources/images.php on line 533'


File    '/home/xxxxxxxxxxx/public_html/xxxxxxxxxxx/sources/failure.php'
Line    '209'
Function    'fatal_exit'
Args   
'PHP ERROR [1] Out of memory (allocated 53739520) (tried to allocate 28536768 bytes) in /home/xxxxxxxxxxx/public_html/xxxxxxxxxxx/sources/images.php on line 533'


File    '/home/xxxxxxxxxxx/public_html/xxxxxxxxxxx/sources/global2.php'
Line    '810'
Function    '_ocportal_error_handler'
Args   
'error'

1

'Out of memory (allocated 53739520) (tried to allocate 28536768 bytes)'

'/home/xxxxxxxxxxx/public_html/xxxxxxxxxxx/sources/images.php'

533


File    '/home/xxxxxxxxxxx/public_html/xxxxxxxxxxx/sources/global2.php'
Line    '750'
Function    'ocportal_error_handler'
Args   
1

'Out of memory (allocated 53739520) (tried to allocate 28536768 bytes)'

'/home/xxxxxxxxxxx/public_html/xxxxxxxxxxx/sources/images.php'

533


Function    'catch_fatal_errors'
Args   

Strangely, deleting the entry does delete the uploaded image.

I'd attach a grab of the entry page but I can't see how to upload an attachment.

Thanks for any help.

Bob


Last edit: by BobS
Back to the top
 
Posted
Rating:
#72701
Avatar

Community saint

What are the dimensions of the image you are uploading?

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#72703
Avatar

Community saint

2678x2664. It's only a 9.4 MB file.

This is one more reason that the developers should standardize their upload routine in catalogs to match that in galleries: upload a file or specify a URL (which you cannot do in catalogs).

Bob

Back to the top
 
Posted
Rating:
#72704
Avatar

Community saint

The thumbnailer is running out of memory. Its actually image dimensions not file size that is causing the problem (found this out the hard way as well).

You may need to increase the memory limit in php.ini to > 64M, say 128M to give you some headroom.

Code

memory_limit=128M

If you are still having problems, see the following topic & thread for background & testing info: View topic: Fatal Error: Memory Exhausted - ocPortal .




Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: