[SOLVED] Company Directory - custom field type of image

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jpmad4it
Forum Members
Forum Members
Posts: 10
Joined: Wed Oct 26, 2011 1:15 pm

[SOLVED] Company Directory - custom field type of image

Post by jpmad4it »

Hi all,

I am having issues with the Company Directory module.

I did previously try a hack I saw in the bug reports, and I wrote a post about it which was removed, but that hack has been fully reverted and the code is now as it is from a fresh install so I would really appreciate any kind of help or suggestions.

I have 7 custom fields all of type "image" and the allowed extensions are jpg,png,gif.

If I try to upload the following 5 files:

- new.jpg
- new_2.jpg
- new_2_2.jpg
- head.png
- logo.png

.....these files are uploaded and database entries are created for them:

- new_2_2.jpg
- new_2_2.png (this wasn't even an image I tried to upload).

I have no idea what is going on, or why this would be happening. If anyone can help me shed some light onto this issue I would appreciate it greatly.

I'm using CMSMS version 1.11.10 and Company Directory version 1.21.1

Regards
Jp
Last edited by jpmad4it on Tue Jun 10, 2014 6:41 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Company Directory - custom field type of image - issues

Post by calguy1000 »

Please post system info.
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.
jpmad4it
Forum Members
Forum Members
Posts: 10
Joined: Wed Oct 26, 2011 1:15 pm

Re: Company Directory - custom field type of image - issues

Post by jpmad4it »

Hi Calguy thanks for the response......is it just the PHP info that you need or do you need server info too?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Company Directory - custom field type of image - issues

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
jpmad4it
Forum Members
Forum Members
Posts: 10
Joined: Wed Oct 26, 2011 1:15 pm

Re: Company Directory - custom field type of image - issues

Post by jpmad4it »

Ah ok apologies. Here goes.....

----------------------------------------------
Cms Version: 1.11.10
Installed Modules:
CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.4
MenuManager: 1.8.6
FrontEndUsers: 1.23.2
ModuleManager: 1.5.5
News: 2.14.2
Search: 1.7.11
ThemeManager: 1.1.8
Archiver: 0.2.6
CGSimpleSmarty: 1.7.2
FormBuilder: 0.7.3
CGExtensions: 1.38.8
SiteMapMadeSimple: 1.2.8
TemplateExternalizer: 2.1.3
TinyMCE: 2.9.12
JQueryTools: 1.2.6
CompanyDirectory: 1.21.1
CustomContent: 1.9
SelfRegistration: 1.8.2
CGFeedback: 1.6.5
ListIt2: 1.4.1
ListIt2QandA: 1.4.1
Banners: 2.6
AdvancedContent: 0.9.4.3
ListIt2CustomersTraders: 1.4.1
ListIt2XDefs: 1.2
GBFilePicker: 1.3.3
CGSmartImage: 1.16.1
Captcha: 0.4.6
Uploads: 1.17
Cron: 0.0.8

Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 30000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true

Php Information:
phpversion: 5.4.24
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 0
memory_limit: 1024M
max_execution_time: 90
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 12M
upload_max_filesize: 30M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.36
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found

----------------------------------------------
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Company Directory - custom field type of image - issues

Post by calguy1000 »

I think you're experiencing a couple of issues.

a: A minor bug in the CGExtensions module (already fixed, but not released yet).
b: A problem with upload limitations (POST max file size exceeded or something). Your error logs (if sufficient logging is enabled) would probably indicate an error.
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.
jpmad4it
Forum Members
Forum Members
Posts: 10
Joined: Wed Oct 26, 2011 1:15 pm

Re: Company Directory - custom field type of image - issues

Post by jpmad4it »

Thanks Calguy. I've checked the error logs and there doesn't seem to be anything related to post max file size, max upload etc.

The files I am uploading are literally 40kb each.

I've checked the main php.ini file and these are the settings:

max_execution_time 90
max_file_uploads 20
post_max_size 12M
upload_max_filesize 30M

I don't think uploading 5 x 40Kb files will be exceeding these limits, so maybe I need to wait for the fix / release in the CGExtensions module and test.
jpmad4it
Forum Members
Forum Members
Posts: 10
Joined: Wed Oct 26, 2011 1:15 pm

Re: Company Directory - custom field type of image - issues

Post by jpmad4it »

I've updated the various modules that were released over the weekend and this issue seems to have now been fixed....thanks Calguy ;)

Just one thing, there seem to be some degubbing notices appearing on the Front End Form when I am adding / editing companies related to the custom image fields. How do I get rid of these?

Edit: The debug info I am seeing is like this:

Code: Select all

Debug: (0.422329) - (usage: 16165400) - (peak: 16235840)
check_upload cd_field_13
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Company Directory - custom field type of image - issues

Post by calguy1000 »

I'll release another version of CGExtensions tonite or tomorrow with the debug statements removed.
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.
jpmad4it
Forum Members
Forum Members
Posts: 10
Joined: Wed Oct 26, 2011 1:15 pm

Re: Company Directory - custom field type of image - issues

Post by jpmad4it »

Ok thank you.
Post Reply

Return to “Modules/Add-Ons”