[TYPO3-UG Oesterreich] Parse error Typo3 4.1
Florian Eggl
florian.eggl at gmx.at
Thu Dec 13 20:52:59 CET 2012
Ja, ist w4y
Gerne (aber obs so viel besser ist?):
?><?php
###########################
## EXTENSION: rggooglemap
## FILE: /home/.sites/122/site1959/web/typo3conf/ext/rggooglemap/ext_tables.php
###########################
$_EXTKEY = 'rggooglemap';
$_EXTCONF = $TYPO3_CONF_VARS['EXT']['extConf'][$_EXTKEY];
?><?phpif (!defined ('TYPO3_MODE')) die ('Access denied.');global $TYPO3_CONF_VARS;// class for displaying the category tree in BE forms.include_once(t3lib_extMgm::extPath($_EXTKEY).'res/class.tx_rggm_treeview.php');// Default items for tt_address$tempColumns = Array ( "tx_rggooglemap_lng" => Array ( "exclude" => 1, "label" => "LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_lng", "config" => Array ( "type" => "input", "size" => "20", ) ), "tx_rggooglemap_lat" => Array ( "exclude" => 1, "label" => "LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_lat", "config" => Array ( "type" => "input", "size" => "20", ) ), "tx_rggooglemap_display" => Array ( "exclude" => 1, "label" => "LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_display", "config" => Array ( "type" => "check", "default" => "1" ) ), "tx_rggooglemap_cat2" => Array ( 'exclude' => 1, 'label' => 'LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_cat', 'config' => Array ( 'type' => 'select', 'form_type' => 'user', 'userFunc' => 'tx_rggm_treeview->displayCategoryTree', 'treeView' => 1, 'treeName' => 'txchtreeviewexample', 'foreign_table' => 'tx_rggooglemap_cat', 'size' => 5, 'autoSizeMax' => 10, 'minitems' => 0, 'maxitems' => 10, 'wizards' => Array( ), ) ), "tx_rggooglemap_ce" => Array ( "exclude" => 1, 'label' => 'LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_ce', "config" => Array ( "type" => "group", "internal_type" => "db", "allowed" => "tt_content", "size" => 2, "minitems" => 0, "maxitems" => 5, ) ),);// fields for tt_address$value = 'tt_address';t3lib_div::loadTCA($value);t3lib_extMgm::addTCAcolumns($value,$tempColumns,1);t3lib_extMgm::addToAllTCAtypes($value,"tx_rggooglemap_lng;;;;1-1-1, tx_rggooglemap_lat, tx_rggooglemap_display, tx_rggooglemap_cat2, tx_rggooglemap_ce");/** GENERIC PART*/ // include generic table access#require_once(t3lib_extMgm::extPath('rggooglemap').'res/class.tx_rggooglemap_table.php');#$genericTable = t3lib_div::makeInstance('tx_rggooglemap_table');// get tables from EM settings$tmp_confArr = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['rggooglemap']);$tables = explode(',',$tmp_confArr['tables']);foreach ($tables as $key=>$singleTable) { $singleTable = trim($singleTable); $serviceChain=''; while (is_object($serviceObj = t3lib_div::makeInstanceService('rggmData', $singleTable, $serviceChain))) { $serviceChain.=','.$serviceObj->getServiceKey(); if ($tempuser=$serviceObj->init()) { // user found, just stop to search for more# $this->myService = $serviceObj; if ($tmp_confArr['wizards']) { $lat = $serviceObj->getTable('lat'); $lng = $serviceObj->getTable('lng'); $cat = $serviceObj->getTable('rggmcat'); t3lib_div::loadTCA($singleTable); $TCA[$singleTable]['columns'][$lng]['config']['wizards'] = array( '_POSITION' => 'right', 'googlemap' => array( 'title' => 'LLL:EXT:rggooglemap/locallang_db.xml:wizard.title', 'icon' => $BACK_PATH.t3lib_extMgm::extRelPath('rggooglemap').'mod1/moduleicon.gif', 'type' => 'popup', 'script' => 'EXT:rggooglemap/class.tx_rggooglemap_wizard.php', 'JSopenParams' => 'height=630,width=800,status=0,menubar=0,scrollbars=0', 'lat_field' => $lat, 'lng_field' => $lng, ), /* 'test' => array( 'title' => 'LLL:EXT:rggooglemap/locallang_db.xml:wizard.title', 'icon' => $BACK_PATH.t3lib_extMgm::extRelPath('rggooglemap').'mod1/moduleicon.gif', 'type' => 'popup', 'notNewRecords'=> 1, 'script' => 'EXT:rggooglemap/class.tx_rggooglemap_wizardGeocoding.php', 'JSopenParams' => 'height=630,width=800,status=0,menubar=0,scrollbars=0', 'lat_field' => $lat, 'lng_field' => $lng, ),*/ ); $TCA[$singleTable]['columns'][$lat]['config']['wizards'] = array( '_POSITION' => 'right', 'googlemap' => array( 'title' => 'LLL:EXT:rggooglemap/locallang_db.xml:wizard.title', 'icon' => $BACK_PATH.t3lib_extMgm::extRelPath('rggooglemap').'mod1/moduleicon.gif', 'type' => 'popup', 'script' => 'EXT:rggooglemap/class.tx_rggooglemap_wizard.php', 'JSopenParams' => 'height=630,width=800,status=0,menubar=0,scrollbars=0', 'lat_field' => $lat, 'lng_field' => $lng, ), ); $TCA[$singleTable]['columns'][$cat]['config'] = Array ( 'type' => 'select', 'form_type' => 'user', 'userFunc' => 'tx_rggm_treeview->displayCategoryTree', 'treeView' => 1, 'treeName' => 'txchtreeviewexample', 'foreign_table' => 'tx_rggooglemap_cat', 'size' => 5, 'autoSizeMax' => 10, 'minitems' => 0, 'maxitems' => 10, 'wizards' => Array( ), ); } break; } }} #echo t3lib_div::view_array($TCA['tt_news']['columns']);t3lib_div::loadTCA('tt_content');$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1']='layout,select_key, pages';t3lib_extMgm::addPlugin(Array('LLL:EXT:rggooglemap/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY.'_pi1'),'list_type');t3lib_extMgm::addStaticFile($_EXTKEY,"pi1/static/","Google Map");$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY.'_pi1']='pi_flexform';t3lib_extMgm::addPiFlexFormValue('rggooglemap_pi1', 'FILE:EXT:rggooglemap/flexform_ds.xml');// Wiziconif (TYPO3_MODE=="BE") $TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_rggooglemap_pi1_wizicon"] = t3lib_extMgm::extPath($_EXTKEY).'pi1/class.tx_rggooglemap_pi1_wizicon.php';// Be Moduleif (TYPO3_MODE=="BE") { t3lib_extMgm::addModule("web","txrggooglemapM1","",t3lib_extMgm::extPath($_EXTKEY)."mod1/");}// Category $TCA["tx_rggooglemap_cat"] = Array ( "ctrl" => Array ( 'title' => 'LLL:EXT:rggooglemap/locallang_db.xml:tx_rggooglemap_cat', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', "default_sortby" => "ORDER BY crdate", "delete" => "deleted", 'treeParentField' => 'parent_uid', "enablecolumns" => Array ( "disabled" => "hidden", ), "dynamicConfigFile" => t3lib_extMgm::extPath($_EXTKEY)."tca.php", "iconfile" => t3lib_extMgm::extRelPath($_EXTKEY)."icon_tx_rggooglemap_cat.gif", ), "feInterface" => Array ( "fe_admin_fieldList" => "hidden, title, parent_uid", ));/*$TCA["tx_rggooglemap_generic"] = array ( "ctrl" => array ( 'title' => 'LLL:EXT:rggooglemap/locallang_db.xml:tx_rggooglemap_generic', 'label' => 'tablename', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => "ORDER BY tablename", 'delete' => 'deleted', 'enablecolumns' => array ( 'disabled' => 'hidden', ), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_rggooglemap_generic.gif', ), "feInterface" => array ( "fe_admin_fieldList" => "hidden, tablename, mapping", ));*/?><?php
###########################
## EXTENSION: ve_guestbook
## FILE: /home/.sites/122/site1959/web/typo3conf/ext/ve_guestbook/ext_tables.php
###########################
ERRORLOG ergibt z.B. soche Einträge:
[Thu Dec 13 19:13:48 2012] [error] [client 208.115.113.84] File does not exist: /home/.sites/122/site1959/web/robots.txt
[Thu Dec 13 19:24:50 2012] [error] [client 81.30.151.218] File does not exist: /home/.sites/122/site1959/web/robots.txt
[Thu Dec 13 19:29:48 2012] [error] [client 81.30.151.218] File does not exist: /home/.sites/122/site1959/web/robots.txt
[Thu Dec 13 19:37:33 2012] [error] [client 81.30.151.218] File does not exist: /home/.sites/122/site1959/web/robots.txt
[Thu Dec 13 19:39:29 2012] [error] [client 81.30.151.218] File does not exist: /home/.sites/122/site1959/web/robots.txt
[Thu Dec 13 20:07:14 2012] [error] [client 188.22.65.33] File does not exist: /home/.sites/122/site1959/web/cms/typo3
[Thu Dec 13 20:27:42 2012] [error] [client 199.233.233.142] File does not exist: /home/.sites/122/site1959/web/robots.txt
[Thu Dec 13 20:34:52 2012] [error] [client 81.30.151.218] File does not exist: /home/.sites/122/site1959/web/robots.txt
[Thu Dec 13 20:43:36 2012] [error] [client 81.30.151.218] File does not exist: /home/.sites/122/site1959/web/robots.txt
-----Ursprüngliche Nachricht-----
Von: typo3-at-bounces at lists.typo3.org [mailto:typo3-at-bounces at lists.typo3.org] Im Auftrag von Markus Klein
Gesendet: Donnerstag, 13. Dezember 2012 20:30
An: 'TYPO3 Usergroup Oesterreich'
Betreff: Re: [TYPO3-UG Oesterreich] Parse error Typo3 4.1
Hallo Florian,
also jetzt mal so auf die Schnelle:
Ein parse-Error hat für mein Gefühl nichts mit der DB zu tun, die cache_* kannst du alle leeren.
Da dein Hosting ganz nach W4Y aussieht, check doch mal den errorlog im Kundencenter.
Leider konnte ich aus deinem Code-Paste nichts rauslesen, weil das ein bisschen unformatiert daher kam.
Schick doch sicherheitshalber nochmals die Zeile mit dem Fehler plus 5 davor und danach.
lg
Markus Klein
> -----Original Message-----
> From: typo3-at-bounces at lists.typo3.org
> [mailto:typo3-at-bounces at lists.typo3.org] On Behalf Of Florian Eggl
> Sent: Thursday, December 13, 2012 8:17 PM
> To: 'TYPO3 Usergroup Oesterreich'
> Subject: Re: [TYPO3-UG Oesterreich] Parse error Typo3 4.1
>
> Danke für die rasche Hilfe!
>
> Habe mal versucht die temp_CACHED_*-Files und das gesamte
> typo3temp-Verzeichnis zu löschen. Auf die "alte" laufende TYPO3
> Installation kann ich leider nicht mehr zugreifen, da es sich um einen
> Domaintransfer handelt (oder kennst du einen Trick?) Auf die Datenbank kann ich aber zugreifen. Reicht es hier einfach z.B. die Tabellen mit cache* zu löschen? Kann man die Aktualisierung der Referenz-Indizes auch so durchführen?
> LG
> Florian
>
> -----Ursprüngliche Nachricht-----
> Von: typo3-at-bounces at lists.typo3.org
> [mailto:typo3-at-bounces at lists.typo3.org] Im Auftrag von Arthur Koncar
> Gesendet: Donnerstag, 13. Dezember 2012 19:21
> An: TYPO3 Usergroup Oesterreich
> Betreff: Re: [TYPO3-UG Oesterreich] Parse error Typo3 4.1
>
> Nope, nicht nur den Backend-Cache, sondern das gesamte
> typo3temp-Verzeichnis leeren, damit keinerlei temp_CACHED_* - Files mehr im Verzeichnis liegen.
> Du hast einen Fehler in einer der gecachten Dateien. Wenn Du das
> gesamte typo3temp-Verzeichnis leerst, löschst Du somit auch alle temp_CACHED - Dateien.
> Danach (und natürlich nach dem Aufräumen der DB, damit kein Restmüll
> mittransportiert wird) und nach der Aktualisierung der Referenz-Indizes macht Du den Dump, den Du dann woanders reimportieren kannst.
>
> LG
>
> Arthur
>
> --------------------------------
>
> ArtKon.com
>
>
> IT Services • Web Development • Content Management
>
> Eitental 8 · A-3653 Weiten · mobil: +43 676 5569174 · email:
> office at artkon.com · web: www.artkon.com
>
> Offenlegung lt. UGB:
> ArtKon.com e.U. · Einzelunternehmen · Inh. Arthur Konèar Eitental 8, 3653 Weiten · FNR: 368941k · Gerichtsstand: Melk · UID:
> ATU66424746 Bank Austria · BLZ 12000 · Kto. Nr. 115 220 303 01 · IBAN:
> AT42 1100 0115 2203 0301 · BIC: BKAUATWW
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: florian.eggl at gmx.at [mailto:typo3-at-bounces at lists.typo3.org] Im
> Auftrag von Florian Eggl
> Gesendet: Donnerstag, 13. Dezember 2012 19:12
> An: 'TYPO3 Usergroup Oesterreich'
> Betreff: Re: [TYPO3-UG Oesterreich] Parse error Typo3 4.1
>
> Danke, hab ich schon gemacht - hilft leider nicht Könnte es mit der
> Datenbank etwas zu tun haben? Habe vor dem Datenbank-Dump im TYPO3 Backend den Cache gelöscht...
> MfG
>
> -----Ursprüngliche Nachricht-----
> Von: typo3-at-bounces at lists.typo3.org
> [mailto:typo3-at-bounces at lists.typo3.org] Im Auftrag von Kurt
> Dirnbauer
> Gesendet: Donnerstag, 13. Dezember 2012 19:01
> An: TYPO3 Usergroup Oesterreich
> Betreff: Re: [TYPO3-UG Oesterreich] Parse error Typo3 4.1
>
> Vielleicht mal alle temp Dateien unter typo3conf loeschen und neu aufbauen lassen?
>
> --
> Von meinem iPhone gesendet, Bitte entschuldigen sie eventuelle Tippfehler.
>
> Am 13.12.2012 um 18:22 schrieb "Florian Eggl" <florian.eggl at gmx.at>:
>
> > Nachtrag:
> >
> > Das ist die Stelle in der temp-Datei:
> >
> >
> >
> >
> >
> > ?><?phpif (!defined ('TYPO3_MODE')) die ('Access
> > denied.');global $TYPO3_CONF_VARS;// class for displaying the
> > category tree in BE
> > forms.include_once(t3lib_extMgm::extPath($_EXTKEY).'res/class.tx_rgg
> > m_ treevi ew.php');// Default items for tt_address$tempColumns =
> > Array ( "tx_rggooglemap_lng" => Array ( "exclude" => 1, "label" =>
> > "LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_lng",
> > "config" => Array ( "type" =>
> > "input", "size" =>
> > "20", ) ),
> > "tx_rggooglemap_lat" => Array (
> > "exclude" => 1,
> > "label" =>
> > "LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_lat",
> > "config" => Array ( "type" =>
> > "input", "size" =>
> > "20", ) ),
> > "tx_rggooglemap_display" => Array (
> > "exclude" => 1,
> > "label" =>
> > "LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_display",
> > "config" => Array ( "type" =>
> > "check", "default" => "1"
> > ) ), "tx_rggooglemap_cat2" => Array (
> > 'exclude' => 1, 'label' =>
> > 'LLL:EXT:rggooglemap/locallang_db.xml:tt_address.tx_rggooglemap_cat',
> > 'config' => Array ( 'type' =>
> > 'select', 'form_type' => 'user
> _______________________________________________
> TYPO3-at mailing list
> TYPO3-at at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-at
>
> _______________________________________________
> TYPO3-at mailing list
> TYPO3-at at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-at
>
> _______________________________________________
> TYPO3-at mailing list
> TYPO3-at at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-at
>
> _______________________________________________
> TYPO3-at mailing list
> TYPO3-at at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-at
_______________________________________________
TYPO3-at mailing list
TYPO3-at at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-at
More information about the TYPO3-at
mailing list