• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Help with CompanyDirectory's images
PostPosted: Tue Jul 16, 2019 7:34 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Sat Oct 09, 2010 10:23 am
Posts: 196
Location: Finland
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 289 times ]
Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Help with CompanyDirectory's images
PostPosted: Tue Jul 16, 2019 1:56 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 784
Location: Victoria, BC
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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Help with CompanyDirectory's images
PostPosted: Tue Jul 16, 2019 2:42 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Sat Oct 09, 2010 10:23 am
Posts: 196
Location: Finland
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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Help with CompanyDirectory's images
PostPosted: Tue Jul 16, 2019 2:45 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 784
Location: Victoria, BC
that would be the max_upload_filesize PHP setting

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Help with CompanyDirectory's images
PostPosted: Tue Jul 16, 2019 2:49 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Help with CompanyDirectory's images
PostPosted: Tue Jul 16, 2019 4:02 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Help with CompanyDirectory's images
PostPosted: Tue Jul 16, 2019 7:43 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Sat Oct 09, 2010 10:23 am
Posts: 196
Location: Finland
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 222 times ]
Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Help with CompanyDirectory's images
PostPosted: Wed Jul 24, 2019 8:22 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Sat Oct 09, 2010 10:23 am
Posts: 196
Location: Finland
... can't get it working, have to give up. I do not know that does album default template even working.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: TedMeat


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Hosting Nation - Managed CMSMS Hosting