News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

HELP vmError: Sorry,It's not a valid media file

Started by gedas646, January 23, 2014, 12:03:48 PM

Previous topic - Next topic

gedas646

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..

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

gedas646

#2
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]

jenkinhill

Try Tools/Install or if necessary update tables, but it sounds as if you have a bad installation or bad host.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

gedas646

#4
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?

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

gedas646

tried to change max size but no luck, i have no clue how to solve that

jenkinhill

YOu said the host is yours so surely you can change values in php.ini
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

gedas646

#8
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

gedas646

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

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

gedas646

#11
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..

jenkinhill

Sounds like a whole mess of permissions, then? We can't solve hosting problems, except to recommend some good hosts......
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

gedas646

#13
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

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum