Wikimedia Developer Support

Getting 'WrappedString\WrappedString' not found


Fatal error : Class ‘WrappedString\WrappedString’ not found in /opt/mediawiki/mediawiki-1.26.3/includes/resourceloader/ResourceLoader.php on line 1392

I am sure that i have that package installed in my composer.json

-bash-4.2# composer require wikimedia/wrappedstring

Do not run Composer as root/super user! See for details

Using version ^3.0 for wikimedia/wrappedstring

./composer.json has been updated

Loading composer repositories with package information

Updating dependencies (including require-dev)

Package operations: 1 install, 0 updates, 0 removals

  • Installing wikimedia/wrappedstring (v3.0.1): Loading from cache

Writing lock file

Generating autoload files

After I installed, the composer.json updated with the installed package,


“autoload”: {

"classmap": [





“require”: {

"psr/log": "^1.1",

"composer/semver": "^1.4",

"wikimedia/at-ease": "^1.2",

"wikimedia/ip-set": "1.0.1",

"wikimedia/utfnormal": "^2.0",

"wikimedia/assert": "^0.3.0",

"liuggio/statsd-php-client": "1.0.18",

"wikimedia/wrappedstring": "^3.0"



I restarted apache but still I am getting the same. I am using mediawiki 1.26


Mediawiki 1.26 is no longer supported. Please upgrade to a supported MediaWiki version


Wrong file permissions for /opt/mediawiki/mediawiki-1.26.3/vendor/autoload.php, maybe? We don’t have nice error handling for that, even in master.