Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Upload problems with files and pictures
Hello
I think, that I’ve found something interesting part.
Go to the funcion “doDiagnostics()” in txp_diag.php. There you find the lines
$out = array('<textarea cols="78" rows="18" readonly="readonly" style="width: 500px; height: 300px;">',
and following
In this sequenze you find lines, each one creates a field of an array:
gTxt('permlink_mode').cs.$permlink_mode.n,
(ini_get('open_basedir')) ? 'open_basedir: '.ini_get('open_basedir').n : '',
(ini_get('upload_tmp_dir')) ? 'upload_tmp_dir: '.ini_get('upload_tmp_dir').n : '',
gTxt('tempdir').cs.$tempdir.n,
Each of those lines I will copy before the declaration of the array and change it to:
$hpXX = gTxt('permlink_mode').cs.$permlink_mode.n;
echo "<p>diag: $hpXX :</p>";
$hpXX = (ini_get('open_basedir')) ? 'open_basedir: '.ini_get('open_basedir').n : '';
echo "<p>diag: $hpXX :</p>";
$hpXX = (ini_get('upload_tmp_dir')) ? 'upload_tmp_dir: '.ini_get('upload_tmp_dir').n : '';
echo "<p>diag: $hpXX :</p>";
$hpXX = gTxt('tempdir').cs.$tempdir.n;
echo "<p>diag: $hpXX :</p>";
First Line: Schema der URLs: section_title -> Ok, this is found in the diagnostics …
Second Line: open_basedir: /home/devsupde/http – Ok, this is found too!
Third Line: Empty – -> There is no empty line in the diganostics
Fourth Line: Temporäres Verzeichnis: /home/devsupde/http/tmp – Ok, this is the third entry (of our investigated ones) in the diagnostics.
So the following line is hidden by the next one:
(ini_get('upload_tmp_dir')) ? 'upload_tmp_dir: '.ini_get('upload_tmp_dir').n : '',
And This is what I have said: upload_tmp_dir is not definded correctly. I’ve added a line
ini_set('upload_tmp_dir','/home/devsupde/http/tmp');
into the textpattern/index.php, but it does not work.
Best regards
Wolfgang
Offline
Re: Upload problems with files and pictures
Thanks, the problem is solved …
Offline