Hello! I have installed ACF, the Flexible Field and the Repeater. Have followed the instructions. When entering the “Thank You” page I get “Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘ee_course_materials_area_thank_you_page’ not found or invalid function name in /home/www/test.kamina.dk/wp2_ee4/wp-includes/plugin.php on line 470
Seeing that the error is there I guess that I have places the snippet the correct place.
What to do?
If so, you’ll want to make sure that you have Event Espresso 4.3 or higher. The AHEE__thank_you_page_registration_details_template__after_registration_table_row action hook (which is parameter 1 in your error) was added in Event Espresso 4.3.
Hello!
Thank you for getting back that quick.
Yes I went through the tutorial more than once.
After 2 hours I found an error in your snippet code.
I´m new to coding, ACF and wordpress and it would save me a lot of time if the example codes are working. Thought I did something wrong.
In line 1 of the snippet it says:
function ee_course_materials_section_thank_you_page($registration)
It worked for me after changing the word “session” to “area” as in the last line. (ee_course_materials_area_thank_you_page)
Does that make sense?
I guess it would be helpful to others to mention in the tutorial, that
the “images return value” has to be URL (not the default object).
The support post ‘ERROR Add a Course Curriculum Section to the “Thank You” Page Using ACF’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.