I have several images I need that I've defined as custom fields. When I attempt to add or edit a company, nothing seems to happen when I upload an image in the custom fields. Nothing is written to the database and no upload occurs.
Generally, image uploading works. I can upload images in Image Manager. I can upload the default CD images, image and logo. Just these custom ones don't go.
Doing a ViewSource on the admin page for adding a company, the code for the built-in image fields is:
Code: Select all
<div class="pageoverflow">
<p class="pagetext">Image:</p>
<p class="pageinput"><input type="file" class="cms_browse" name="m1_imageupload" size="80" maxlength="255" /></p>
</div>
<div class="pageoverflow">
<p class="pagetext">Logo:</p>
<p class="pageinput"><input type="file" class="cms_browse" name="m1_logoupload" size="80" maxlength="255" /></p>
</div>
Code: Select all
<div class="pageoverflow">
<p class="pagetext">main_image:</p>
<p class="pageinput"><input type="file" name="m1_customfield[field-3]" value="" size="80"/></p>
</div>
<div class="pageoverflow">
<p class="pagetext">second_image:</p>
<p class="pageinput"><input type="file" name="m1_customfield[field-4]" value="" size="80"/></p>
</div>
<div class="pageoverflow">
<p class="pagetext">third_image:</p>
<p class="pageinput"><input type="file" name="m1_customfield[field-5]" value="" size="80"/></p>
</div>
Running the form with debug on... I see all the INSERT statements for the various custom properties, e.g.
Code: Select all
(mysql): INSERT INTO cms_module_compdir_fieldvals (company_id, fielddef_id, value, create_date, modified_date) VALUES ('2','8','','2011-06-13 20:20:13','2011-06-13 20:20:13')
I'm running a local XAMPP/XP Home install, so have searched both the directory where CMSMS is installed and the C: directory (where XAMPP is installed) and the file does not exist anywhere.
My install:
----------------------------------------------
Cms Version: 1.9.4.1
Installed Modules:
* CMSMailer: 2.0.1
* FileManager: 1.1.0
* MenuManager: 1.7.6
* ModuleManager: 1.4.2
* News: 2.11.2
* nuSOAP: 1.0.2
* Printing: 1.1.2
* Search: 1.6.10
* ThemeManager: 1.1.4
* TinyMCE: 2.8.4
* CGExtensions: 1.25.4
* TemplateExternalizer: 1.3
* CGSimpleSmarty: 1.4.8
* Captcha: 0.4.3
* FEmessages: 1.1
* FrontEndUsers: 1.12.16
* jQuery: 1.1.3
* JQueryTools: 1.0.10
* CompanyDirectory: 1.8.3
* CustomContent: 1.7.3
* BulkStructure: 0.4
* FEmessages: 1.1
* SelfRegistration: 1.6.10
* CGSmartImage: 1.3.1
* FormBuilder: 0.7
* ModuleMaker: 0.3.2
* Skeleton: 1.8.1
Config Information:
* php_memory_limit:
* process_whole_template: false
* output_compression: false
* max_upload_size: 2000000
* default_upload_permission: 664
* url_rewriting: mod_rewrite
* page_extension: /
* 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.3.1
* md5_function: On (True)
* gd_version: 2
* tempnam_function: On (True)
* magic_quotes_runtime: Off (False)
* E_STRICT: 0
* E_DEPRECATED: 8192
* memory_limit: 128M
* max_execution_time: 300
* output_buffering: On
* safe_mode: Off (False)
* file_uploads: On (True)
* post_max_size: 128M
* upload_max_filesize: 128M
* session_save_path: C:\Program Files\xampp\tmp (0777)
* session_use_cookies: On (True)
* xml_function: On (True)
Server Information:
* Server Api: apache2handler
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.1.41