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: Uploading image to gallary

Login / Search

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

Fan in action

Upload appears to work, then screen turns white and freezes

Trying to upload images to gallery and tried both mass upload, simple uploader and the usual and all appear to process upload, bar goes across to the end, then screen turns white and freezes at http://scseals.com/ocport/cms/index.php?page=cms_galleries&type=_ad&redirect=http%3A%2F%2Fscseals.com%2Focport%2Fsite%2Findex.php%3Fpage%3Dgalleries%26type%3Dmisc%26id%3Dawards_banquet_year_2014&uploading=1

Any ideas?

Cordially,

Will
Back to the top
 
Posted
Rating:
#106926
Avatar

Odd. If you want to post a free bug report ticket with FTP access we can run some tests:

https://ocportal.com/site/tickets/ticket.htm?ticket_template=bug&cost=free

Likely some server restriction is in-play, but I don't know what, as usually you'd at least see an error message.


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

Fan in action

Thanks Chris,  Was thinking about that too, I have a PHPMelody Video site and have modified the PHP.ini and .htaccess to accept larger files and that helped some but now getting file too large messages and can only upload a single file at a time.  Still getting white screen and freeze too sometimes.  Same host as PHP Melody CMS video upload site, so still trying to figure it out.  Maybe it will take some time before the host server incorporates the new parameters?

IDEAS???
Back to the top
 
Posted
Rating:
#106929
Avatar

It's unlikely to be a file upload limitation because the flash uploader uploads in the background, yet the white-page will be attached to the main form submit (which just submits an upload ID number at that point).

Regarding what you said about raising the limit then breaking the limit:
A very common configuration mistake is to say 'MB' instead of 'M' in the php setting. PHP uses 'M'. E.g. '100M', not '100MB'. '100MB' will parse as '0'. Someone really should get the PHP folks to change that, 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:
#106930
Avatar

Oh and if you want to debug yourself, I would check ocPortal's error log, and the web server error log. If it is a form of a 500 Internal Server Error, the Apache error log may have a modsecurity explanation inserted into it.


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

Fan in action

Where would the OCPortal error log be?

Checked for "M"

Thanks
Back to the top
 
Posted
Rating:
#106934
Avatar

look in contents of data_custom/errorlog.php file, or via admin menus


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

Fan in action

OK, seems that my php.ini and .htaccess upload size increases do not"take" in OCPortal, (Used M ,not MB)  Any ideas.  Placed both in the folder where the url points.  
Back to the top
 
Posted
Rating:
#106942
Avatar

If the server is using a CGI install of PHP you need to place a separate php.ini file in any directory a PHP file may be directly loaded from, e.g. 'site', 'cms', 'adminzone' and 'data'.


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

Fan in action

More trying to figure this out, seems that on other CMS software I have, adding an increased file size php.ini works to overide the host preset value.  Using the same php.ini file on the same host with OCPortal does not work.  Looks like OCPortal is inheriting the default file size from the host and ignores the PHP.ini settings.  No matter if I increase the file size in the area of mass upload where it warns that 8M is limit, click to increase, increase the php.ini and the.htaccess, nothing budges the 8M limit.  
Back to the top
 
Posted
Rating:
#106946
Avatar

It's actually something we can't change within our PHP code, because the setting takes hold before the PHP code is launched. So it's definitely a configuration issue on some level.

I think my explanation above is the most likely cause. The uploader runs from within 'data', so try first to change the php.ini there.


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

Fan in action

Just curious, why does PHPMelody not have the same problem?
Back to the top
 
Posted
Rating:
#106948
Avatar

I don't know anything about that project, but perhaps it runs from a single directory.

You can tell if PHP is running in CGI mode by looking at the PHP info, it should say near the top.


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

Fan in action

OK, THANKS, fixed it (Hopefully) by instering a php.ini 200M into every folder.  Not sure which one did the trick but FTP'd php.ini to every folder and every large subfolder. Tried just the data folder but that didn't work. Voila, thanks for your patience.

 :thumbs:

PS: You probably will be hearing about next thing I don't understand.
Back to the top
 
Posted
Rating:
#106955
Avatar

Fan in action

And, now we are back to the white screen, sent in a bug report.  1st image uploads fine, then every attemp to upload after that gives white screen

http://scseals.com/ocport/cms/index.php?page=cms_galleries&type=_ad&redirect=http%3A%2F%2Fscseals.com%2Focport%2Fsite%2Findex.php%3Fpage%3Dgalleries%26type%3Dmisc&uploading=1
Back to the top
 
Posted
Item has a rating of 5 (Liked by KingBast)  
Rating:
#106980
Avatar

This problem is due to limitations on 1&1 hosting:
https://help.1and1.com/hosting-c37630/scripts-and-programming-languages-c85099/php-c37728/php-memory-limit-a683249.html

They misreport their memory limits to our code, so our automatic mitigations cannot kick in.
There is already a workaround, which is to set the hidden 'real_memory_available_mb' option in OcCLE like:

Code

:set_value('real_memory_available_mb','30');
This lets our mitigation kick in, which is to pre-downsize uploaded images using imagemagick (which runs outside PHP, hence no memory limit) prior to formal thumbnail.

I have activated the workaround for Wilzer.


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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: