About Fatal Error in Form.inc
| Project: | Chinese Word Splitter(中文分词) |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | zealy |
| Status: | closed |
I used the csplitter in Drupal4.7. I got an error when I use csplitter. When I go to setting->csplitter, it gives me an error:
Fatal error: Unsupported operand types in /home/ftp/512j.com/f/o/r/forthgoer/includes/form.inc on line 88
When I search, it gives me an error
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 78 bytes) in /home/ftp/512j.com/f/o/r/forthgoer/modules/csplitter/csplitter.module on line 127 and no realsut comes out
It doesn't show me the error in locally. when I upload to the server, it doesn't work. My server only supports Mysql4.0. And I don't have the priviliage to lock the table, so I delete the code which locking the tables and unlocking the tables

#1
First fatal error only depend on your runtime configuration, I think so. I can't reproduce this error.
Second fatal error is drupal script beyond memory limit which is defined in php.ini obviously. I've tested this module in 16M memory limit configuration, it looked like running well. I can make lines in that function inline, it will help to decrease memory requirement. I'll paste a patch here in several days. You can try it, if it was not work, I think you have to give up this module or other module to decrease drupal script memory.
#2
Thank you very much! ^^ 谢谢
#3
Make function inline. It will decrease memory requirement. Please try it and tell me result, thank you.
#4
About fatal error in form.inc, I think it caused by no mbstring support in your php entironment. Please check it, thank you.
#5
Yeah, I think so. Thank you very much. You work is very helpful for most chinese who is developing with drupal. ^^
#6
I think it's fixed...
#7
Automatically closed -- issue fixed for two weeks with no activity.