rest-api-data-localizer
rest-api-data-localizer copied to clipboard
Warning: require callback.php. No such file or directory in radl.php. Line 62.

Help. I don't know what to do! Is the fix simple?
I am also running into this issue. Any resolution or advice on how to diagnose?
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'; } }
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.
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)
The plugin folder should be named rest-api-data-localizer not rest-api-data-localizer-master. If you change the name it will work.