Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpBB 3.2 and Class 'Patchwork\\Utf8\\Bootup' not found #19

Closed
C4K3 opened this issue Jan 7, 2017 · 5 comments
Closed

phpBB 3.2 and Class 'Patchwork\\Utf8\\Bootup' not found #19

C4K3 opened this issue Jan 7, 2017 · 5 comments

Comments

@C4K3
Copy link
Contributor

C4K3 commented Jan 7, 2017

So with phpBB 3.2 you get the error Class 'Patchwork\\Utf8\\Bootup' not found. This is manifest by a mediawiki error that says Exception encountered, of type "Exception" if ShowExceptionDetails is false.

I'll preface this by saying I'm not an expert on composer or php packaging. What I think is happening is that since Auth_phpbb.php includes phpBB/includes/utf/utf_tools.php (line 689), and that file uses something from Patchwork\\Utf8\\Bootup. patchwork/utf8 is included in phpBB's composer.json, but not in mediawiki's composer.json. So I assume Auth_phpbb runs in mediawiki's context, and so only autoloads composer packages listed in mediawiki's composer.json, and so the utf_tools.php file can't find the Patchwork package, leading to the error.

I solved it by adding the patchwork/utf8 package found in phpBB/composer.json to mediawiki's composer.json and ran composer update, and then everything started working. This should however not be necessary from a user perspective.

Edit 2017-01-08: Clarified my hypothesis.

@Digitalroot
Copy link
Member

I have not done any work to get the plugin to work via composer. I am intrigued by the idea

@karimcambridge
Copy link

Having this same issue.

@NymphetamineRx
Copy link

I'm also experiencing this issue following the phpBB 3.2 update.

@C4K3 : How easy is it do what you said you had to do? Consider me as someone who can follow step by step instructions, but doesn't have the php knowledge to figure these things out myself.

@C4K3
Copy link
Contributor Author

C4K3 commented Jan 17, 2017

Edit: This problem has been fixed in release 3.3.0. There is no reason to use the following fix anymore.

@AzhureRx It's not too hard, the hardest part should be to get composer installed. Check if it's installed first (look for a composer.phar file, or just run composer --version on the server.) If it's not installed, google how to install it for your distro, or alternatively use https://getcomposer.org/download/

Then open your phpBB/composer.json file, and look for the line that begins with "patchwork/utf8", copy that line into the mediawiki/composer.json file, under the same section (i.e. below the "require": { line.) Then inside the mediawiki directory, run composer update (or php composer.phar update depending on how you installed composer.)

C4K3 added a commit to C4K3/MediaWiki_PHPBB_Auth that referenced this issue Jan 17, 2017
@NymphetamineRx
Copy link

@C4K3 You are a god! This fixed everything for me. Thank you so much for your help. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants