[Resolved] [Plugin: Crayon Syntax Highlighter] AJAX functions fail on XAMPP: Incorrect arguments for 'wp-l
Thanks for the great plugin!
I’ve found an issue with the AJAX functions on the Crayon Admin page when updating from Crayon 1.12 to 1.13 and running on XAMPP.
The sample code display and list of posts give
Incorrect arguments for 'wp-load'when using XAMPP. Unix-type environments work OK.
The cause seems to be the
crayon_is_path_url()test added to
On Unix-type systems a relative path to the file within the server’s file system is saved in the
[wp-load]item in the
On Windows this path is absolute and
crayon_is_path_url()returns true as the path contains a scheme (in my case “C” as XAMPP is on my C: drive).
As a workaround I commented out the call to
- The topic ‘[Resolved] [Plugin: Crayon Syntax Highlighter] AJAX functions fail on XAMPP: Incorrect arguments for 'wp-l’ is closed to new replies.