VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Silla on March 22, 2012, 16:10:23 PM

Title: downloadable file path problems
Post by: Silla on March 22, 2012, 16:10:23 PM
Using Joomla 2.5.3 and virtuemart 2.0.2
I bought and installed the plug-in virtual goods ST42,
I followed the instructions in the manual, all right,
I created a folder in / var / www / vhosts / sitename / wmfiles
in VM Configuration / templates / media for sale in the path I put: / var / www / vhosts / sitename / wmfiles,
when I upload the file you load in images / stories / virtuemart / product / files
in the shop / media I get this:
Warning: is_file () [function.is-file]: open_basedir restriction in effect. File (/ var / www / vhosts / sitename / wmfiles) Is Not Within The allowed path (s): (/ var / www / vhosts / sitename / httpdocs :/ tmp) in / var / www / vhosts / sitename / httpdocs / libraries / joomla / filesystem / file.php on line 523

what is the error?
Title: Re: downloadable file path problems
Post by: Silla on March 22, 2012, 22:18:31 PM
The folder "vmfiles" I created outside of the ROOT of Joomla has the permissions to 755
Title: Re: downloadable file path problems
Post by: jenkinhill on March 23, 2012, 00:06:59 AM
open_basedir restriction in effect is a server configuration. The hosts will not allow the use of a directory outside of root, which is something not acceptable these days.
Title: Re: downloadable file path problems
Post by: Silla on March 23, 2012, 15:17:28 PM
Thanks the response Jenkin

my host set the parameters to 777,
does not load the file in / vmfiles
in the shop / media gives me these 2 messages:

JFolder :: create: Infinite loop detected
JFTP :: store: Negative response
Warning: failed to move the file!

File / var / www / vhosts / sitename / httpdocs / / var / www / vhosts / sitename / vmfiles/mp3 zip.zip was loaded
Media stored correctly
Title: Re: downloadable file path problems
Post by: jenkinhill on March 23, 2012, 21:21:13 PM
Quote from: Silla on March 23, 2012, 15:17:28 PM
File / var / www / vhosts / sitename / httpdocs / / var / www / vhosts / sitename / vmfiles/mp3 zip.zip was loaded

That path suggests a server issue, possibly with .htaccess
Title: Re: downloadable file path problems
Post by: Silla on March 24, 2012, 14:39:48 PM
he odyssey has only just begun

1) when I load a file in / var / www / vhosts / sitename / httpdocs / vmfiles gives me this error:

JFolder :: create: Infinite loop detected
JFTP :: store: Negative response
Warning: failed to move the file!

File / var / www / vhosts / sitename / httpdocs / / var / www / vhosts / sitename / vmfiles/mp3 zip.zip was loaded
Media Stored Correctly


2) when loading a file into a folder in the ROOT, load it, but I get this message:
         File / var / www / vhosts / sitename / httpdocs / / var/www/vhosts/sitename/httpdocs/myfolder/mp3 zip.zip was loaded
Media Stored Correctly


3) when loading a folder in the ROOT of the music files zipped, + major than 3,000 kb, I do not charge them and gives me this error:
COM_VIRTUEMART_PRODUCT_FILES_ERR_UPLOAD_MAX_FILESIZE
         Choose the type of format for the media with the file name
VMerror: Could not resolve mime / var / www / vhosts / soundcentershop.eu / httpdocs / satdespju /

the file. htaccess I have changed according to the guide online, however, gives me the same errors before and after the change ...

you can tell me that I need to do specific requests to the host?
or am I that I set virtuemart?

I'm stuck
Title: Re: downloadable file path problems
Post by: Silla on March 24, 2012, 14:45:14 PM
I put in the file htaccess.txt
# Options + FollowSymLinks
RewriteBase /
and renamed the file. htaccess
Title: Re: downloadable file path problems
Post by: jenkinhill on March 24, 2012, 18:08:27 PM
If your host uses more secure settings that should be

Options +SymlinksIfOwnerMatch
etc...
Title: Re: downloadable file path problems
Post by: Silla on March 25, 2012, 01:34:30 AM
could you be more explicit?
My host says:
Write exactly what you need and what you do
he asks what is to set ... but I don't know...
Title: Re: downloadable file path problems
Post by: Silla on March 25, 2012, 18:37:47 PM
Perhaps the web server is too old? Versione PHP    5.2.6-1+lenny9
Title: Re: downloadable file path problems
Post by: Studio 42 on March 26, 2012, 10:33:01 AM
Hi silla ,
your host has limited the size to 2,000 kb and you try to upload a 3,000 kb file
You must edit your php seting max_file_size or look with your provider.
Test with a little file and look if problem are same
Title: Re: downloadable file path problems
Post by: Silla on April 03, 2012, 02:33:33 AM
Hello guys,

My host says

I set max_upload at 500mb,
I can not raise the timeout beyond 10 min because if it goes in a loop operation it crashes the entire server,
I can upload untill 10 mb
I put the screen configuration of php

My site sells music, and files from a few kb and entire cd of 100 mb and above,

the question is: Is there a way to upload files to ftp to do the digital download?

thanks

[attachment cleanup by admin]
Title: Re: downloadable file path problems
Post by: Silla on April 05, 2012, 02:08:31 AM
nothing friends?
Title: Re: downloadable file path problems
Post by: DavidAllenNeron on April 18, 2012, 20:15:53 PM
This is exactly my problem right now.

I cannot upload larger files.

I have my php set to 500mb max, but I cannot even upload a pdf that is 6mb

This is the message I get.
COM_VIRTUEMART_PRODUCT_FILES_ERR_UPLOAD_MAX_FILESIZE

I run Joomla 2.5.4 and virtuemart 2.0.6

I am using the Virtual Goods extension, and cannot upload "larger" files in the media section of Virtuemart.

how could I go about solving this issue?
Title: Re: downloadable file path problems
Post by: Dishmaster J on September 26, 2012, 18:22:34 PM
Has anyone figured out how to fix this problem?