Support

Account

Home Forums ACF PRO Error 400 when change value "Show this field group if" Reply To: Error 400 when change value "Show this field group if"

  • The problem was caused by this
    File structure
    | +- PluginName
    | +- admin
    | +- admin.php
    | +- lib
    | +- advanced-custom-fields-pro/acf.php
    | +- acf.php
    | +- PluginName.php
    so on the PluginName.php I required admin.php and admin.php was requesting acf.php if the class acf doesn’t exist… nothing very fancy and acf was working but all the admin ajax actions made by acf where throwing error 400.

    So the solution was very easy; Just request (include) acf.php on the file PluginName.php instead of including acf on admin.php