Support » Plugin: Insert PHP » Too large PHP file?

  • Resolved John



    I’m trying this for the first time, my apologies if this question has already been answered here.

    I tried to insert a very large PHP file and geting this error:

    Warning: preg_replace() [function.preg-replace]: Compilation failed: regular expression is too large at offset 479851 in /xxx/wp-content/plugins/insert-php/insert_php.php on line 54

    Is there any size limit?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WillBontrager


    John, it seems there is a size limit from what you report. I’ve never experienced it, myself.

    It may be a PHP regular expression size limit, as the error message reports. Or perhaps a function eval() size limit. It might also have to do with the amount of server resources available.

    Try to reduce the size of the code and see if it will run then.


    Hi Will,

    Yes, I think I went to far..
    I tested with a way to large PHP file and that goes beyond the limits.

    thanks for your reply and for this excellent plugin!

    Plugin Author WillBontrager


    This post is gratuitous to get the thread marked resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Too large PHP file?’ is closed to new replies.