WordPress.org

Ready to get started?Download WordPress

Forums

Crayon Syntax Highlighter
Random String (Nonce?) Added to Crayon Tag (16 posts)

  1. agcyphers
    Member
    Posted 2 years ago #

    For some reason, one of my pages (and only among tens) is experiencing a strange issue where the crayon tag has text appended to it within the brackets.

    [crayon] in edit mode becomes [crayon-4f3b9f4f499f9] for not apparent reason. This causes the script to not work properly. Example URL is http://www.madmartyr.net/martyrbase/

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

  2. agcyphers
    Member
    Posted 2 years ago #

    Just an update, I've tried disabling all other plugins, and hadn't had an issue with this until the last update.

  3. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm, very odd. That's the id that Crayon adds to differentiate between other instances (for js). I'll look into it. Can you confirm if this works on the default theme?

  4. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Try this:

    http://dl.dropbox.com/u/33811812/Crayon/crayon-syntax-highlighter-1.8.0-debug.zip

    I've enabled debugging. Clear your log in settings, then refresh the problematic page and then send me the log, either from settings or the log.txt from FTP.

  5. agcyphers
    Member
    Posted 2 years ago #

    Here is all that I get from the log:
    ==============================================================================
    Crayon Syntax Highlighter Log Entry
    ==============================================================================
    8:04:50 PM - 18 Feb 2012
    string(4) "init"
    ------------------------------------------------------------------------------

    As I said, this all worked perfectly before the update that was pushed out about a week ago.

  6. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm, can you confirm if it works on version 1.7.30? I don't think I changed anything that would affect the load sequence in such a way as to totally halt the script. The filter the_posts should be called after init, but there is no sign of it. This indicates that something is not working correctly, since the Crayon id is added to the content after the_posts should reach the log. Could you please provide the name of the theme you're using?

  7. agcyphers
    Member
    Posted 2 years ago #

    I do now know what the problem is...it's the length of the code block within the tags. I removed about 100 lines, and the code wouldn't show at all (nor the crayon highlighter box). I removed another 200+ lines, and it all started working just fine. An update I made to the code coincided with an update you released.

    At any rate, the code is there if you wish to give it a shot.

  8. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Ah I see. I'll look into it and get back to you.

  9. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    I'm afraid I can't manage to reproduce your problem, it works fine for me:

    http://aksandbox.webege.com/?p=76

  10. agcyphers
    Member
    Posted 2 years ago #

    I wonder if it could be a PHP issue. What version of PHP does your host use? What's your PHP memory limit?

  11. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    I have 100MB of memory and PHP 5.2.11, but anything 5+ should do it.

  12. agcyphers
    Member
    Posted 2 years ago #

    I have PHP 5.3 and 93MB of memory, so I would assume that's not the issue. Ah well, I'll either have to restructure that script or move to WP-Syntax. Lame. Thanks for the help.

  13. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm, I'm not really sure then. It may be your theme or other plugins that might change the content around with Crayon, I'm not sure without having access to all that.

  14. agcyphers
    Member
    Posted 2 years ago #

    Yeah, I disabled all other plugins, and went back to the TwentyEleven theme, no joy there.

    No worries, mate. Thanks again.

  15. akarmenia
    Member
    Plugin Author

    Posted 2 years ago #

    Also try toggling "Disable enqueuing for page templates that may contain The Loop." No other ideas though...

  16. agcyphers
    Member
    Posted 2 years ago #

    No luck there, either. Thanks anyway.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic