The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
expression is too large at offset ... - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: expression is too large at offset ... (/showthread.php?tid=1377) |
expression is too large at offset ... - victorycck - Jun 18th, 2011 I get this warning on stage 6 during installation of 2.1.0 beta: "Warning: preg_replace() [function.preg-replace]: Compilation failed: regular expression is too large at offset 1048589 in C:\wamp\www\bible\global\code\hooks.php on line 445" How should I rectify this problem? RE: expression is too large at offset ... - Ben - Jun 18th, 2011 Huh! Let me test it out and see if I can reproduce it. I'll get back to you. - Ben RE: expression is too large at offset ... - Ben - Jun 18th, 2011 Hi Victory, That section that it's complaining about *is* new code, so it's possible there's something wonky going on there. What's happening is that on installation, Form Tools 2.1 parses the entire code base and extracts and makes a note of all hooks then stores them in the database. This replaces the older, dud code in 2.0.x which hardcoded those references in an .ini file. I just tried an installation and didn't encounter any problems myself, but it's possible it's something to do with your unique configuration. What's your $g_root_dir value (from your /global/config.php file)? Any unusual characters in it? - Ben RE: expression is too large at offset ... - Ben - Jun 18th, 2011 Hi Victory, Never mind, I was able to reproduce this error in a different environment. I'll include the fix in tomorrow's build. - Ben RE: expression is too large at offset ... - Ben - Jun 18th, 2011 Sorry for all the posts! Never mind again: I included it in today's build. Let me know if you continue to have problems (or if you spot anything else!) - Ben |