Help with CompanyDirectory's images

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Recon
Forum Members
Forum Members
Posts: 200
Joined: Sat Oct 09, 2010 10:23 am
Location: Finland

Help with CompanyDirectory's images

Post 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
Attachments
Form.jpg
Form.jpg (6.49 KiB) Viewed 2289 times
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1610
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Help with CompanyDirectory's images

Post 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.
Not getting the answer you need? CMSMS support options
Recon
Forum Members
Forum Members
Posts: 200
Joined: Sat Oct 09, 2010 10:23 am
Location: Finland

Re: Help with CompanyDirectory's images

Post 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
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1610
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Help with CompanyDirectory's images

Post by DIGI3 »

that would be the max_upload_filesize PHP setting
Not getting the answer you need? CMSMS support options
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Help with CompanyDirectory's images

Post by calguy1000 »

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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Help with CompanyDirectory's images

Post by calguy1000 »

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.
Recon
Forum Members
Forum Members
Posts: 200
Joined: Sat Oct 09, 2010 10:23 am
Location: Finland

Re: Help with CompanyDirectory's images

Post 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
Attachments
upload.jpg
Recon
Forum Members
Forum Members
Posts: 200
Joined: Sat Oct 09, 2010 10:23 am
Location: Finland

Re: Help with CompanyDirectory's images

Post by Recon »

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

Return to “Modules/Add-Ons”