WordPress.org

Forums

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

  1. John
    Member
    Posted 1 year 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 1 year 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 1 year 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 1 year ago #

    This post is gratuitous to get the thread marked resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Insert PHP
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.