Recent content by Mika_M

  1. M

    UTF-8 URL encoding with PHP 8.2 is broken

    Final solution (until I find yet another problem and change my mind with this): /src/vendor/symfony/dom-crawler/Crawler.php line 196 $content = htmlspecialchars_decode(htmlentities($content, ENT_COMPAT, 'UTF-8'), ENT_QUOTES); line 204 @$dom->loadHTML(mb_encode_numericentity($content, [0x80...
  2. M

    UTF-8 URL encoding with PHP 8.2 is broken

    Well, that worked with PHP 8.1 but not so well with 8.2. After some more research, my solution would be this: /src/vendor/symfony/dom-crawler/Crawler.php line 196 $content = htmlspecialchars_decode(htmlentities($content, ENT_COMPAT, 'UTF-8'), ENT_QUOTES); That older function...
  3. M

    UTF-8 URL encoding with PHP 8.2 is broken

    I found one difference with Xenforo versions that affects this. /src/vendor/symfony/dom-crawler/Crawler.php line 196 Xenforo 2.2.11: $content = mb_convert_encoding($content, 'HTML-ENTITIES', $charset); Xenforo 2.2.15: $content = htmlspecialchars_decode(iconv('UTF-8', 'ISO-8859-1'...
  4. M

    UTF-8 URL encoding with PHP 8.2 is broken

    It was the solution for that problem, but this is not the same bug. That earlier bug threw nasty errors to user if URL itself contained special characters. This time there are no errors in the url itself, but the unfurl preview special characters are broken.
  5. M

    UTF-8 URL encoding with PHP 8.2 is broken

    We did not see this bug on our forum when running Xenforo 2.2.11 with PHP 8.0 or 8.1. Now with 2.2.15 we see this bug and switching PHP between 8.0 - 8.1 - 8.2 makes absolutely no difference. 7.x versions we do not have available now and I really don't think they should be needed.
  6. M

    UTF-8 URL encoding with PHP 8.2 is broken

    Interesting. On my device I see this without any character errors.
  7. M

    UTF-8 URL encoding with PHP 8.2 is broken

    But why is this very forum free of this issue then? In this post developer states that it is not a bug, so what is it then?
  8. M

    UTF-8 URL encoding with PHP 8.2 is broken

    Similar problems in here after upgrading 2.2.11 -> 2.2.15. Tried downgrading to PHP 8.1 and 8.0 and disabling all addons. No help from these. Still, when I try the same link in here it works fine as can be seen here...
  9. M

    XF 2.2 iOS PWA text selection problems

    I edited some clarification to my question. Selection handles are not stuck, but trying to adjust selection results in random things like selecting next row or scrolling page up or down or something else, making it impossible to actually select any text.
  10. M

    XF 2.2 iOS PWA text selection problems

    This is true. However, this problem can only be seen when opening forum via PWA. When user goes straight to Safari browser and opens forum, there are no problems with text selection. This bugs me as I can't figure out what is different with PWA since it is indeed using the same engine as Safari...
  11. M

    XF 2.2 iOS PWA text selection problems

    All of this is Safari related, I don't think you can use any other browsers with iOS and PWA?
  12. M

    XF 2.2 iOS PWA text selection problems

    Some users are reporting strange problems with PWA on iOS and iPadOS. When they want to select a part of a post to quote it in their reply, they are unable to do so. They can select a word but then they are unable to adjust the selection with those blue little handles, dragging them will result...
  13. M

    XF 2.2 How to properly delete users via PHP?

    Something is still missing perhaps? This does work, user(s) get deleted, but it throws server error: ErrorException: Job XF:SearchUserChange: [E_DEPRECATED] strlen(): Passing null to parameter #1 ($string) of type string is deprecated src\XF\Search\Source\MySqlFt.php:217
  14. M

    XF 2.2 How to properly delete users via PHP?

    Thank you! That was easier than I thought it would be. :D
  15. M

    XF 2.2 How to properly delete users via PHP?

    I'm trying to make a small addon to automatically delete users which have not visited in last 2 years. $finder = \XF::finder('XF:User'); $users = $finder->where('last_activity', '<=', time() - 2 * 31556926)->fetch(); After retrieving users, what would be the right and proper way to delete...
Top Bottom