## advanced custom fields – Update ACF 5.10.2 to ACF 6.0

Question

I am updating ACF from 5.10.2 to 6.0.6 , I am getting this error :

Notice: acf_get_value was called incorrectly. Advanced Custom Fields PRO - We've detected one or more calls to retrieve ACF field values before ACF has been initialized. This is not supported and can result in malformed or missing data.


I have tried many methods to solve the problem but none of them has worked :
For example : changing get_field(‘qsef’,’options’) and get_field(‘rfr’,’option’) to get_option(‘fezf’);
in setup.php
and changing for example

In setup.php
replacing :
to