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
Help with CompanyDirectory's images
Help with CompanyDirectory's images
- Attachments
-
- Form.jpg (6.49 KiB) Viewed 2314 times
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.
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.
Not getting the answer you need? CMSMS support options
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
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
Re: Help with CompanyDirectory's images
that would be the max_upload_filesize PHP setting
Not getting the answer you need? CMSMS support options
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Help with CompanyDirectory's images
Well you also need to adjust post_max_size
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: Help with CompanyDirectory's images
Note: The frontend album editing stuff DOES use the jquery file upload stuff.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
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
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
... can't get it working, have to give up. I do not know that does album default template even working.