Topic on Project:Support desk

Install Problem - binary in php code (question marks)

9
Valirius (talkcontribs)

I don't know how to name the problem correctly

after installation, I get this instead of a main page (and others too)

�����[�r�6��;z ��{�ݚ����U,m��qӵ]�v�w���@$$1���-+if�����I�9��?$�Qڦ;��i-�8~�������O��߿���!����7v���k��������z�=&y<�y"�X��=O��Cr�C����Y0���罾|��x-(7����ct��S>��-[���A�%��� ���M�p(����lR���Ϗ��?}�{�MG/R�o_�@�������]���ܨ�2���tr��Rx�+���k�9�F�y�^�y&��7�%�p�u�p2��D�f|jG�&��8�)V���4<�i0�߽$�$�c�wY,�G��^6ʴ���l�d Rx�>0�>��;Wx ��H���O���U�������m*ÿ����{q��l�{���Aݿ8;Uq ����X�Q�%�O8�x^��"�A���� $r-�����趱�������ߩ�K\߼����Yz.�"����w,/s�{���)��W:/�(m[p.`��8p{���`��HLi��Z��X�I�J�R�%�j�ۉ܇���4���v�����V;���!�.n����� 5S��F����"���̓����y�io&����ɒ� ��6��� J���n+�>��Z;?��7��PM�����W���$�

if I refresh the page through ctrl + f5, then this text changes slightly, but the essence is the same))

Encoding in the database: Binary

I do not understand what could be the problem. Other sites on this php are shown normally

Bawolff (talkcontribs)
Valirius (talkcontribs)

checked different browsers. Indeed, there is a problem in chromium, but there is no in firefox

Valirius (talkcontribs)

No effect. Nothing changes (((

Can you tell me how to debug the cause? Maybe there is some possibility of error output?

It seems to me that the system itself does not think that it has errors.

Valirius (talkcontribs)

found the same problem here ... I will continue to look for a solution. Maybe you should really go back through the versions

Topic:W09vaeopnglff54t

Peculiar Investor (talkcontribs)
Johnywhy (talkcontribs)

the fix:

It is needed to comment the following line in the includes/MediaWiki.php file:

$response->header( 'Content-Encoding: identity' );

https://www.mediawiki.org/wiki/Topic:Vzxi8uroe2eo23gk

Peculiar Investor (talkcontribs)

There have been reports that this works. However that hasn’t been confirmed by the MediaWiki developers. The problem has been reported.

Knomanii (talkcontribs)

I just upgraded to MW 1.35.1 and encountered this issue but only when I try to access the site on mobile devices (even if I use the desktop version on the mobile device).

Before enabling $wgDisableOutputCompression, mobile devices were getting the error, "this site can't be reached (ERR_INVALID_RESPONSE)" when they clicked the Login button (Special:UserLogin).

After enabling $wgDisableOutputCompression, all browsers started encountering a page filled with code like in OP's initial post.

I was only able to get it to work normally on both mobile and desktop after both enabling $wgDisableOutputCompression AND the patch @Johnywhy mentioned above (commenting out the line in includes/MediaWiki.php).

Upon applying BOTH of those changes (neither worked on their own), my wiki seems to be behaving normally now on both mobile and desktop browsers.

For anyone else encountering this issue, I'd recommend BOTH enabling $wgDisableOutputCompression AND applying the includes/MediaWiki.php patch @Johnywhy listed above.

Reply to "Install Problem - binary in php code (question marks)"