Just to be sure, what version of ACF are you using. I’m assuming that it is ACF4 (the free version) because of the path you’ve given for the error. The file you’re referring to does not exist in ACF5.
The only way that you get an error on line 338 is calling the ACF function
the_field(). 338 is the last line of that function where the value is echoed. For some reason when ACF is attempting to get the value of the field it is causing a WP Error. In order to track down what’s causing the error you need to start by looking that the line in your template that’s causing the error.
Take a look at the page source of a page where the error happens. Look at the HTML that’s being generated before the error. Track down where that code is being generated in your template file. The call to
the_field() will be somewhere after that HTML is generated.
i use my all code like this :
<?php if( get_field('episodeupdate') ): ?>
<?php the_field('episodeupdate'); ?>
<?php endif; ?>
and i have plugin named ( IMDBI ) that get some information from external url and put in fields like this :
<?php imdbi('Poster'); ?>
is it possible to error from that plugin ?
because ( Field-Poster ) is picture and plugin get picture and save in media then print URL of that picture !
None of this information helps without knowing which specific field is causing the error as well as what type of field it is and why it might be generating the error. It is impossible to debug your error with the information you’re providing. The line of code in ACF is not the cause of the error, something else is. The place to start debugging is the line of code that calls this function and not the line that the error is generated on.
The topic ‘advanced-custom-fields/core/api.php on line 338’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!