Skip to content

Call to undefined method Punycode::useStd3() #7572

@sbulen

Description

@sbulen

Description

Fatal error: Uncaught Error: Call to undefined method Punycode::useStd3() in blah\blah\Sources\Subs-Compat.php:488 Stack trace: #0 blah\blah\Sources\Subs.php(8025): idn_to_ascii('localhost', 0, 1) #1 blah\blah\Sources\Subs.php(2439): iri_to_url('https://localho...') #2 blah\blah\Sources\Subs.php(3789): {closure}(Array, 'https://localho...', NULL, Array) #3 blah\blah\Sources\Subs.php(4320): parse_bbc('[url="http...', true, 'news0') #4 blah\blah\Sources\Subs.php(4526): setupThemeContext() #5 blah\blah\Sources\Subs.php(4169): template_header() #6 blah\blah\index.php(194): obExit(NULL, true, true) #7 {main} thrown in blah\blah\Sources\Subs-Compat.php on line 488

Fails under php 8.1, but works under php 7.4.

Steps to reproduce

  1. Get this error uninstalling a mod with lots of text replaces under php 8.1. Note I do not get this error under php 7.4. Nor on any hooks only mods.

Environment (complete as necessary)

  • Version/Git revision: Current GH
  • Database Type: MySQL
  • Database Version:8.0
  • PHP Version: 8.1.2

Additional information/references

Metadata

Metadata

Assignees

No one assigned

    Labels

    Charset/EncodingUTF8 & mb4 encoding related issues

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions