Full Upload Path - How to Change

aboutimage 06 Aug, 2009
The Full Upload Path on my install is incorrect. It's pointing to a directory that doesn't exist. Typing in the correct one above it doesn't work. So my question is, where is that field pulling its data from? A text config file or a database? I need to manually edit the source.
GreyHead 06 Aug, 2009
Hi David,

You should be able to edit the Full Upload path to any valid folder on your system.

The default folder will be created I think when you do the first upload - provided that Joomla can create a folder with write permissions.

Bob
aboutimage 06 Aug, 2009
Thanks so much for the quick response! I'm going to send you the error I get when I try that as an attachment.
nml375 06 Aug, 2009
Hi David,
It would seem your host has enabled safe-mode in php (or is using an equivalent solution). This is restricting the locations on the system you may access through any php-script.

Looking at that image tells me your site is installed at "/home/dpmail/public_html/", also, the allowed file areas you may access are "/home/dpmail", "/usr/lib/php", "/usr/local/lib/php", and "/tmp". Attempting to access any location outside this from any php-script will generate this error.

Right now, you are however trying to upload files to "/var/www/vhosts/digitalpromailers.com/httpdocs/ftp_files", which is out of bounds for this list. Thus, the upload will fail.

Your only viable workaround would be to upload the file to the current joomla installation (in "/home/dpmail/public_html"), and then use the JFtp client to manually transfer the file to the other location through some ftp-account with access to "/var/www/vhosts/digit/..." .. Unless you could consider moving your form to the installation at /var/www/vhosts/digit...."

/Fredrik
aboutimage 10 Aug, 2009
Thought I replied back to this one. 😶

I'm not in safe mode. I checked.

And I suppose I forgot to mention something, because I can see from your response that you are thinking the URL /home/dpmail/public_html is correct, and that using /var/www/vhosts/digitalpromailers.com/httpdocs/ftp_files is out of bounds for the installation.

In fact, I forgot to mention a small detail. I ported this site to a new server. The OLD path from the OLD server was /home/dpmail/public_html, and for some reason, when I ported it to the new server, this old path stuck in the Chronoforms prefs. The NEW path on the NEW server should be /var/www/vhosts/digitalpromailers.com/httpdocs/ftp_files.

All I really need to do is figure out how to force Chronoforms to use the NEW URL as its base. Somewhere, /home/dpmail/public_html is still being stored as a valid path, and it's probably a config file or database table. I've updated everything correctly in Global Config, so it's not that.

The bottom line question is, where does Chronoforms pull that field info from?
nml375 10 Aug, 2009
Hi,
The is_writable() error message tells otherwise, or at least the PHP open_basedir setting is activated (open_basedir is not safe-mode, but restricts access in a similar fashion). As such, there is no way to tell/convince/force Joomla/chronoforms to bypass this. It's a server setting issue.

Also, the error message originates from the file /home/dpmail/public_html/administrator/components/com_chronocontact/admin.chronocontact.html.php - So you are then still accessing your Joomla site from the old location. Please recheck your URL in your browser, as well as any aliases in your web server configuration.

ChronoForms will try to store the uploaded file in the directory you've set in "Full Upload Path", as long as this directory is writable, that's where the uploads will go. There's no need to dig through the CF database to manually alter this setting.

The only 'hardcoded' paths in Joomla/ChronoForms, are the $log_path and $tmp_path settings in the site configuration.php file. Any other paths are retrieved from the web server environment upon site access.

/Fredrik
This topic is locked and no more replies can be posted.