Hey mmh,
Just tried the very latest of those patches and hey presto!
Thanks heaps for your help.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hey mmh,
Just tried the very latest of those patches and hey presto!
Thanks heaps for your help.
Worked perfectly! Thanks heaps mmh.
No problem (:
Brilliant! Thank you for your help.
I'm having the same problem with an install of 2.4.6
This is not my first Silverstripe install and I have got this working with other installs on this server (some time ago so how is unclear).
Has this patch not made its way into the distribution yet? Or am I looking at another problem?
I installed 2.4.6 and I have this problem.
What can be happening?
VPS CentOS Plesk 10
dominiox.com/conf
File vhost.conf:
<Directory /var/www/vhosts/dominiox.com/httpdocs>
<IfModule mod_php5.c>
php_admin_value open_basedir "/var/www/vhosts/dominiox.com/httpdocs:/tmp:/usr/yii:"
</IfModule>
</Directory>
Thanks.
Regards,
Jose A
I don't know.
Marnix
The problem occurs in the following lines (Upload.php):
public function validate() {
// we don't validate for empty upload fields yet
if(!isset($this->tmpFile['name']) || empty($this->tmpFile['name'])) return true;
$isRunningTests = (class_exists('SapphireTest', false) && SapphireTest::is_running_test());
if(isset($this->tmpFile['tmp_name']) && !is_uploaded_file($this->tmpFile['tmp_name']) && !$isRunningTests) {
$this->errors[] = _t('File.NOVALIDUPLOAD', 'File is not a valid upload'); <<<<<<<<<<<<<<<<<<<<
return false;
}
$this->tmpFile['tmp_name'] = /var/www/vhosts/dominiox.com/httpdocs/silverstripe-cache/bar1111.jpg
$isRunningTests = false
Apparently is_uploaded_file = false
Why?
Regards,
Jose A