Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-01-28 09:51:34

Wolfgang
Member
From: Germany
Registered: 2006-07-18
Posts: 71
Website

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

#14 2007-01-30 13:11:54

Wolfgang
Member
From: Germany
Registered: 2006-07-18
Posts: 71
Website

Re: Upload problems with files and pictures

Thanks, the problem is solved …

Offline

Board footer

Powered by FluxBB