<edit>
Ich hatte ein paar Syntax Fehler und falsche Datentypen benutzt. Und wenn man das ganze dann auch noch als root macht. Funktioniert es sogar.
</edit>
Hallo Leute,
dachte ich versuche mal propel, habe aber leider beim Erstellen schon ein paar Fehler, und es sind nicht alle Files da:
Folgendender Fehler erscheint:
Woran der Fehler liegt kann ich leider nicht sagen, ich vermute dass vielleicht das propel mit php irgendwie nicht zusammen spielt.
Wäre super wenn mir jemand helfen kann.
lg Darian
Ich hatte ein paar Syntax Fehler und falsche Datentypen benutzt. Und wenn man das ganze dann auch noch als root macht. Funktioniert es sogar.
</edit>
Hallo Leute,
dachte ich versuche mal propel, habe aber leider beim Erstellen schon ein paar Fehler, und es sind nicht alle Files da:
Folgendender Fehler erscheint:
PHP:
$ propel-gen
Buildfile: /usr/share/php/data/propel_generator/pear-build.xml
[resolvepath] Resolved to /var/www/propel/
propel-project-builder > projdircheckExists:
propel-project-builder > projdircheck:
propel-project-builder > configure:
[echo] Loading project-specific props from /build.properties
[property] Loading /var/www/propel/build.properties
propel-project-builder > main:
[phing] Calling Buildfile '/usr/share/php/data/propel_generator/build-propel.xml' with target 'main'
[property] Loading /usr/share/php/data/propel_generator/./build.properties
[property] Loading /usr/share/php/data/propel_generator/./default.properties
propel > mysqli-check:
propel > main:
[phingcall] Calling Buildfile '/usr/share/php/data/propel_generator/build-propel.xml' with target 'sql'
[property] Loading /usr/share/php/data/propel_generator/./build.properties
[property] Loading /usr/share/php/data/propel_generator/./default.properties
propel > check-run-only-on-schema-change:
propel > sql-check:
propel > pgsql-quoting-check:
propel > mysqli-check:
propel > sql:
[echo] +------------------------------------------+
[echo] | |
[echo] | Generating SQL for YOUR Propel project! |
[echo] | |
[echo] +------------------------------------------+
[phingcall] Calling Buildfile '/usr/share/php/data/propel_generator/build-propel.xml' with target 'sql-template'
[property] Loading /usr/share/php/data/propel_generator/./build.properties
[property] Loading /usr/share/php/data/propel_generator/./default.properties
propel > sql-template:
[propel-sql] Processing: schema.xml
[PHP Error] DOMDocument::save(/var/www/propel/schema-transformed.xml): failed to open stream: Permission denied [line 448 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::load(): Start tag expected, '<' not found in /var/www/propel/schema-transformed.xml, line: 2 [line 452 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::schemaValidate(): The document has no document element. [line 459 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
Execution of target "sql-template" failed for the following reason: /usr/share/php/data/propel_generator/build-propel.xml:198:1: XML schema file (/var/www/propel/schema-transformed.xml) does not validate. See warnings above for reasons validation failed (make sure error_reporting is set to show E_WARNING if you don't see any).
[phingcall] /usr/share/php/data/propel_generator/build-propel.xml:198:1: XML schema file (/var/www/propel/schema-transformed.xml) does not validate. See warnings above for reasons validation failed (make sure error_reporting is set to show E_WARNING if you don't see any).
[phingcall] Calling Buildfile '/usr/share/php/data/propel_generator/build-propel.xml' with target 'om'
[property] Loading /usr/share/php/data/propel_generator/./build.properties
[property] Loading /usr/share/php/data/propel_generator/./default.properties
propel > check-run-only-on-schema-change:
propel > om-check:
propel > mysqli-check:
propel > om:
[echo] +------------------------------------------+
[echo] | |
[echo] | Generating Peer-based Object Model for |
[echo] | YOUR Propel project! |
[echo] | |
[echo] +------------------------------------------+
[phingcall] Calling Buildfile '/usr/share/php/data/propel_generator/build-propel.xml' with target 'om-template'
[property] Loading /usr/share/php/data/propel_generator/./build.properties
[property] Loading /usr/share/php/data/propel_generator/./default.properties
propel > om-template:
[propel-om] Processing: schema.xml
[PHP Error] DOMDocument::load(): Attribute required redefined in /var/www/propel/schema.xml, line: 5 [line 429 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::load(): Specification mandate value for attribute name in /var/www/propel/schema.xml, line: 25 [line 429 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::load(): attributes construct error in /var/www/propel/schema.xml, line: 25 [line 429 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::load(): Couldn't find end of Start Tag column line 25 in /var/www/propel/schema.xml, line: 25 [line 429 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::save(/var/www/propel/schema-transformed.xml): failed to open stream: Permission denied [line 448 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::load(): Start tag expected, '<' not found in /var/www/propel/schema-transformed.xml, line: 2 [line 452 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::schemaValidate(): The document has no document element. [line 459 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
Execution of target "om-template" failed for the following reason: /usr/share/php/data/propel_generator/build-propel.xml:477:1: XML schema file (/var/www/propel/schema-transformed.xml) does not validate. See warnings above for reasons validation failed (make sure error_reporting is set to show E_WARNING if you don't see any).
[phingcall] /usr/share/php/data/propel_generator/build-propel.xml:477:1: XML schema file (/var/www/propel/schema-transformed.xml) does not validate. See warnings above for reasons validation failed (make sure error_reporting is set to show E_WARNING if you don't see any).
[phingcall] Calling Buildfile '/usr/share/php/data/propel_generator/build-propel.xml' with target 'convert-conf'
[property] Loading /usr/share/php/data/propel_generator/./build.properties
[property] Loading /usr/share/php/data/propel_generator/./default.properties
propel > convert-conf:
[echo] +------------------------------------------+
[echo] | |
[echo] | Converting runtime config file to an |
[echo] | array dump for improved performance. |
[echo] | |
[echo] +------------------------------------------+
[echo] Output file: userManagment-conf.php
[echo] XMLFile: /var/www/propel//runtime-conf.xml
[propel-convert-conf] Processing: schema.xml
[PHP Error] DOMDocument::load(): Attribute required redefined in /var/www/propel/schema.xml, line: 5 [line 429 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::load(): Specification mandate value for attribute name in /var/www/propel/schema.xml, line: 25 [line 429 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::load(): attributes construct error in /var/www/propel/schema.xml, line: 25 [line 429 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::load(): Couldn't find end of Start Tag column line 25 in /var/www/propel/schema.xml, line: 25 [line 429 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::save(/var/www/propel/schema-transformed.xml): failed to open stream: Permission denied [line 448 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::load(): Start tag expected, '<' not found in /var/www/propel/schema-transformed.xml, line: 2 [line 452 of /usr/share/php/propel/phing/AbstractPropelDataModelTask.php]
[PHP Error] DOMDocument::load(): Start tag expected, '<' not found in /var/www/propel/schema-transformed.xml, line: 2 [line 102 of /usr/share/php/propel/engine/database/transform/XmlToAppData.php]
Execution of target "convert-conf" failed for the following reason: /var/www/propel/schema-transformed.xml:2:1: Invalid document end
[phingcall] /var/www/propel/schema-transformed.xml:2:1: Invalid document end
BUILD FINISHED
Total time: 0.9722 seconds
Woran der Fehler liegt kann ich leider nicht sagen, ich vermute dass vielleicht das propel mit php irgendwie nicht zusammen spielt.
Wäre super wenn mir jemand helfen kann.
lg Darian
Zuletzt bearbeitet: