Zum Inhalt springen

ext_tables.sql bei Page PHP Content bleibt leer??

Erstellt am 2. März 2006 · 7 Antworten · letzte Antwort am 4. März 2006

Tags: Datenbank, Frage

Dario ·

Nach der Instalation der "Page PHP Content" bleibt die ext_tables.sql leer.

Es kommt dann folgende Fehlermeldung:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/doc/xxxx/xxxxxx/www/typo3/typo3/t3lib/class.t3lib_db.php on line 711

Warning: Cannot modify header information - headers already sent by (output started at /home/www/doc/xxxx/xxxxx/www/typo3/typo3/t3lib/class.t3lib_db.php:711) in /home/www/doc/xxxx/xxxxx/www/typo3/typo3/template.php on line 601

Errors:
2: SQL error: 'Unknown column 'tx_pagephpcontent_php_code' in 'field list'' (tt_content:57)

Bitte um Hilfe!

Dario ·

Danke,

ich komme da aber auch nicht weiter.

Update database tables and fields:
Table and field definitions should be updated
There seems to be a number of differencies between the database and the selected SQL-file. Please select which statements you want to execute in order to update your database:

Add fields
ALTER TABLE tt_content ADD tx_pksaveformmail_savetopid blob NOT NULL;
ALTER TABLE tt_content ADD tx_pagephpcontent_php_code text NOT NULL auto_increment;
Removing tables (rename with prefix)
(EXT) ALTER TABLE tx_rtehtmlarea_acronym RENAME zzz_deleted_tx_rtehtmlarea_acronym;

Dann drucke ich WRITE TO DATABASE

und nichts passiert!!!

Unbekannter Benutzer ·

und wenn du über den ExtManager den Dump der Extension erneut einliest?
also ExtManager --> "Loaded extensions" auswählen --> php page content öffnen --> rechts oben im Menu "Dump DB" auswählen --> "Write this dump to ext_tables.sql now!" anklicken

Dario ·

Jetzt ist zwar dies hier weg

ALTER TABLE tt_content ADD tx_pagephpcontent_php_code text NOT NULL auto_increment;

bei Seite-Typ PHP Script kommt beim Speichern wieder Fehler von oben:

Warning: mysql_num_rows()...

Ausserdem bei Installation Status unter "Errors":

Class filename "pi1/class.tx_pagephpcontent_pi1.php" did NOT contain the class "tx_pagephpcontent_pi1"!

woida ·

ALTER TABLE tt_content ADD tx_pagephpcontent_php_code text NOT NULL auto_increment;

Eine Tabelle darf nur einen auto_increment Wert haben, und bei tt_content ist das uid.

Deshalb wurde die Spalte wohl nicht gespeichert und pagephpcontent mekert jetzt rum.

Ein Bug??