Got him to raise the limits. Tried the upload again and eventually it just gave me a blank page. Checked the gallery and there were only 2 images in it.
If not, please let us know how we can do better (please make suggestions that are economically viable and scalable, not just requests to do more for free).
If so, please let others know about ocPortal whenever you see the opportunity.
This information has not loaded yet. It will be generated in the background, please come back later.
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
It was a TAR file. Can you give me an estimate how much memory I may need? The current file is about 11meg but it's quite possible future events will have more photos.
Probably about 5MB + <raw-image-data-size>. So a 1024x768 32bit image would hit 8MB (the default PHP memory limit).
Do you know if you have a memory limit set, and if so what it is?
Blank page errors are always tricky, because it means something happened within PHP other than a normal error; usually it is a memory problem, because when PHP scripts exceed their memory allowance, they are quickly terminated. Many servers don't say why, hence a blank page.
If not, please let us know how we can do better (please make suggestions that are economically viable and scalable, not just requests to do more for free).
If so, please let others know about ocPortal whenever you see the opportunity.
This information has not loaded yet. It will be generated in the background, please come back later.
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
I'll look into that memory limit. Pictures from our various events vary in res from 900 x 600 up to 2160 x 1440 (24bit). So I'm gonna need nearly 14meg….wonder what our server admin will think of that…..
I assume we're referring to the process of generating thumbnails?
If not, please let us know how we can do better (please make suggestions that are economically viable and scalable, not just requests to do more for free).
If so, please let others know about ocPortal whenever you see the opportunity.
This information has not loaded yet. It will be generated in the background, please come back later.
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
I'm out of immediate answers at this point. You might want to run some tests of your own, trying different upload sizes and working out where it is stopping.
Personally I'd set up a little test code like this… Change lines 334 of cms/pages/modules/cms_galleries.php from:
Code
require_code('tar'); $myfile=tar_open($tmp_name,'rb'); if ($myfile!==false) { $directory=tar_get_directory($myfile); foreach ($directory as $entry) {
to:
Code
require_code('tar'); $log_file=fopen(get_file_base().'/uploads/attachments/tmp_test.txt','wt'); $myfile=tar_open($tmp_name,'rb'); if ($myfile!==false) { $directory=tar_get_directory($myfile); foreach ($directory as $entry) { fwrite($log_file,$entry['path']."\n");
then do an import, and then look to see what's in uploads/attachments/tmp_test.txt. The last line in the file would probably be the name of the file which ocPortal halts on.
If not, please let us know how we can do better (please make suggestions that are economically viable and scalable, not just requests to do more for free).
If so, please let others know about ocPortal whenever you see the opportunity.
This information has not loaded yet. It will be generated in the background, please come back later.
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Hi when I try to install I get this error: ocPortal installer: step 8 of 10PHP [2] preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 Any IdeasThank you
Ah. There's a bug in our bug database about this (under the latest version), but I didn't realise it affected installation. You'll need to use the manual installer and apply the fix before running install.php.
If not, please let us know how we can do better (please make suggestions that are economically viable and scalable, not just requests to do more for free).
If so, please let others know about ocPortal whenever you see the opportunity.
This information has not loaded yet. It will be generated in the background, please come back later.
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Hi Chris can you give me a link for that download, I can not find it.Kind RegardsGarystep 8 of 10PHP [2] preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3
If not, please let us know how we can do better (please make suggestions that are economically viable and scalable, not just requests to do more for free).
If so, please let others know about ocPortal whenever you see the opportunity.
This information has not loaded yet. It will be generated in the background, please come back later.
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
It seems to be images above 900x600 that are causing problems. Sometimes I can get the larger ones up if there's only a few in the TAR file, sometimes not.
Thanks mate. The TAR idea works a charm by the way, though oddly it creates a nice folder for my gallery, and then puts the files OUTSIDE the folder, lol.
And just to make life more interesting, the page listing images not registered to a gallery doesn't look in these subdirectories.
I've also discovered the gallery is cleaving pictures off at the side of the page instead of providing a horizontal scroll bar. This is kinda a problem.
If not, please let us know how we can do better (please make suggestions that are economically viable and scalable, not just requests to do more for free).
If so, please let others know about ocPortal whenever you see the opportunity.
This information has not loaded yet. It will be generated in the background, please come back later.
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
I've now made a few small optimisations (included in the next patch release) that should make the memory use more efficient. However I can't make any guarantees as ultimately there's a limit there.
If not, please let us know how we can do better (please make suggestions that are economically viable and scalable, not just requests to do more for free).
If so, please let others know about ocPortal whenever you see the opportunity.
This information has not loaded yet. It will be generated in the background, please come back later.
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
I should have said overflow: auto; rather than overflow: scroll;. I'm surprised it's not working for you on the full images though with 'scroll' - let me know if it still doesn't with 'auto'.
If not, please let us know how we can do better (please make suggestions that are economically viable and scalable, not just requests to do more for free).
If so, please let others know about ocPortal whenever you see the opportunity.
This information has not loaded yet. It will be generated in the background, please come back later.
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Hi when I try to install I get this error: ocPortal installer: step 8 of 10PHP [2] preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 Any IdeasThank you
Hello Chris.
Can you fixed this problem also in the manual installer please.
Thanks.
Robert
1 guests and 0 members have just viewed this: None