Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: require callback.php. No such file or directory in radl.php. Line 62. #1

Open
Mr-El opened this issue Aug 1, 2020 · 5 comments

Comments

@Mr-El
Copy link

Mr-El commented Aug 1, 2020

image

Help. I don't know what to do! Is the fix simple?

@brucbake07
Copy link

I am also running into this issue. Any resolution or advice on how to diagnose?

@brucbake07
Copy link

I may have a solution...at least the error is resolved. Note my edit to line 62 in the radl.php file.

I changed the path to DIR and removed the string 'rest-api-data-localizer-master' in the str_replace function...so the function does not look for that directory.

private static function autoloader( $class_name ) { if ( strpos( $class_name, 'RADL' ) === 0 ) { require __DIR__ . str_replace( '\\', '/', str_replace( '_', '-', str_replace( 'radl', '', strtolower( $class_name ) ) ) ) . '.php'; } }

@Mr-El
Copy link
Author

Mr-El commented Aug 4, 2020

Thank you! You just saved me from a project I've been working on. Experimenting between regular Vue and Vue combined with WordPress! If only I had more experience in PHP I would've resolved this issue myself! Can you do me a favor and make this a pull request for me? I'd do it myself but I don't want to take away your credit.

@brucbake07
Copy link

You're welcome, glad I could help you out. Hope the rest of the steps were pretty straight forward. I just got it working! (i think)

@sebastiancarlsson
Copy link

The plugin folder should be named rest-api-data-localizer not rest-api-data-localizer-master. If you change the name it will work.

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

No branches or pull requests

3 participants