[SOLVED] Products 2.7.6. > problem with images fields

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
athena_pallas
Power Poster
Power Poster
Posts: 272
Joined: Wed Sep 13, 2006 4:41 pm
Location: Belgium

[SOLVED] Products 2.7.6. > problem with images fields

Post by athena_pallas »

Hi,

I'm trying to configure my first e-shop with e-commerce suite from Calguy1000.  He mades a great work, but I have a little problem.
I created a custom field for pictures of my products wich I called "image".
When I try to upload, I have 2 errors messages :

"Field customfield: Files of this type cannot be uploaded -"
and
"Problems were encountered when dealing with one or more custom fields. The action has completed successfully, however you should investigate and correct these problems".
The image I tryed to upload is a jpg very normal, others jpg presents same problems.

I had first installed products 2.7.6, upgraded to 2.8 but I didn't was able to use the new hierarchy system so I downgraded to 2.7.6.

Can anybody help me ? (and excuse my very poor english ?)

Here are informations  :

Code: Select all

CMS Version 1.7.1
Installed Modules
CMSMailer 2.0
FileManager 1.0.2
MenuManager 1.6.3
ModuleManager 1.3.3
News 2.10.5
NuSOAP 1.0.1
Printing 1.0.4
Search 1.6.3
ThemeManager 1.1.1
TinyMCE 2.7.0
FrontEndUsers 1.9
CustomContent 1.5.3
MysqlDump 1.2.4
CGExtensions 1.18.7
CGSimpleSmarty 1.4.4
Products 2.7.6
FormBuilder 0.6.2
CGEcommerceBase 1.0.1
CGPaymentGatewayBase 1.0.5
Orders 1.8.6
Cart 1.6.2
SelfRegistration 1.4
PaypalGateway 2.1.7

Config Information
php_memory_limit :   
process_whole_template : false 
max_upload_size : 64000000 
default_upload_permission : 664 
assume_mod_rewrite : true 
page_extension : .htm 
internal_pretty_urls : false 
use_hierarchy : false 
debug : false 
output_compression : false 

PHP Information: 
Current PHP Version (phpversion) :  5.2.13  
md5 function (md5_function) :  On (True)  
GD version (gd_version) :  2  
tempnam function (tempnam_function) :  On (True)  
Magic quotes in runtime (magic_quotes_runtime) :  Off (False)  
Is E_STRICT disabled in error_reporting (E_STRICT) :  
PHP Effective Memory Limit (memory_limit) :  128M  
Maximum Execution Time (max_execution_time) :  30   
PHP Safe Mode (safe_mode) :  Off (False)  
Session Save Path (session_save_path) :  /tmp (1777)  
Sessions are allowed to use Cookies (session_use_cookies) :  On (True)  
Checking if the httpd process can create a file inside of a directory it created (create_dir_and_file) :  
PHP register_globals (register_globals) :  On (True)   
PHP output_buffering (output_buffering) :  On  
disable_functions in PHP (disable_functions) :    
PHP Open Basedir (open_basedir) :    
Test for remote URL (test_remote_url) :  
fsockopen: Connection ok!  
fopen: Connection ok!  
File uploads (file_uploads) :  On (True)  
Maximum Post Size (post_max_size) :  64M  
Maximum Upload Size (upload_max_filesize) :  64M  
Basic XML (expat) support (xml_function) :  On (True)  
Test file_get_contents (file_get_contents) :  On (True)  
Test ini_set (check_ini_set) :  On (True)  
Server Information: 
Server API (server_api) : cgi  
Server Database (server_db_type) : MySQL (mysql)  
Server Database Version (server_db_version) : 5.0.90  
Server Software (server_software) : Apache/2.2.X (OVH)  
Server Operating System (server_os) : Linux 2.6.32.7-mutu-grs-ipv4-32 On i686  
Thank you !
Last edited by athena_pallas on Mon May 31, 2010 7:20 am, edited 1 time in total.
janb

Re: Products 2.7.6. > problem with images fields

Post by janb »

Hi

Add the file extention to "Allow upload of files with these extensions (for all upload fields):" in Product Preferences

JanB
rhiaro
Forum Members
Forum Members
Posts: 13
Joined: Fri Jan 29, 2010 3:53 pm

Re: Products 2.7.6. > problem with images fields

Post by rhiaro »

Hi,

I'm having the same problem, and already did as JanB advised, to no avail.  The same problem occurs when the custom field type is set to 'file'.  I've had a look through the code, but can't pinpoint the problem.  I'd really appreciate any help.

Amy
athena_pallas
Power Poster
Power Poster
Posts: 272
Joined: Wed Sep 13, 2006 4:41 pm
Location: Belgium

Re: Products 2.7.6. > problem with images fields

Post by athena_pallas »

Hi janb,

Thanks but it's not that.

Have a nice day.
Peciura

Re: Products 2.7.6. > problem with images fields

Post by Peciura »

File extensions are case sensitive, so make sure you re uploading properly named files.
rhiaro
Forum Members
Forum Members
Posts: 13
Joined: Fri Jan 29, 2010 3:53 pm

Re: Products 2.7.6. > problem with images fields

Post by rhiaro »

Peciura wrote: File extensions are case sensitive, so make sure you re uploading properly named files.
Yep, that's not a problem.
janb

Re: Products 2.7.6. > problem with images fields

Post by janb »

Hi

Just to clarify:

In "Allow upload of files with these extensions (for all upload fields):"
you have to specify all file extensions you need separated with comma.

For example: pdf,gif,GIF,jpg,JPG

JanB
athena_pallas
Power Poster
Power Poster
Posts: 272
Joined: Wed Sep 13, 2006 4:41 pm
Location: Belgium

Re: Products 2.7.6. > problem with images fields

Post by athena_pallas »

Hello, 

I had:

Code: Select all

pdf, jpg, gif, png, JPG, GIF, PNG, PDF
Changing to :

Code: Select all

pdf,jpg,gif,png,JPG,GIF,PNG,PDF
  (no more spaces after commas !!!)

And now it works.

Thanks to everybody who helped !
rhiaro
Forum Members
Forum Members
Posts: 13
Joined: Fri Jan 29, 2010 3:53 pm

Re: [SOLVED] Products 2.7.6. > problem with images fields

Post by rhiaro »

Thanks athena_pallas, and everyone else who replied!
Post Reply

Return to “Modules/Add-Ons”