Project

General

Profile

Actions

Bug #22168

closed

0009945: Non-static method RemoveXSS::RemoveXSS() cannot be called statically

Added by poulpillusion over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-02-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

MailformPlus will produce the fatal error (but it's not MailformPlus, it's in the TYPO3 Core):

PHP Fatal error: Non-static method RemoveXSS::RemoveXSS() cannot be called statically, assuming $this from incompatible context in TYPO3_SRC/t3lib/class.t3lib_div.php on line 383

The solution provided for bug 9945 no longer works in PHP 5.2.10

Here's a solution that works for 5.2.10 :

Change file typo3conf/ext/th_mailformplus/pi1/class.tx_thmailformplus_pi1.php line 3817 :
$sanitizedArray[$key] = RemoveXSS::RemoveXSS($value);

with :
$remove_filter = new RemoveXSS($value);
$sanitizedArray[$key] = $remove_filter->RemoveXSS($value);

(sorry for filing a new bug, I couldn't manage to re-open bug 9945)

(issue imported from #M13633)

Actions #1

Updated by Chris topher over 14 years ago

Hi,

please update your TYPO3 version to 4.2.12 and tell us, if the error is fixed there.
#19699 which you mentioned should have been fixed in 4.2 in April 2009 already (by the patch for #19699).

Actions #2

Updated by Chris topher over 14 years ago

I close this issue now.
Why do people open bugs, if they then don't respond to notes?

Actions

Also available in: Atom PDF