• After last update i cant setup access for my CPT, in wp log see message “PHP Fatal error: Call to undefined function get_term_parents_list() in …/wp-content/plugins/advanced-access-manager/Application/Backend/Feature/Main/Post.php on line 170”

    • This topic was modified 7 years, 6 months ago by Konstantin X.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Noel

    (@noelalvarez)

    hi @xk8,

    Please try to clear your cache after the update. That usually clears issues right after the update.

    Thread Starter Konstantin X

    (@xk8)

    Hello @noelalvarez!

    What kind of cache? Its error in PHP file, i try to add debug command and it works, so no cache here …IMHO.

    Plugin Author AAM Plugin

    (@vasyltech)

    Hi @xk8,

    @noelalvarez that is NOT an issue with the cache.

    Seams like your WP version is below 4.8. I would have to make sure that the get_term_parents_list() function is not called for WordPress versions lower 4.8.

    On your end keep WordPress version up-to-date man. Reduces risk of any kind of security issues.

    Than you,
    Vasyl

    Plugin Author AAM Plugin

    (@vasyltech)

    Hi @xk8,

    Just want to let you know that this issue has been fixed. I’ve implemented compatibility with WP under version 4.8 for Post & Terms feature. You can get the latest version from here:
    https://downloads.wp.xz.cn/plugin/advanced-access-manager.zip

    Regards,
    Vasyl

    Thread Starter Konstantin X

    (@xk8)

    Hello @vasyltech!

    Yes WP version is 4.7, and autoupdate is disabled due to some used plug-ins, which sometimes get crash site after WP updating.

    Thank you very much!

    Thread Starter Konstantin X

    (@xk8)

    Hello @vasyltech!

    My WP version is 4.7.6.
    Install lates version of AAM, and see a similar error:

    “PHP Fatal error: Call to undefined function get_term_parents_list() in …/wp-content/plugins/advanced-access-manager/Application/Backend/Feature/Main/Post.php on line 223”

    Plugin Author AAM Plugin

    (@vasyltech)

    Hi @xk8,

    Have you tried the dev version that I’ve mentioned earlier. This should solve your problem.

    Keep me updated.

    Regards,
    Vasyl

    Thread Starter Konstantin X

    (@xk8)

    Hello @vasyltech!

    Yes, i use the latest version of plugin, the link to which You gave me. And the error still occurs.
    I see code and find version compare at line 202:
    version_compare($wp_version, '4.0') === -1
    But my version “4.7.6”, so this check fails. I changed “4.0” to “4.8”, and now the plugin seems to be working fine.

    Thank you very much again for your help.

    • This reply was modified 7 years, 6 months ago by Konstantin X.
    Plugin Author AAM Plugin

    (@vasyltech)

    @xk8,

    Sorry about that. I’ve updated the IF statement to check for 4.8.0 version. This is the version when the get_term_parents_list function was introduced. Download the dev version again please.

    Regards,
    Vasyl

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Call to undefined function get_term_parents_list()’ is closed to new replies.