About Fatal Error in Form.inc

ethanzhong - May 18, 2006 - 14:02
Project:Chinese Word Splitter(中文分词)
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:zealy
Status:closed
Description

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

zealy - May 19, 2006 - 15:34

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

ethanzhong - May 21, 2006 - 09:33

Thank you very much! ^^ 谢谢

#3

zealy - June 5, 2006 - 08:52
Assigned to:ethanzhong» zealy
Status:active» needs review

Make function inline. It will decrease memory requirement. Please try it and tell me result, thank you.

AttachmentSize
csplitter.zip 2.96 KB

#4

zealy - June 5, 2006 - 14:57
Title:Error about Csplitter» About Fatal Error in Form.inc

About fatal error in form.inc, I think it caused by no mbstring support in your php entironment. Please check it, thank you.

#5

ethanzhong - June 7, 2006 - 06:08

Yeah, I think so. Thank you very much. You work is very helpful for most chinese who is developing with drupal. ^^

#6

zealy - June 5, 2008 - 18:24
Status:needs review» fixed

I think it's fixed...

#7

Anonymous (not verified) - June 19, 2008 - 18:31
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.