WordPress.org

Ready to get started?Download WordPress

Forums

Insert PHP
[resolved] Too large PHP file? (4 posts)

  1. John
    Member
    Posted 4 months ago #

    Hello,

    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?

    Thanks.

    https://wordpress.org/plugins/insert-php/

  2. WillBontrager
    Member
    Plugin Author

    Posted 4 months ago #

    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.

    Will

  3. John
    Member
    Posted 4 months ago #

    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!

  4. WillBontrager
    Member
    Plugin Author

    Posted 3 weeks ago #

    This post is gratuitous to get the thread marked resolved.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.