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.


Gallery Issues/questions

Login / Search

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

Community saint

I'm having the following issues/questions on Galleries in v6.

1) Clicking "Download the contents of the gallery" just sits there and does nothing (i.e. no prompt for download filename), even if the gallery just contains 1 very small image. The browsers (both firefox and IE) status line just shows "waiting for mydomain.com.."

2) The "Download the contents of the gallery" link appears even if the gallery is empty.

3) I can't find any option to download just a single image (i.e. the currently displayed on). The "Download the contents of the gallery" links implies it will download the entire gallery, not the current image.

4) In the detail box, is there an option to see more details, such as image resolution and file size?

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:
#67471
Avatar

1- That's a nasty bug you've found, here's the fix:
Downloading gallery contents fails - ocPortal

2- Seems to be an issue on flow-mode galleries only. Fix attached.
Attachment
themes/default/templates/GALLERY_FLOW_MODE_SCREEN.tpl
» Download: GALLERY_FLOW_MODE_SCREEN.tpl (3 Kb, 90 downloads so far)


3/4- I'm afraid those are not currently features as the gallery system wasn't really designed for image downloads in this way, it was designed more for direct display. The feature requirements are included in this tracker topic 0000070: Store permutations of the image processing pipeline - ocPortal feature tracker (so we're tracking the request, but there's no planned implemented yet).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
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 ocPortal whenever you see the opportunity.
  • 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 ocPortal 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.
Back to the top
 
Posted
Rating:
#67473
Avatar

Community saint

Chris Graham said

1- That's a nasty bug you've found, here's the fix:
Downloading gallery contents fails - ocPortal

2- Seems to be an issue on flow-mode galleries only. Fix attached.
Attachment
themes/default/templates/GALLERY_FLOW_MODE_SCREEN.tpl
» Download: GALLERY_FLOW_MODE_SCREEN.tpl (3 Kb, 90 downloads so far)


3/4- I'm afraid those are not currently features as the gallery system wasn't really designed for image downloads in this way, it was designed more for direct display. The feature requirements are included in this tracker topic 0000070: Store permutations of the image processing pipeline - ocPortal feature tracker (so we're tracking the request, but there's no planned implemented yet).
1) I can download, but the zip file is corrupt. Every image within the file has CRC errors.

2) Fix work fine.

3/4) That's a shame. Thanks for the heads-up.

New issues


5) Based on the file size, the images being downloaded are the cropped ones and not the original ones in the upload directory, right? If so, what is the point of keeping the original files as well? Arn't they just waisting space now?

6) When upload image fails due to "Sorry, the image is too large (in terms of width and height) for us to generate a thumbnail on the website server. We can handle an image of approximately 2,2682,268 pixels. " error, the file is still left behind in the upload directory instead of being deleted (ocPortal is not going to do anything with that failed file right?).

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:
#67478
Avatar

It turns out some code we grabbed from the PHP manual comments to improve performance isn't compatible with 64 bit PHP installs. I have updated the fix.

5/6- we don't keep them, implementing that is part of the link tracker topic. The files in the incoming directory are only temporary and get deleted on a timer.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
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 ocPortal whenever you see the opportunity.
  • 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 ocPortal 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.
Back to the top
 
Posted
Rating:
#67479
Avatar

Community saint

Chris Graham said

It turns out some code we grabbed from the PHP manual comments to improve performance isn't compatible with 64 bit PHP installs. I have updated the fix.

5/6- we don't keep them, implementing that is part of the link tracker topic. The files in the incoming directory are only temporary and get deleted on a timer.
1) The files in the zip are still corrupt. Tested after flushing all caches.

Can I suggest that you add dates and maybe even version numbers to the descriptions in the bug fix catalogues so that we can tell if/when there are bug fixes to the bug fixes.

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:
#67484
Avatar

What PHP version do you have?

(Edit dates appear on the bottom of the screen)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
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 ocPortal whenever you see the opportunity.
  • 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 ocPortal 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.
Back to the top
 
Posted
Rating:
#67501
Avatar

Community saint

Chris Graham said

What PHP version do you have?
PHP version 5.2.9 x86_64

Chris Graham said

(Edit dates appear on the bottom of the screen)
That date is not very prominent. Maybe use the comment option to add a comment about changes.

I think it needs to be another field in the Catalogue so that we can see the dates without having to go into each and every entry every time we want to check for updates.

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:
#67580
Avatar

Are you sure the zip.php fix doesn't work? I just reuploaded it just in case. Please make sure you aren't looking at one of the old zips from before when you open the downloaded zip file to check it.
I've just tested on 3 zip programs and the problem is gone here, and I did reproduce the bug you saw before the fix.

Regarding edit dates, I agree it would be nice, but it's not something we feel the need to implement at the moment, and resources are always limited. We're about to put out a new patch release and generally between patch releases there are only a very small number of bugs that more than one user experiences. With 6.0.0 being the first release of v6 there's more than there usually are.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
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 ocPortal whenever you see the opportunity.
  • 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 ocPortal 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.
Back to the top
 
Posted
Rating:
#67596
Avatar

Community saint

Chris Graham said

Are you sure the zip.php fix doesn't work? I just reuploaded it just in case. Please make sure you aren't looking at one of the old zips from before when you open the downloaded zip file to check it.
I've just tested on 3 zip programs and the problem is gone here, and I did reproduce the bug you saw before the fix.
Still no luck. What I did was:

* flushed all caches in ocPortal
* download zip.php dated 22 March to my pc
* uploaded to surces/zip.php on server
* created a new gallery
* added two images to gallery
* downloaded gallery

Are these zips stored or created on demmand? If stored where? In filestsyem or database?

Chris Graham said

Regarding edit dates, I agree it would be nice, but it's not something we feel the need to implement at the moment, and resources are always limited. We're about to put out a new patch release and generally between patch releases there are only a very small number of bugs that more than one user experiences. With 6.0.0 being the first release of v6 there's more than there usually are.
No problem. I agree that it should be very low on your to-do list.

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:
#67619
Avatar

Community saint

F.Y.I. I upgraded to 6.0.1 and zip problem continues.

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:
#67625
Avatar

Hi,

They're created on demand.

Could you send me a copy of the zip please.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
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 ocPortal whenever you see the opportunity.
  • 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 ocPortal 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.
Back to the top
 
Posted
Rating:
#67633
Avatar

Community saint

Chris Graham said

Could you send me a copy of the zip please.
Here it is:
Attachment

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:
#67648
Avatar

Ok I've tracked it down to this bug in PHP itself:
PHP :: Bug #45028 :: CRC32 output endianness is different between crc32() and hash()

Our code is written assuming the bug (although I didn't know it was one). Should have a fix soon when I've worked out how to detect if the bug is there or not.

Lol, we're having bad luck here. First PHP behaves differently on 64 bit machines, then there's a bug in PHP ;). It was easier in v5 when we just assumed we had infinite memory to load up all files into RAM and work with them there  :lol: .


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
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 ocPortal whenever you see the opportunity.
  • 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 ocPortal 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.
Back to the top
 
Posted
Rating:
#67649
Avatar

Attachment
sources/zip.php
» Download: zip.php (6 Kb, 89 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
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 ocPortal whenever you see the opportunity.
  • 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 ocPortal 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.
Back to the top
 
Posted
Rating:
#67661
Avatar

Community saint

:party: Horray, it finally works :party:

Thanks Chris :thumbs:

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: