---
title: "Aufruf von Thema im Forum wirft Typo3 Exception"
url: "https://www.typo3.net/d/100913-aufruf-von-thema-im-forum-wirft-typo3-exception"
source: "typo3.net"
tags: ["Extensions","Frage","PHP","TYPO3 4"]
created: "2010-08-29"
last_reply: "2010-08-29"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# Aufruf von Thema im Forum wirft Typo3 Exception

Extensions · 0 Antworten · gestartet 2010-08-29

## Eröffnungsbeitrag

**Unbekannter Benutzer** · 2010-08-29 · [Beitrag #1](https://www.typo3.net/d/100913-aufruf-von-thema-im-forum-wirft-typo3-exception/1)

Hallo zusammen!

Wenn ich auf meinem Testsystem im Forum ein Thema aufrufe, dann erhalte ich eine Typo3 bzw. PHP Fehlermeldung:

#1: PHP Warning: trim() expects parameter 1 to be string, array given in /var/www/nemo/typo3_src-4.3.5/typo3/sysext/cms/tslib/class.tslib_content.php line 516

t3lib_error_Exception thrown in file
/var/www/nemo/typo3_src-4.3.5/t3lib/error/class.t3lib_error_errorhandler.php in line 101.

Mein System: Debian stable/testing
TYPO3_VERSION: 4.3.5
PHP_VERSION  : 5.3.2-2

Die vollständige Fehlerkette:

14 t3lib_error_ErrorHandler::handleError(2, "trim() expects parameter 1 to be string, array given", "/var/www/nemo/typo3_src-4.3.5/typo3/sysext/cms/tslib/class.tslib_content.php", 516, array)

13 trim(array)

/var/www/nemo/typo3_src-4.3.5/typo3/sysext/cms/tslib/class.tslib_content.php:

00514:   $GLOBALS['TSFE']->cObjectDepthCounter--;
00515:   if ($GLOBALS['TSFE']->cObjectDepthCounter>0) {

00516:    $name = trim($name);

00517:    if ($GLOBALS['TT']->LR) $GLOBALS['TT']->push($TSkey, $name);
00518:

12 tslib_cObj::cObjGetSingle(array, NULL)

/var/www/nemo/tauchfreunde-nemo/typo3conf/ext/mm_forum/pi1/class.tx_mmforum_postfunctions.php:

01243:     );
01244:    } else {

01245:     $profile .= $this->cObj->cObjGetSingle($obj, $this->conf['list_posts.']['userbuttons.'][$key.'.']);

01246:    }
01247:   }

11 tx_mmforum_postfunctions::getUserButtons(array)

/var/www/nemo/tauchfreunde-nemo/typo3conf/ext/mm_forum/pi1/class.tx_mmforum_postfunctions.php:

00621:
00622:     /* Generate buttons */

00623:    $profile .= tx_mmforum_postfunctions::getUserButtons($user);

00624:         }
00625:

10 tx_mmforum_postfunctions::marker_getPostmenuMarker(array, array)

/var/www/nemo/tauchfreunde-nemo/typo3conf/ext/mm_forum/pi1/class.tx_mmforum_postfunctions.php:

00485:  function getPostListMarkers($row, $topic, $extra = array()) {
00486:   list($userData) = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*', 'fe_users', 'uid = ' . $row['poster_id']);

00487:   $mAp = tx_mmforum_postfunctions::marker_getPostmenuMarker($row, $topic);

00488:
00489:   $userSignature = tx_mmforum_postfunctions::marker_getUserSignature($userData);

9 tx_mmforum_postfunctions::getPostListMarkers(array, array, array)

/var/www/nemo/tauchfreunde-nemo/typo3conf/ext/mm_forum/pi1/class.tx_mmforum_postfunctions.php:

00290:   while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($postList)) {
00291:

00292:    $postMarker = tx_mmforum_postfunctions::getPostListMarkers($row, $topicData, array('even' => ($i++%2)==0));

00293:    $postMarker['###ADMIN_PANEL###'] = $adminPanel;
00294:    if ($row['uid'] == $topicData['topic_first_post_id'] && $templateFirst) {

8 tx_mmforum_postfunctions::list_post("", array, "")

/var/www/nemo/tauchfreunde-nemo/typo3conf/ext/mm_forum/pi1/class.tx_mmforum_pi1.php:

00292:        break;
00293:       case 'list_post':

00294:        $content = tx_mmforum_postfunctions::list_post($content, $conf, '');

00295:        break;
00296:       case 'new_topic':

7 tx_mmforum_pi1::main("", array)

6 call_user_func_array(array, array)

/var/www/nemo/typo3_src-4.3.5/typo3/sysext/cms/tslib/class.tslib_content.php:

06612:     if (is_object($classObj) && method_exists($classObj, $parts[1])) {
06613:      $classObj->cObj = $this;

06614:       $content = call_user_func_array(array($classObj, $parts[1]), array($content, $conf));

06615:     } else {
06616:      $GLOBALS['TT']->setTSlogMessage('Method "' . $parts[1] . '" did not exist in class "' . $parts[0] . '"', 3);

5 tslib_cObj::callUserFunction("tx_mmforum_pi1->main", array, "")

/var/www/nemo/typo3_src-4.3.5/typo3/sysext/cms/tslib/class.tslib_content.php:

00787:     }
00788:     $this->includeLibs($conf);

00789:     $tempContent = $this->callUserFunction($conf['userFunc'], $conf, '');

00790:     if ($this->doConvertToUserIntObject) {
00791:      $this->doConvertToUserIntObject = false;

4 tslib_cObj::USER(array)

/var/www/nemo/typo3_src-4.3.5/typo3/sysext/cms/tslib/class.tslib_fe.php:

03238:       break;
03239:       case 'FUNC':

03240:        $incContent = $INTiS_cObj->USER($INTiS_config[$INTiS_key]['conf']);

03241:       break;
03242:       case 'POSTUSERFUNC':

3 tslib_fe::INTincScript_process(array)

/var/www/nemo/typo3_src-4.3.5/typo3/sysext/cms/tslib/class.tslib_fe.php:

03177:    $INTiS_config = $this->config['INTincScript'];
03178:    $this->INTincScript_includeLibs($INTiS_config);

03179:    $this->INTincScript_process($INTiS_config);

03180:     // Check if there were new items added to INTincScript during the previous execution:
03181:    $INTiS_config = array_diff_assoc($this->config['INTincScript'], $INTiS_config);

2 tslib_fe::INTincScript()

/var/www/nemo/typo3_src-4.3.5/typo3/sysext/cms/tslib/index_ts.php:

00451: if ($TSFE->isINTincScript())  {
00452:  $TT->push('Non-cached objects','');

00453:   $TSFE->INTincScript();

00454:  $TT->pull();
00455: }

1 require("/var/www/nemo/typo3_src-4.3.5/typo3/sysext/cms/tslib/index_ts.php")

/var/www/nemo/typo3_src-4.3.5/index.php:

00078: // ******************
00079:

00080: require (PATH_tslib.'index_ts.php');

00081:
00082: ?>

Im Produktionssystem beim Provider sehe ich den Fehler nicht. Dort ist die PHP-Version älter (PHP_VERSION  : 5.2.12).

Ist das Problem bekannt? Gibt es einen Workaround?

Gruß
Berthold

---

Quelle: „Aufruf von Thema im Forum wirft Typo3 Exception“, typo3.net, https://www.typo3.net/d/100913-aufruf-von-thema-im-forum-wirft-typo3-exception
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
