Topic on Skin talk:Poncho

Jump to navigation Jump to search

Skin fails to load on MW 1.32

4
Noloader (talkcontribs)

I'm testing Poncho on the Crypto++ wiki. The skin fails to load with the message:

 Warning:  getimagesize(//www.cryptopp.com/w/images/logo/Logo-Steel.png): failed to open stream: No such file or directory in /var/www/html/w/skins/Poncho/Poncho.php on line 38
 title="Visit the main page" href="/wiki/Main_Page" style="background-image: url("/w/images/logo/Logo-Steel.png");">Crypto++ Wiki
 Fatal error:  OOUI\Exception: OOUI\Theme::singleton was called with no singleton theme set. in /var/www/html/w/vendor/oojs/oojs-ui/php/Theme.php:31 Stack trace: #0 /var/www/html/w/vendor/oojs/oojs-ui/php/Element.php(242): OOUI\Theme::singleton() #1 /var/www/html/w/vendor/oojs/oojs-ui/php/Tag.php(462): OOUI\Element->toString() #2 /var/www/html/w/skins/Poncho/Poncho.php(29): OOUI\Tag->__toString() #3 /var/www/html/w/skins/Poncho/Poncho.phtml(12): PonchoTemplate->searchInput() #4 /var/www/html/w/skins/Poncho/Poncho.php(138): include('/var/www/html/w...') #5 /var/www/html/w/includes/skins/SkinTemplate.php(227): PonchoTemplate->execute() #6 /var/www/html/w/includes/OutputPage.php(2706): SkinTemplate->outputPage() #7 /var/www/html/w/includes/MediaWiki.php(867): OutputPage->output(true) #8 /var/www/html/w/includes/MediaWiki.php(879): MediaWiki->{closure}() #9 /var/www/html/w/includes/MediaWiki.php(517): MediaWiki->main() #10 /var/www/html/w/index.php(42): MediaWiki->run() #11 {main} in /var/www/html/w/vendor/oojs/oojs-ui/php/Tag.php on line 464
Sophivorus (talkcontribs)

Thanks for the report. I just submitted a patch that should fix this. Please download the latest version (1.8) and reopen this topic if the issue persists. Cheers!

Noloader (talkcontribs)

Thanks @Sophivorus.

I'm still seeing the issue with Poncho's GitHub master.

This may have something to do with it:

#grep cryptopp.com LocalSettings.php

$wgServer           = '//www.cryptopp.com';
$wgEmergencyContact = "noreply@cryptopp.com";
$wgPasswordSender   = "noreply@cryptopp.com";

The $wgServer and forward slashes of '//www.cryptopp.com' means it is protocol agnostic (iirc). Mediawiki serves from HTTP or HTTPS, depending on how the client connects.

I tried to drop an image of the browser window !here!, but Mediawiki ignores my drop/upload. Sorry about that.

This also may have something to do with it: OOUI\Exception occurs when try to insert "https://w" to page.

Sorry I cannot help more. I'm a C/C++ guy. I know little to nothing about web programming. All I am is an administrator who tries to ensure users have good quality documentation.

Our VM is CentOS 7. Cent provides antique software so we have Software Collections (SCL) enabled. That gets us PHP 7.1 and Apache 2.4. We run Mediawiki 1.32.4 from the mw tarball.

And sorry about reopening the report. I could not comment otherwise. My email is noloader, gmail if you would like to have sidebar conversation.

Sophivorus (talkcontribs)

Hi! I just made a fresh MediaWiki 1.32.4 install with Poncho 1.8 and had no trouble. I made $wgServer protocol agnostic and still had no trouble.

GitHub is a mirror of the official Gerrit repo. Are you sure GitHub had already updated to Poncho 1.8 when you cloned it? Can you double-check your Poncho version from Special:Version and let me know?

Reply to "Skin fails to load on MW 1.32"