Accelerated-mobile-pages: The amp menu encoding becomes XXX

Created on 6 Jul 2019  路  11Comments  路  Source: ahmedkaludi/accelerated-mobile-pages

I am facing a problem with the encoding for the AMP menu and the amp page itself.
I have uploaded 2 screenshots to explain more.

A while ago, when i was using php 7.2 i was able to solve the problem by installing mbstring extension, but when i upgraded to php.7.3 and enabling mbstring again, it didn't work anymore.

Can you please help me?

Capture
Capture2

HIGH] bug

All 11 comments

@khaderhan This is strange, are you sure mbstring is enabled?
Can you please double check?
If it is not working then i'll dig-deep and check why it is not working.
Thank you

@MohammedKaludi It is enabled, its so weird. Check the phpinfo report: http://pnn.ps/khader.php

Have you downgraded to 7.2.19? https://take.ms/Dgurz

@MohammedKaludi It is back now php7.3, i was just trying to go back to the old version to make the menu work again, but it is not working at all now haha :smile:

Thank you for the info, I'll check the issue.

I'll install php 7.3, test and check why the strings are not converting.

I'll let you know if I have any questions or need further information on this issue.

Sounds good. And thank you so much for the extreme fast response, and thank you for the great efforts you have done on this great plugin. Best of luck. And looking forward to hearing from you.

@khaderhan
There are some users who told us the menu is showing weird characters and most of the times it was fixed when there enable mbstring extension and we know you already knows about it but still, will you please follow this tutorial - https://ampforwp.com/tutorials/article/troubleshooting-the-problems-with-the-menu-navigation/ and let us know whether your issue is fixed or not.

And also will you please add this code in our main file and tell us what it is showing on your end.
var_dump( function_exists( 'mb_convert_encoding' ) );

So that we will check once and we can help you.

@Zabi09 Thank you for your response. I have checked all the steps and they are done as well.
I have added the var_dump code, and this is the outcome: bool(true)

@khaderhan
I have checked your website and you are currently using PHP version 7.3.6 and now also it is showing proper menu - https://prnt.sc/obyb0w
Will you please tell us how you have fixed it?

@Zabi09 Thank you for the follow up. What i have done is i recompiled the PHP7, and restarted the server and cleared the cloudflare cache while the restart was working. And everything went correct.
Hopefully this action will help other people if they face the same issue.

@khaderhan Thank you very much for your swift reply, yes this will help the other users as well.

I'm glad that your issue has been resolved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

carloosamarante picture carloosamarante  路  6Comments

HaripriyaHari picture HaripriyaHari  路  7Comments

daanishd picture daanishd  路  5Comments

chaselivingston picture chaselivingston  路  5Comments

ghost picture ghost  路  4Comments