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

CommentFileSizeAuthor
#3 csplitter.zip2.96 KBzealy

Comments

zealy’s picture

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.

ethanzhong’s picture

Thank you very much! ^^ 谢谢

zealy’s picture

Assigned: ethanzhong » zealy
Status: Active » Needs review
StatusFileSize
new2.96 KB

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

zealy’s picture

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.

ethanzhong’s picture

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

zealy’s picture

Status: Needs review » Fixed

I think it's fixed...

Anonymous’s picture

Status: Fixed » Closed (fixed)

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