WordPress.org

Support

Support » Plugins and Hacks » Crayon Syntax Highlighter » [Resolved] [Plugin: Crayon Syntax Highlighter] AJAX functions fail on XAMPP: Incorrect arguments for 'wp-l

[Resolved] [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 to crayon_die_if_not_php() in global.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 the CrayonSyntaxSettings 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.

    http://wordpress.org/extend/plugins/crayon-syntax-highlighter/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Crayon Syntax Highlighter] AJAX functions fail on XAMPP: Incorrect arguments for 'wp-l’ is closed to new replies.
Skip to toolbar