Page 1 of 1

Help with CompanyDirectory's images

Posted: Tue Jul 16, 2019 7:34 am
by Recon
Hi,

I have been working with CompanyDirectory. FEU users can add companies that have 6-8 images. Everything works fine with one or two images, but if added more image field definition, form submission will load too long and gives Internal Server Error.

Album is developed for group of pictures, but I can't get it working. I hope this field definition will do the work.

I have there problems:

1) Default Frontend Edit Company Template gives an error "jQuery is requried for this template". I have bootstrap jquery loaded bottom of the site template

2) Template generate labels and inputs for field definitions but not for Album. Please see attached image.

3) Template generate "Edit Photo Album" link. When link is clicked it will give an error "The value specified for 0 is invalid"

Any tips please?

-R

Re: Help with CompanyDirectory's images

Posted: Tue Jul 16, 2019 1:56 pm
by DIGI3
Check what the error is, but I suspect you just need to increase the timeout in your php settings (check with your host, it might be in .htaccess, php.ini, .user.ini, or somewhere else).
In php.ini it's:
max_execution_time = 60 (for example).

For the jQuery issue, a temporary fix would be to load jQuery in the head section. For a better solution, use CGExtensions to wrap {cgjs_add}{/cgjs_add} to replace the <__script__> tags in the module template, then put {cgjs_render} below jQuery in your page template. Read the CGE docs for more details.

For the labels, you're just going to have to view the source and make adjustments to the templates where needed.

Re: Help with CompanyDirectory's images

Posted: Tue Jul 16, 2019 2:42 pm
by Recon
Thank you.

Error: [16-Jul-2019 14:33:50 UTC] PHP Warning: POST Content-Length of 31635471 bytes exceeds the limit of 16777216 bytes in Unknown on line 0

This would be very lovely: https://blueimp.github.io/jQuery-File-Upload/ but no skills to do it ;D

Re: Help with CompanyDirectory's images

Posted: Tue Jul 16, 2019 2:45 pm
by DIGI3
that would be the max_upload_filesize PHP setting

Re: Help with CompanyDirectory's images

Posted: Tue Jul 16, 2019 2:49 pm
by calguy1000
Well you also need to adjust post_max_size

Re: Help with CompanyDirectory's images

Posted: Tue Jul 16, 2019 4:02 pm
by calguy1000
Note: The frontend album editing stuff DOES use the jquery file upload stuff.

Re: Help with CompanyDirectory's images

Posted: Tue Jul 16, 2019 7:43 pm
by Recon
Thank you.

Robert, I know, and trying to get it working. I have default template and newest jquery-ui with jquery-3.3.1 loaded on site template's head, but still it won't work. Please see attached image.

-R

Re: Help with CompanyDirectory's images

Posted: Wed Jul 24, 2019 8:22 pm
by Recon
... can't get it working, have to give up. I do not know that does album default template even working.