Zum Inhalt springen

neue Seite erstellen startet mit Fehler in Line 278

Erstellt am 12. September 2010 · 2 Antworten · letzte Antwort am 12. September 2010

Tags: PHP, Frage

c0rnelia ·

Hallo und Guten Tag.
Ich bin brandneu im Forum und hoffe, dass mir "Anfängerfehler" vergeben werden o.O

Nachdem ich Xampp und Typo3, sowie die erweiterungen TEMPLAVOILA und LOREMIPSUM installiert habe (funktionierte alles ohne Fehlermeldungen) wollte ich nun meine erste neue Seite im Backend erstellen.
Beim Aanlegen der Seite erscheint dann diese Fehlermeldung:

Uncaught TYPO3 Exception
#1: PHP : Function ereg_replace() is deprecated in C:\xampp\htdocs\Typo3\typo3conf\ext\lorem_ipsum\class.tx_loremipsum_wiz.php line 278

t3lib_error_Exception thrown in file
C:\xampp\htdocs\Typo3\t3lib\error\class.t3lib_error_errorhandler.php in line 101.

13 t3lib_error_ErrorHandler::handleError(8192, "Function ereg_replace() is deprecated", "C:\xampp\htdocs\Typo3\typo3conf\ext\lorem_ipsum\class.tx_loremipsum_wiz.php", 278, array)

12 ereg_replace()

C:\xampp\htdocs\Typo3\typo3conf\ext\lorem_ipsum\class.tx_loremipsum_wiz.php:

00276: foreach($this->loremIpsumSource as $lipsumStr) {
00277: $strlen = strlen($lipsumStr);

00278: $lipsumStr = ereg_replace('['.chr(13).chr(10).']',' ',$lipsumStr);

00279:
00280: if ($strlen < 20) {

11 tx_loremipsum_wiz::loadLoremIpsumArray()

C:\xampp\htdocs\Typo3\typo3conf\ext\lorem_ipsum\class.tx_loremipsum_wiz.php:

00090:
00091: // Load Lorem Ipsum sources from text file:

00092: $this->loadLoremIpsumArray();

00093:
00094: switch($PA['params']['type']) {

10 tx_loremipsum_wiz::main(array, t3lib_TCEforms)

9 call_user_func_array(array, array)

C:\xampp\htdocs\Typo3\t3lib\class.t3lib_div.php:

04896: array(&$classObj, $parts[1]),
04897: array(&$params, &$ref)

04898: );

04899: } else {
04900: $errorMsg = "ERROR: No method name '".$parts[1]."' in class ".$parts[0];

8 t3lib_div::callUserFunction("EXT:lorem_ipsum/class.tx_loremipsum_wiz.php:tx_loremipsum_wiz->main", array, t3lib_TCEforms)

C:\xampp\htdocs\Typo3\t3lib\class.t3lib_tceforms.php:

03887: $params['wConf'] = $wConf;
03888: $params['row'] = $row;

03889: $outArr[] = t3lib_div::callUserFunction($wConf['userFunc'],$params,$this);

03890: break;
03891: }

7 t3lib_TCEforms::renderWizards(array, array, "pages", array, "title", array, "data[pages][NEW4c8cec0a0357f][title]_hr", array)

C:\xampp\htdocs\Typo3\t3lib\class.t3lib_tceforms.php:

01210:
01211: // Wrap a wizard around the item?

01212: $item= $this->renderWizards(array($item,$altItem),$config['wizards'],$table,$row,$field,$PA,$PA['itemFormElName'].'_hr',$specConf);

01213:
01214: return $item;

6 t3lib_TCEforms::getSingleField_typeInput("pages", "title", array, array)

C:\xampp\htdocs\Typo3\t3lib\class.t3lib_tceforms.php:

00994: switch($PA['fieldConf']['config']['form_type']) {
00995: case 'input':

00996: $item = $this->getSingleField_typeInput($table,$field,$row,$PA);

00997: break;
00998: case 'text':

5 t3lib_TCEforms::getSingleField_SW("pages", "title", array, array)

C:\xampp\htdocs\Typo3\t3lib\class.t3lib_tceforms.php:

00907:
00908: // Based on the type of the item, call a render function:

00909: $item = $this->getSingleField_SW($table,$field,$row,$PA);

00910:
00911: // Add language + diff

4 t3lib_TCEforms::getSingleField("pages", "title", array, "", 0, "", "3")

C:\xampp\htdocs\Typo3\t3lib\class.t3lib_tceforms.php:

00569: $this->palettesRendered[$this->renderDepth][$table][$parts[2]] = 1;
00570: }

00571: $sField = $this->getSingleField($table,$theField,$row,$parts[1],0,$parts[3],$parts[2]);

00572: if ($sField) { $sField.= $sFieldPal; }
00573:

3 t3lib_TCEforms::getMainFields("pages", array)

C:\xampp\htdocs\Typo3\typo3\alt_doc.php:

00760: }
00761: } else {

00762: $panel.= $this->tceforms->getMainFields($table,$rec);

00763: }
00764: $panel = $this->tceforms->wrapTotal($panel,$rec,$table);

2 SC_alt_doc::makeEditForm()

C:\xampp\htdocs\Typo3\typo3\alt_doc.php:

00537:
00538: // Creating the editing form, wrap it with buttons, document selector etc.

00539: $editForm = $this->makeEditForm();

00540:
00541: if ($editForm) {

1 SC_alt_doc::main()

C:\xampp\htdocs\Typo3\typo3\alt_doc.php:

01470: // Main:
01471: $SOBE->init();

01472: $SOBE->main();

01473: $SOBE->printContent();
01474:

Ich habe auch schon alles neu installiert aber der fehler bleibt der selbe.
Meine Rechnerkonfiguration ist:

OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 3 Build 2600
OS Manufacturer Microsoft Corporation
System Name OWNER-D6FDEAD3B
System Manufacturer Dell Inc.
System Model Precision M4300
System Type X86-based PC
Processor x86 Family 6 Model 23 Stepping 6 GenuineIntel ~2592 Mhz
BIOS Version/Date Dell Inc. A10, 4/3/2008
SMBIOS Version 2.4
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "5.1.2600.5512 (xpsp.080413-2111)"
User Name OWNER-D6FDEAD3B\Administrator
Time Zone Eastern Daylight Time
Total Physical Memory 4,096.00 MB
Available Physical Memory 2.93 GB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 5.34 GB
Page File C:\pagefile.sys

Vielen Dank für eure Hilfe

Gruss
CONNY

igorshmigor ·

ereg_replace ist seit PHP 5.3.0 veraltet. Wenn es kein Update für die Extension gibt solltest du in der entsprechenden Zeile ereg_replace durch preg_replace ersetzen. Die Syntax des pattern muss eventuell entsprechend angepasst werden.

c0rnelia ·

DANKE!!!!😃
Das war die Lösung des Problemes!
Eine Aktualisierung hab ich leider nicht gefunden aber die Umbenennung hat funktioniert.

Nochmals vielen Dank
Conny