Can someone translate this?

Hyperblaze

Lifer
May 31, 2001
10,027
1
81
[PHP5] fatal error: Cannot re-assign $this
Zuletzt aktualisiert: 13th March, 2005
Beitrag ID: 218

* Ursache
* Fehlermeldungen
* Lösung



Ursache



Fehlermeldungen


fatal error: Cannot re-assign $this in ....catalogadminincludesclassesupload.php on line 31

Fehler mit "limit -20, 20"




Lösung "upload.php"
[catalog]/admin/includes/classes/upload.php

folgenden Code suchen:

// self destruct
$this = null;


und mit diesem ersetzen:

// self destruct
// $this = null;
unset($this);



Lösung "limit"

in
[catalog]/admin/includes/classes/split_page_results.php
[catalog]/includes/classes/split_page_results.php

folgenden Code suchen:

$offset = ($max_rows_per_page * ($current_page_number - 1));
$sql_query .= " limit " . $offset . ", " . $max_rows_per_page;


und mit diesem ersetzen:

$offset = ($max_rows_per_page * ($current_page_number - 1));
if ($offset < 0)
{
$offset = 0;
}
$sql_query .= " limit " . $offset . ", " . $max_rows_per_page;
 

MobiusPizza

Platinum Member
Apr 23, 2004
2,001
0
0
[PHP5] fatal error: Cannot re-assign $this
Updated last: 13th March, 2005
Contribution ID: 218

* Cause
* Error messages
* Solution



Cause



Error messages

fatal error: Cannot re-assign $this in ....catalogadminincludesclassesupload.php on line 31

Error also "limit -20, 20"




Solution "upload.php"
[catalog]/admin/includes/classes/upload.php

Look for the following code:

// self destruct
$this = null;

Replace with this:

// self destruct
// $this = null;
unset($this);


Solution "limit"

in
[catalog]/admin/includes/classes/split_page_results.php
[catalog]/includes/classes/split_page_results.php

Look for the following code:

$offset = ($max_rows_per_page * ($current_page_number - 1));
$sql_query .= " limit " . $offset . ", " . $max_rows_per_page;

Replace with this:

$offset = ($max_rows_per_page * ($current_page_number - 1));
if ($offset < 0)
{
$offset = 0;
}
$sql_query .= " limit " . $offset . ", " . $max_rows_per_page;



=====================================
Yes it's German, which I never touched through my whole life. But well online translators can be helpful:
Tanslated by Babelfish