VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: gedas646 on January 23, 2014, 12:03:48 PM

Title: HELP vmError: Sorry,It's not a valid media file
Post by: gedas646 on January 23, 2014, 12:03:48 PM
Everything worked fine before, and now ive got same errors on 2 different websites, they have different joomla and virtuemart versions. 2.5.8 and 2.0.26d, and 2.5.16 and 2.0.24b. Before i could upload my product pictures, but from 2day when i tried to upload it says "Vmerror: Sorry,It's not a valid media file" have no idea what happend, tried to google it but no luck, ofc. i found some guys with same issues, tried to do the same and nothing, same error.. permisions set to writeable. Please help with this i have no idea how to fix this issue..
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: jenkinhill on January 23, 2014, 17:11:32 PM
I assume the files are actually jpeg, apart from that an occasional issue is that they have been named image.JPG when they should be image.jpg

Ref your Joomla versions see http://forum.virtuemart.net/index.php?topic=118683.0
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: gedas646 on January 24, 2014, 09:00:38 AM
Well file name is okey, exactly how it should be. i add 2photos

I tried to change my VM version to 2.0.26a and i noticed ive got an error while instaling this, also updated both sites joomla version to 2.5.17
vmError: alterTable ADD eeua5_virtuemart_order_userinfos.zip :
vmError: alterTable ADD eeua5_virtuemart_userinfos.zip :
vmError: Tableupdater updating table eeua5_virtuemart_userinfos throws error Duplicate column name 'Zip' SQL=ALTER TABLE `eeua5_virtuemart_userinfos` ADD zip char(32) NOT NULL DEFAULT '' FIRST

Could i delete whole VM without any history left? and re-install it, maybe it will fix everything?

[attachment cleanup by admin]
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: jenkinhill on January 24, 2014, 09:47:04 AM
Try Tools/Install or if necessary update tables, but it sounds as if you have a bad installation or bad host.
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: gedas646 on January 24, 2014, 10:10:37 AM
Everything worked fine before, host is mine own, i tried unistall like u said, when i install vm all history was saved. I need to delete all files by my own.
How i should reinstall these tables? Could these tables solve me a picture problem?
btw one site was backup site and it used same table prefix "eeua5" and they hosted on same server. Could be this is a problem?
p.s. i didnt tried add new product pic. after i create backup site on same prefix

Tried to change table prefix, and no luck here

I noticed i cant even upload any pic from joomla using media manager, it says file is to large, maybe smth wrong with joomla? I never tried to upload from joomla to the server.

I tried do not upload image from VM and just put it into the server, linked the image like this "images/stories/virtuemart/product/motion.jpg" and here we go, it was showed, automatically created resized 90x90px picture, so i think something wrong with rules here, ill try to set everything on 777 (Changing rights to 777 doesnt solve anything) any suggestions?
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: jenkinhill on January 25, 2014, 00:06:08 AM
Quote
it says file is to large

Suggests php memory allocation or file size is set too low.

Never use 777 - that is something that is sometimes required on very bad hosts and is a reason for immediately finding a reliable service.
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: gedas646 on January 30, 2014, 14:30:04 PM
tried to change max size but no luck, i have no clue how to solve that
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: jenkinhill on January 30, 2014, 15:02:46 PM
YOu said the host is yours so surely you can change values in php.ini
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: gedas646 on January 30, 2014, 15:20:44 PM
what kind of values i should change in php.ini ? i changed memory size limit to 256M instead of 32M, and some other settings like post max etc.. But nothing changed. btw i tried to check my 'image' folder properties, and it says 5mb used, so wtf??
also starting get another error when trying link image
vmError: Couldnt create thumb, file not found /home/e-smith/files/ibays/norke/html/test/images/stories/virtuemart/product/motion.jpg
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: gedas646 on January 30, 2014, 15:59:37 PM
this is my php.ini after i changed

[PHP]

engine                                 = On
short_open_tag                         = On;
asp_tags                               = Off
precision                              = 14
y2k_compliance                         = Off
output_buffering                       = Off
output_handler                         =
implicit_flush                         = Off
allow_call_time_pass_reference         = On
safe_mode                              = Off
safe_mode_exec_dir                     =
safe_mode_allowed_env_vars             = PHP_
safe_mode_protected_env_vars           = LD_LIBRARY_PATH
disable_functions                      =
highlight.string                       = #DD0000
highlight.comment                      = #FF8000
highlight.keyword                      = #007700
highlight.bg                           = #b9298b
highlight.default                      = #0000BB
highlight.html                         = #000000
; Default expose_php to Off for security reasons
expose_php                             = Off
max_execution_time                     = 30
memory_limit                           = 256M
mysql.allow_persistent                 = On
error_reporting                        = E_ALL & ~E_NOTICE
display_errors                         = Off
display_startup_errors                 = Off
log_errors                             = On
error_log                              = syslog
track_errors                           = Off
warn_plus_overloading                  = Off
mysql.allow_persistent                 = On
variables_order                        = "EGPCS"
register_globals                       = Off
register_argc_argv                     = On
post_max_size                          = 100M
gpc_order                              = "GPC"
magic_quotes_gpc                       = Off
magic_quotes_runtime                   = Off
magic_quotes_sybase                    = Off
auto_prepend_file                      =
auto_append_file                       =
default_mimetype                       = "text/html"

mysql.allow_persistent                 = On
include_path                           = ".:/usr/share/pear-addons:/usr/share/pear"
doc_root                               =
user_dir                               =
extension_dir                          = /usr/lib/php/modules
enable_dl                              = On
file_uploads                           = On
upload_max_filesize                    = 50M
allow_url_fopen = On

date.timezone = "America/New_York"
[Syslog]
define_syslog_variables                = Off

[mail function]
SMTP                                   = localhost
sendmail_from                          = me@localhost.com

[Debugger]
debugger.host                          = localhost
debugger.port                          = 7869
debugger.enabled                       = False

[Logging]

[Java]

[SQL]
sql.safe_mode                          = Off

[ODBC]
odbc.allow_persistent                  = On
odbc.check_persistent                  = On
odbc.max_persistent                    = -1
odbc.max_links                         = -1
odbc.defaultlrl                        = 4096
odbc.defaultbinmode                    = 1

[MySQL]
mysql.allow_persistent                 = On
mysql.max_persistent                   = -1
mysql.max_links                        = -1
mysql.default_port                     =
mysql.default_socket                   =
mysql.default_host                     =
mysql.default_user                     =
mysql.default_password                 =

[mSQL]
msql.allow_persistent                  = On
msql.max_persistent                    = -1
msql.max_links                         = -1

[PostgresSQL]
pgsql.allow_persistent                 = On
pgsql.max_persistent                   = -1
pgsql.max_links                        = -1

[Sybase]
sybase.allow_persistent                = On
sybase.max_persistent                  = -1
sybase.max_links                       = -1
sybase.min_error_severity              = 10
sybase.min_message_severity            = 10
sybase.compatability_mode              = Off

[Sybase-CT]
sybct.allow_persistenT                 = On
sybct.max_persistent                   = -1
sybct.max_links                        = -1
sybct.min_server_severity              = 10
sybct.min_client_severity              = 10

[bcmath]
bcmath.scale                           = 0

[browscap]

[Informix]
ifx.default_host                       =
ifx.default_useR                       =
ifx.default_password                   =
ifx.allow_persistent                   = On
ifx.max_persistent                     = -1
ifx.max_links                          = -1
ifx.textasvarchar                      = 0
ifx.byteasvarchar                      = 0
ifx.charasvarchar                      = 0
ifx.blobinfile                         = 0
ifx.nullformat                         = 0

[Session]
session.save_handler                   = files
session.save_path                      = /tmp
session.use_cookies                    = 1
session.name                           = PHPSESSID 
session.auto_start                     = 0
session.cookie_lifetime                = 0
session.cookie_path                    = /
session.cookie_domain                  =
session.serialize_handler              = php
session.gc_probability                 = 1
session.gc_maxlifetime                 = 1440
session.referer_check                  =
session.entropy_length                 = 0
session.entropy_file                   =
session.cache_limiter                  = nocache
session.cache_expire                   = 180
session.use_trans_sid                  = 1
url_rewriter.tags                      = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
mssql.allow_persistent                 = On
mssql.max_persistent                   = -1
mssql.max_links                        = -1
mssql.min_error_severity               = 10
mssql.min_message_severity             = 10
mssql.compatability_mode               = Off

[Assertion]

[Ingres II]
ingres.allow_persistent                = On
ingres.max_persistent                  = -1
ingres.max_links                       = -1
ingres.default_database                =
ingres.default_user                    =
ingres.default_password                =

[Verisign Payflow Pro]
pfpro.defaulthost                      = "test.signio.com"
pfpro.defaultport                      = 443
pfpro.defaulttimeout                   = 30

[Sockets]
sockets.use_system_read                = On
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: jenkinhill on January 30, 2014, 17:42:38 PM
Possibly you have more than one php.ini?
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: gedas646 on January 31, 2014, 08:25:23 AM
didnt saw any other php.ini, this was in etc folder where it should be. ill try to search, but i dont think i would find anything.
after search: i used fillezilla search, for php5.ini and php.ini, 3 files and 1folder of php.ini was foud, 1file was this which i text here, other 2 is empty

also i cant upload anything on joomla, using media file manager, but i can install components and other stuff via directory but i cant do this when i try to upload..
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: jenkinhill on January 31, 2014, 10:32:39 AM
Sounds like a whole mess of permissions, then? We can't solve hosting problems, except to recommend some good hosts......
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: gedas646 on January 31, 2014, 10:40:10 AM
well i did permisions as writeable, or set up everything on 777 its still the same, it doesnt change anything, if that would be permisions i guess i still could upload. btw i used putty to set all my ibays new joomla sites to be writeable when i creat a new one. doing like that.


cd /home/e-smith/files/ibays/joomla
chown -R www.www html

maybe its my mistake with this. But i think if i set everything to 777, i should upload, but now i cant, thats strange.
also im using sme server 8.0

ill try install new server at another pc, and do not change anything execp php.ini, well see if it works
Title: Re: HELP vmError: Sorry,It's not a valid media file
Post by: jenkinhill on January 31, 2014, 12:30:05 PM
I'd test with WAMPServer