Hi i created a product with your same name Kharkiv – Stuttgart try to order and the message i got back is well formatted no HTML ..
https://ibb.co/zxt5SWm
did you have the last version of the plugin ?
in the first page of plugin options check :
( in my test its turned off )
Strip Html Tags in all notification messages
if the switch is active, all notification messages will keep any HTML tags if present.
if turned off (default and suggested) all html tags will be removed in the masseges.
( Telegram can’t render HTML ) This setting affects globally
Let me know if you fix the problem !!
Thread Starter
specon
(@specon)
Yes, version is latest, HTML tags turned off too 🙁
I can’t emulate the bug so i can’t help you from my side
but if you can access by ftp your plugin directory you can go to
/wp-content/plugins/notification-for-telegram/include/tnfunction.php
and try to add at line 360 ( before the ” foreach ($users as $user)” LOOP)
this new line:
$messaggio = html_entity_decode($messaggio, ENT_QUOTES, ‘UTF-8’);
save the file to the server
do your test and let me know if it works !!
Thread Starter
specon
(@specon)
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Global error on site after i do that ))) I removed the string and site will works ok
I dont knwo you php skills anyway did you copy all the line including th3 “;” at the end of the line :
$messaggio = html_entity_decode($messaggio, ENT_QUOTES, ‘UTF-8’);
I added the line i suggest you for testing with no Global errors
Thread Starter
specon
(@specon)
https://c2n.me/4kgWpn0
There has been a critical error on this website.
Error after i do this. After removing – site works OK.
-
This reply was modified 8 months, 1 week ago by specon.
Can you please give me the log of the error ” critical error ” its not enough for me to debug
thx
Thread Starter
specon
(@specon)
Heh, i enabled debug and see problem
$messaggio = html_entity_decode($messaggio, ENT_QUOTES, ‘UTF-8’);
‘UTF-8’ your brackets are different
Thread Starter
specon
(@specon)
$messaggio = html_entity_decode($messaggio, ENT_QUOTES, ‘UTF-8’);
Correct and work. What now?
And a couple of future problems are still visible:
[17-Feb-2024 07:15:37 UTC] PHP Deprecated: Creation of dynamic property nftb_TelegramNotify::$telegram_notify_option is deprecated in /home/admin/web/multibus24.com/public_html/wp-content/plugins/notification-for-telegram/include/nftb_optionpage.php on line 35
[17-Feb-2024 07:15:37 UTC] PHP Deprecated: Creation of dynamic property nftb_TelegramNotify::$telegram_notify_option is deprecated in /home/admin/web/multibus24.com/public_html/wp-content/plugins/notification-for-telegram/include/nftb_optionpage.php on line 35
Disable Debug … to hide de warnings … they are not errors just warnings !!
So please confirm WE fix the Convert HTML entities problem with
The line:
$messaggio = html_entity_decode($messaggio, ENT_QUOTES, ‘UTF-8’);
I insert the $messaggio = html_entity_decode($messaggio, ENT_QUOTES, ‘UTF-8’);
in the last update 3.3.1
Thread Starter
specon
(@specon)
Im tested and now all is ok, thank you!