• msebel

    (@msebel)


    Since Polylang 3.0.3 (or earlier, we switched from 2.9.x (2.9.5 I think).

    When using pll_languages_list() function, it crashes in admin-ajax and REST context (edit also in admin context):

    – PLL_Frontend::get_languages_list() in admin-ajax.php context
    – PLL_REST_Request::get_languages_list() in WP REST context
    – PLL_Admin::get_languages_list() in sole admin context like wp/admin/profile.php
    -> Is says method not found on object in both cases.

    Could this be solved in the next update or could I fix this myself somehow? The function is there but PLL()->model within it seems to load an object that doesn’t have the corresponding get_languages_list() method.

    • This topic was modified 4 years ago by msebel.
    • This topic was modified 4 years ago by msebel.
  • The topic ‘Crash when using pll_languages_list in ajax/rest context’ is closed to new replies.