CMS Made Simple Forums
https://forum.cmsmadesimple.org/

Help with CompanyDirectory's images
https://forum.cmsmadesimple.org/viewtopic.php?f=7&t=81313
Page 1 of 1

Author:  Recon [ Tue Jul 16, 2019 7:34 am ]
Post subject:  Help with CompanyDirectory's images

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

Attachments:
Form.jpg
Form.jpg [ 6.49 KiB | Viewed 470 times ]

Author:  DIGI3 [ Tue Jul 16, 2019 1:56 pm ]
Post subject:  Re: Help with CompanyDirectory's images

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.

Author:  Recon [ Tue Jul 16, 2019 2:42 pm ]
Post subject:  Re: Help with CompanyDirectory's images

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

Author:  DIGI3 [ Tue Jul 16, 2019 2:45 pm ]
Post subject:  Re: Help with CompanyDirectory's images

that would be the max_upload_filesize PHP setting

Author:  calguy1000 [ Tue Jul 16, 2019 2:49 pm ]
Post subject:  Re: Help with CompanyDirectory's images

Well you also need to adjust post_max_size

Author:  calguy1000 [ Tue Jul 16, 2019 4:02 pm ]
Post subject:  Re: Help with CompanyDirectory's images

Note: The frontend album editing stuff DOES use the jquery file upload stuff.

Author:  Recon [ Tue Jul 16, 2019 7:43 pm ]
Post subject:  Re: Help with CompanyDirectory's images

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

Attachments:
upload.jpg
upload.jpg [ 18.39 KiB | Viewed 403 times ]

Author:  Recon [ Wed Jul 24, 2019 8:22 pm ]
Post subject:  Re: Help with CompanyDirectory's images

... can't get it working, have to give up. I do not know that does album default template even working.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/