[SOLVED] Fatal error when enabling an extension

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
User avatar
Jessica.
Registered User
Posts: 144
Joined: Wed Feb 09, 2011 8:17 pm
Location: Pennsylvania, USA
Contact:

[SOLVED] Fatal error when enabling an extension

Post by Jessica. »

Apologizes in advance if this is the wrong place or I'm not supposed to ask for support..but I have 3.1 a-2 installed on a test board..

I installed an extension and I get this error when trying to enable it:

Code: Select all

Fatal error: Call to undefined method phpbb\extension\metadata_manager::validate_dir() in /home/jesschen/public_html/ascraeus/includes/acp/acp_extensions.php on line 91
I asked in the extension's topic on phpbb.com and was told to ask here on Area 51...so any idea how to fix this? For some reason, I was able to enable other extensions beforehand....
Last edited by Jessica. on Sat Dec 21, 2013 8:14 pm, edited 1 time in total.

User avatar
VSE
Extension Customisations
Extension Customisations
Posts: 674
Joined: Mon Mar 08, 2010 9:18 am

Re: Fatal error when enabling an extension

Post by VSE »

Actually, the problem is you should be using the latest version of the phbbb-dev branch anytime you are trying extensions.

3.1.0-a2 is already outta date, and my extensions are up to date with the dev branch.
Has an irascible disposition.

User avatar
Jessica.
Registered User
Posts: 144
Joined: Wed Feb 09, 2011 8:17 pm
Location: Pennsylvania, USA
Contact:

Re: Fatal error when enabling an extension

Post by Jessica. »

Okay.

Got it to work after updating to latest phpBB dev branch. Thanks.

User avatar
Jessica.
Registered User
Posts: 144
Joined: Wed Feb 09, 2011 8:17 pm
Location: Pennsylvania, USA
Contact:

Re: [SOLVED] Fatal error when enabling an extension

Post by Jessica. »

New issue:
When creating a new topic I get

Code: Select all

Catchable fatal error: Argument 6 passed to phpbb\plupload\plupload::__construct() must be an instance of phpbb\mimetype\guesser, none given, called in /home/jesschen/public_html/ascraeus/cache/container_dotslash.php on line 1564 and defined in /home/jesschen/public_html/ascraeus/phpbb/plupload/plupload.php on line 73
Not sure what happened :/

User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 160
Joined: Thu Sep 09, 2010 11:36 am
Location: Munich, Germany

Re: [SOLVED] Fatal error when enabling an extension

Post by Marc »

Purge your cache and try again.

User avatar
Jessica.
Registered User
Posts: 144
Joined: Wed Feb 09, 2011 8:17 pm
Location: Pennsylvania, USA
Contact:

Re: [SOLVED] Fatal error when enabling an extension

Post by Jessica. »

Did that, error still remains

User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 160
Joined: Thu Sep 09, 2010 11:36 am
Location: Munich, Germany

Re: [SOLVED] Fatal error when enabling an extension

Post by Marc »

Make sure you have up-to-date files in the config folder and that the folder phpbb/mimetype/ including content exists.

..::Frans::..
Registered User
Posts: 27
Joined: Wed Mar 01, 2006 8:20 am

Re: [SOLVED] Fatal error when enabling an extension

Post by ..::Frans::.. »

Make sure the extension __construct calls all the correct objectinstances...

Post Reply