[Plugin: Crayon Syntax Highlighter] AJAX functions fail on XAMPP: Incorrect arguments for 'wp-l
-
Hi,
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 tocrayon_die_if_not_php()
inglobal.php
.On Unix-type systems a relative path to the file within the server’s file system is saved in the
[wp-load]
item in theCrayonSyntaxSettings
array.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
crayon_is_path_url()
.Thanks,
Andrew.
https://www.ads-software.com/extend/plugins/crayon-syntax-highlighter/
- The topic ‘[Plugin: Crayon Syntax Highlighter] AJAX functions fail on XAMPP: Incorrect arguments for 'wp-l’ is closed to new replies.