[Gelöst] Extension Pre Validator Fehlermeldung

In diesem Forum gibt es Starthilfe zum neuen Extension-System von phpBB 3.1/3.2. Fragen zur Entwicklung von Extensions und zur Konvertierung von phpBB 3.0.x MODs sind ebenfalls willkommen.
Antworten
mohe
Mitglied
Beiträge: 2
Registriert: 23.05.2016 17:05

[Gelöst] Extension Pre Validator Fehlermeldung

Beitrag von mohe »

Hi!

Wenn ich dem Extension Pre Validator ausführe, kommen ganz normal die Fehler und Warnungen, aber davor steht eine Fehlermeldung.

Code: Alles auswählen

Befehl: ./src/EPV.php run --dir ../ext/mohe/verifyingamename/
Ausgabe:

Running Extension Pre Validator on directory ../ext/mohe/verifyingamename/.
Running tests.
PHP Notice:  Undefined offset: 0 in /var/www/html/forum/epv/src/Tests/Tests/epv_test_validate_php_functions.php on line 224
PHP Stack trace:
PHP   1. {main}() /var/www/html/forum/epv/src/EPV.php:0
PHP   2. Symfony\Component\Console\Application->run() /var/www/html/forum/epv/src/EPV.php:30
PHP   3. Symfony\Component\Console\Application->doRun() /var/www/html/forum/epv/vendor/symfony/console/Application.php:123
PHP   4. Symfony\Component\Console\Application->doRunCommand() /var/www/html/forum/epv/vendor/symfony/console/Application.php:192
PHP   5. Symfony\Component\Console\Command\Command->run() /var/www/html/forum/epv/vendor/symfony/console/Application.php:844
PHP   6. Phpbb\Epv\Command\ValidateCommand->execute() /var/www/html/forum/epv/vendor/symfony/console/Command/Command.php:259
PHP   7. Phpbb\Epv\Tests\TestStartup->__construct() /var/www/html/forum/epv/src/Command/ValidateCommand.php:72
PHP   8. Phpbb\Epv\Tests\TestStartup->runTests() /var/www/html/forum/epv/src/Tests/TestStartup.php:62
PHP   9. Phpbb\Epv\Tests\TestRunner->runTests() /var/www/html/forum/epv/src/Tests/TestStartup.php:125
PHP  10. Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->validateFile() /var/www/html/forum/epv/src/Tests/TestRunner.php:94
PHP  11. Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->validate() /var/www/html/forum/epv/src/Tests/Tests/epv_test_validate_php_functions.php:121
PHP  12. Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNodes() /var/www/html/forum/epv/src/Tests/Tests/epv_test_validate_php_functions.php:148
PHP Notice:  Undefined offset: 0 in /var/www/html/forum/epv/src/Tests/Tests/epv_test_validate_php_functions.php on line 224
PHP Stack trace:
PHP   1. {main}() /var/www/html/forum/epv/src/EPV.php:0
PHP   2. Symfony\Component\Console\Application->run() /var/www/html/forum/epv/src/EPV.php:30
PHP   3. Symfony\Component\Console\Application->doRun() /var/www/html/forum/epv/vendor/symfony/console/Application.php:123
PHP   4. Symfony\Component\Console\Application->doRunCommand() /var/www/html/forum/epv/vendor/symfony/console/Application.php:192
PHP   5. Symfony\Component\Console\Command\Command->run() /var/www/html/forum/epv/vendor/symfony/console/Application.php:844
PHP   6. Phpbb\Epv\Command\ValidateCommand->execute() /var/www/html/forum/epv/vendor/symfony/console/Command/Command.php:259
PHP   7. Phpbb\Epv\Tests\TestStartup->__construct() /var/www/html/forum/epv/src/Command/ValidateCommand.php:72
PHP   8. Phpbb\Epv\Tests\TestStartup->runTests() /var/www/html/forum/epv/src/Tests/TestStartup.php:62
PHP   9. Phpbb\Epv\Tests\TestRunner->runTests() /var/www/html/forum/epv/src/Tests/TestStartup.php:125
PHP  10. Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->validateFile() /var/www/html/forum/epv/src/Tests/TestRunner.php:94
PHP  11. Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->validate() /var/www/html/forum/epv/src/Tests/Tests/epv_test_validate_php_functions.php:121
PHP  12. Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNodes() /var/www/html/forum/epv/src/Tests/Tests/epv_test_validate_php_functions.php:148

                                           
 Validation: FAILED                        
 Fatal: 0, Error: 1, Warning: 2, Notice: 0 
                                           

Test results for extension:
Error: Packaging structure doesn't meet the extension DB policies.
Warning: ***
Warning: ***
Die Warnungen unten (zensiert) verstehe ich ja, aber was bedeutet der

Code: Alles auswählen

PHP Notice:  Undefined offset
-Fehler?

P.S.: Kann man irgendwie diesen

Code: Alles auswählen

Error: Packaging structure doesn't meet the extension DB policies.
Fehler beheben?


mohe
Zuletzt geändert von mohe am 24.05.2016 17:29, insgesamt 1-mal geändert.
Benutzeravatar
gn#36
Ehrenadmin
Beiträge: 9313
Registriert: 01.10.2006 16:20
Wohnort: Ganz in der Nähe...
Kontaktdaten:

Re: Extension Pre Validator Fehlermeldung

Beitrag von gn#36 »

Die beiden Fehlermeldungen mit Stack Trace sind auf den ersten Blick Fehler im EPV selbst.

Anscheinend ist das was da in Zeile 224 ankommt kein Array, oder zumindest keins mit einem Index 0. Es wäre vermutlich möglich, dass das mit Fehlern in zwei Dateien zusammenhängt die zu prüfen sind, ich vermute mal das sind dann die Dateien, um die es auch in den Warnungen geht, wenn. Ungewöhnlich finde ich es aber schon.

Den Packaging Error bekommst du weg, indem du die Ordnerstruktur beim Test so erstellst, wie sie auch beim eingereichten Zipfile für die Extension Datenbank wäre. Also z.B. einen Ordner package erstellen in dem deine Ext dann unter package/mohe/verifyingamename/ liegt. Dann lässt du den EPV über den Ordner package/ laufen (hier darf nichts anderes drin sein als deine Ext).
Begegnungen mit dem Chaos sind fast unvermeidlich, Aber nicht katastrophal, solange man den Durchblick behält.
Übertreiben sollte man's im Forum aber nicht mit dem Chaos, denn da sollen ja andere durchblicken und nicht nur man selbst.
mohe
Mitglied
Beiträge: 2
Registriert: 23.05.2016 17:05

Re: Extension Pre Validator Fehlermeldung

Beitrag von mohe »

Vielen Dank für die sehr schnelle und komplett richtige Antwort!

Nachdem ich die Ordnerstruktur geändert habe und die beiden Dateien entfernt habe (da ich sie nicht mehr gebraucht habe), war kein Fehler mehr da!!!

mohe
Antworten

Zurück zu „Extension Bastelstube“