Cannot save file due to JS error.
-
This is a really strange error. When I include either of the following snippets in my functions.php file (or any php file), I get a JS error (POST https://dev5.pixelmark.net/wp-admin/admin-ajax.php 404 (Not Found)).
This is the first code that causes that JS error.
require_once (ABSPATH.'/wp-admin/includes/media.php'); require_once (ABSPATH.'/wp-admin/includes/file.php'); require_once (ABSPATH.'/wp-admin/includes/image.php');
This is the second piece of code that causes that JS error, even if it’s commented out.
file_put_contents($file, $current);
I tried taking a look at ace.js, but it’s minified. I’m not sure if that’s the main JS file, but if you point me to the right file, I’d be glad to try and troubleshoot. I know the error must be happening somewhere where the JS uses the admin-ajax.php localized variable.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Cannot save file due to JS error.’ is closed to new replies.