Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

v4: Include failed #32

Closed
msassmann opened this issue Jun 2, 2016 · 4 comments
Closed

v4: Include failed #32

msassmann opened this issue Jun 2, 2016 · 4 comments

Comments

@msassmann
Copy link

Warning: include_once(): Failed opening 'fields/acf-quiz_answer-v.php' for inclusion

$version is never passed to function via 'acf/register_fields' action

@elliotcondon
Copy link
Collaborator

Hi @msassmann

Thanks for the topic.

Yes, this param is never sent to the register_fields action, this is why the param is set as 4 by default:
https://github.com/elliotcondon/acf-field-type-template/blob/master/acf-FIELD_NAME.php#L71

Can you attach your code so I can see where the problem is coming from?

@msassmann
Copy link
Author

Hello!
I used the original code from the template. I made no changes (except renaming FIELD_NAME/FIELD_LABEL etc.).
It seems that $version is never set and hence the include failed.
Printing out $version inside the function shows that it's empty (don't know why).
Because I'm using the free version (v4) I just hardcoded the path and it's working.

Great work btw ;-)

@elliotcondon
Copy link
Collaborator

Thanks @msassmann

I've just fixed this issue, can you please download the latest files?

@msassmann
Copy link
Author

Thank you very much. Works great.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants