Skip to content

Fatal error, Call to undefined method #142

Closed

Description

@StokerBBC

Today I ran the first DEV of my Reactions extension through Luke's Ext Check and got a Fatal error:
`Running Extension Pre Validator on directory ext.
Running tests.
PHP Fatal error: Uncaught Error: Call to undefined method PhpParser\Node\Expr\ArrayDimFetch::toString() in /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php:410
Stack trace:
#0 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(303): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->validateMethodCalls(Object(PhpParser\Node\Expr\Assign))
#1 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(316): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#2 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(312): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#3 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(312): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#4 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(312): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#5 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(312): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#6 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(312): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#7 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(256): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#8 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(157): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNodes(Array)
#9 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(130): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->validate(Object(Phpbb\Epv\Files\Type\PHPFile))
#10 /composer/epv/vendor/phpbb/epv/src/Tests/TestRunner.php(103): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->validateFile(Object(Phpbb\Epv\Files\Type\PHPFile))
#11 /composer/epv/vendor/phpbb/epv/src/Tests/TestStartup.php(125): Phpbb\Epv\Tests\TestRunner->runTests()
#12 /composer/epv/vendor/phpbb/epv/src/Tests/TestStartup.php(62): Phpbb\Epv\Tests\TestStartup->runTests(true)
#13 /composer/epv/vendor/phpbb/epv/src/Command/ValidateCommand.php(72): Phpbb\Epv\Tests\TestStartup->__construct(Object(Phpbb\Epv\Output\Output), 1, '/www/htdocs/w01...', false, NULL)
#14 /composer/epv/vendor/symfony/console/Command/Command.php(326): Phpbb\Epv\Command\ValidateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Phpbb\Epv\Output\Output))
#15 /composer/epv/vendor/symfony/console/Application.php(1098): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /composer/epv/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Phpbb\Epv\Command\ValidateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /composer/epv/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /composer/epv/vendor/phpbb/epv/src/EPV.php(30): Symfony\Component\Console\Application->run()
#19 {main}
thrown in /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php on line 410

Fatal error: Uncaught Error: Call to undefined method PhpParser\Node\Expr\ArrayDimFetch::toString() in /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php:410
Stack trace:
#0 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(303): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->validateMethodCalls(Object(PhpParser\Node\Expr\Assign))
#1 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(316): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#2 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(312): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#3 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(312): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#4 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(312): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#5 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(312): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#6 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(312): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#7 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(256): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNode(Array)
#8 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(157): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->parseNodes(Array)
#9 /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php(130): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->validate(Object(Phpbb\Epv\Files\Type\PHPFile))
#10 /composer/epv/vendor/phpbb/epv/src/Tests/TestRunner.php(103): Phpbb\Epv\Tests\Tests\epv_test_validate_php_functions->validateFile(Object(Phpbb\Epv\Files\Type\PHPFile))
#11 /composer/epv/vendor/phpbb/epv/src/Tests/TestStartup.php(125): Phpbb\Epv\Tests\TestRunner->runTests()
#12 /composer/epv/vendor/phpbb/epv/src/Tests/TestStartup.php(62): Phpbb\Epv\Tests\TestStartup->runTests(true)
#13 /composer/epv/vendor/phpbb/epv/src/Command/ValidateCommand.php(72): Phpbb\Epv\Tests\TestStartup->__construct(Object(Phpbb\Epv\Output\Output), 1, '/www/htdocs/w01...', false, NULL)
#14 /composer/epv/vendor/symfony/console/Command/Command.php(326): Phpbb\Epv\Command\ValidateCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Phpbb\Epv\Output\Output))
#15 /composer/epv/vendor/symfony/console/Application.php(1098): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /composer/epv/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand(Object(Phpbb\Epv\Command\ValidateCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /composer/epv/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /composer/epv/vendor/phpbb/epv/src/EPV.php(30): Symfony\Component\Console\Application->run()
#19 {main}
thrown in /composer/epv/vendor/phpbb/epv/src/Tests/Tests/epv_test_validate_php_functions.php on line 410`

Im not 100% sure, but very close, that it was line 553 in the acp_controller.php
Luke will attach the zip used. He has an exact copy which I no longer have

Activity

  1. LukeWCS commented on Nov 1, 2026

    @LukeWCS
    Contributor

    As discussed, here is the package saved by EC.

    phpBB_EPV_Issue_142.zip

  2. LukeWCS commented on Nov 2, 2026

    @LukeWCS
    Contributor

    For testing purposes, I incorporated #143 into my EC test environment and ran a check using the exact same extension ZIP file; errors, warnings, and informational messages were all displayed correctly. EPV is now capable of handling this specific scenario.

    Thanks, Matt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions