Page 1 of 1

Error installing extension (extension_directory)

Posted: Wed Aug 15, 2018 8:47 pm
by WHK102
When installin g an extension, phpbb3.2.2 says: Fatal error: Call to a member function extension_directory() on a non-object in /home/foo/public_html/phpbb/extension/base.php on line 131

base.php on line 131 says:

Code: Select all

// Only have the finder search in this extension path directory
    $migrations = $this->extension_finder
The $this->extension_finder is null. I try test the file writing a echo for each function:

Code: Select all

    public function __construct(ContainerInterface $container, \phpbb\finder $extension_finder, \phpbb\db\migrator $migrator, $extension_name, $extension_path)
        echo 0;
    public function is_enableable()
    echo 1;
    ... etc.
The result is: 1125, never use the constructor, the $this->extension_finder is never defined.

What should happen is that phpbb indicates that there is an error in the extension but not that it throws a blank page or a core error of phpbb3. How can I know where the error is in the extension? It is a personalized extension ( ).

Re: Error installing extension (extension_directory)

Posted: Wed Aug 15, 2018 9:16 pm
by WHK102
Solve the problem remove the __construct() from ext.php on custom extension. Please, add a validation for same errors.