WP-Syntax Memeroy Limit Error (5 posts)

  1. Yojance Rabelo
    Posted 6 years ago #

    I'm using the wp-syntax plugin and it's not working correctly on one of my posts. The post which throws this error has a lot of code that needs to be highlighted and I think that's what causing it but I may be wrong. The error I get is as follows.

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 427688 bytes) in /home/xxxxxxxxx/public_html/wp-content/plugins/wp-syntax/geshi/geshi.php on line 3607

    Im using WordPress 2.8.6 and the latest version of the plugin 0.98.

    I have added this to wp-config.php as one article on internet.
    <?php ini_set('memory_limit','64M'); ?>

    Please help me solve this problem.

  2. Mark Ratledge
    Forum Moderator
    Posted 6 years ago #

    Try this instead in wp_config.php:

    define('WP_MEMORY_LIMIT', '64M');

  3. Yojance Rabelo
    Posted 6 years ago #

    Hi songdogtech,

    I tried your solution and it didn't work, it still shows the same message when I view the post.

    Thanks for trying to help me, hopefully we can get to the bottom of this and solve the problem.

  4. Mark Ratledge
    Forum Moderator
    Posted 6 years ago #

    Must be a problem with the plugin. I use WordPress › SyntaxHighlighter Evolved « WordPress Plugins and it works well.

  5. Doug Vanderweide
    Posted 6 years ago #

    There are certain PHP commands that WP-Syntax will attempt to execute. Once I've noticed is curl_exex will always attempt to execute.

    It would be more helpful to see the code you are trying to include in your PRE block. Also, try adding a random space in some of the text to see if that helps.

Topic Closed

This topic has been closed to new replies.

About this Topic