• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Can someone translate this?

[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;
 
[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
 
Wow, I'm not 100% sure with PHP, but generally an object explicitly destroying itself is an exception.
 
Back
Top