after adding this feed:
http://blog.kabbalah.com/yehuda/feed/en

(to be able to add that feed - i had to get latest simplepie.inc from - http://svn.simplepie.org/simplepie/trunk/simplepie.inc)

then -
when running cron.php, i get this error message:

( ! ) Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 524146 bytes) in /usr/lampp/htdocs/sites/fp3.unchaos.org/modules/simplefeed/simplefeed_item.module on line 330
Call Stack
# Time Function Location
1 0.8436 {main}() /usr/lampp/htdocs/cron.php:0
2 4.1053 drupal_cron_run() /usr/lampp/htdocs/cron.php:11
3 4.1079 module_invoke_all() /usr/lampp/htdocs/includes/common.inc:2010
4 4.1186 call_user_func_array () /usr/lampp/htdocs/includes/module.inc:406
5 4.1186 simplefeed_item_cron() /usr/lampp/htdocs/includes/module.inc:0
6 59.6478 serialize () /usr/lampp/htdocs/sites/fp3.unchaos.org/modules/simplefeed/simplefeed_item.module:332

Comments

m3avrck’s picture

This is a problem with your php.ini -- need to adjust the memory settings there.

m3avrck’s picture

The simplepie.php you link to is the same one that is in CVS so not sure why you need to change that.

Additionally, you need change the memory settings in you php.ini for this to work.

This feed processed perfectly well on my dev machine, no problems at all.

shaal’s picture

about simplepie.inc - i still think it's different than:
http://svn.simplepie.org/simplepie/trunk/simplepie.inc

i started a new database (clean site),
i edit php.ini - and adjust memory from 24M to 124M

not getting the serialize() error anymore,
but now i get infinite (i guess in the amount of items of the feed) of the following error messages -

( ! ) Warning: Got a packet bigger than 'max_allowed_packet' bytes query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', 'Got a packet bigger than 'max_allowed_packet' bytes\nquery: INSERT INTO simplefeed_feed_item_cache (data, fid) VALUES ('O:14:\\"SimplePie_Item\\":9:{s:4:\\"feed\\";O:9:\\"SimplePie\\":26:{s:4:\\"data\\";a:7:{s:6:\\"attibs\\";a:1:{s:32:\\"HTTP://BACKEND.USERLAND.COM/RSS2\\";a:1:{s:7:\\"VERSION\\";s:3:\\"2.0\\";}}s:8:\\"xml_lang\\";s:0:\\"\\";s:5:\\"child\\";a:1:{s:32:\\"HTTP://BACKEND.USERLAND.COM/RSS2\\";a:1:{s:7:\\"CHANNEL\\";a:1:{ in /usr/lampp/htdocs/includes/database.mysql.inc on line 167
Call Stack
# Time Function Location
1 0.0002 {main}() /usr/lampp/htdocs/cron.php:0
2 0.1781 drupal_cron_run() /usr/lampp/htdocs/cron.php:11
3 0.1798 module_invoke_all() /usr/lampp/htdocs/includes/common.inc:2010
4 0.2044 call_user_func_array () /usr/lampp/htdocs/includes/module.inc:406
5 0.2044 simplefeed_item_cron() /usr/lampp/htdocs/includes/module.inc:0
6 10.7901 db_query() /usr/lampp/htdocs/sites/fp4.unchaos.org/modules/simplefeed/simplefeed_item.module:330
7 10.8176 _db_query() /usr/lampp/htdocs/includes/database.inc:200
8 10.8624 trigger_error () /usr/lampp/htdocs/includes/database.mysql.inc:167
9 10.8689 error_handler() /usr/lampp/htdocs/includes/common.inc:0
10 10.9534 watchdog() /usr/lampp/htdocs/includes/common.inc:555
11 10.9535 db_query() /usr/lampp/htdocs/includes/bootstrap.inc:635
12 10.9875 _db_query() /usr/lampp/htdocs/includes/database.inc:200
13 11.0507 trigger_error () /usr/lampp/htdocs/includes/database.mysql.inc:167

( ! ) Warning: Got a packet bigger than 'max_allowed_packet' bytes query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', 'Got a packet bigger than 'max_allowed_packet' bytes\nquery: INSERT INTO simplefeed_feed_item_cache (data, fid) VALUES ('O:14:\\"SimplePie_Item\\":9:{s:4:\\"feed\\";O:9:\\"SimplePie\\":26:{s:4:\\"data\\";a:7:{s:6:\\"attibs\\";a:1:{s:32:\\"HTTP://BACKEND.USERLAND.COM/RSS2\\";a:1:{s:7:\\"VERSION\\";s:3:\\"2.0\\";}}s:8:\\"xml_lang\\";s:0:\\"\\";s:5:\\"child\\";a:1:{s:32:\\"HTTP://BACKEND.USERLAND.COM/RSS2\\";a:1:{s:7:\\"CHANNEL\\";a:1:{ in /usr/lampp/htdocs/includes/database.mysql.inc on line 167
Call Stack
# Time Function Location
1 0.0002 {main}() /usr/lampp/htdocs/cron.php:0
2 0.1781 drupal_cron_run() /usr/lampp/htdocs/cron.php:11
3 0.1798 module_invoke_all() /usr/lampp/htdocs/includes/common.inc:2010
4 0.2044 call_user_func_array () /usr/lampp/htdocs/includes/module.inc:406
5 0.2044 simplefeed_item_cron() /usr/lampp/htdocs/includes/module.inc:0
6 13.6662 db_query() /usr/lampp/htdocs/sites/fp4.unchaos.org/modules/simplefeed/simplefeed_item.module:330
7 13.6937 _db_query() /usr/lampp/htdocs/includes/database.inc:200
8 13.7369 trigger_error () /usr/lampp/htdocs/includes/database.mysql.inc:167
9 13.7434 error_handler() /usr/lampp/htdocs/includes/common.inc:0
10 13.8278 watchdog() /usr/lampp/htdocs/includes/common.inc:555
11 13.8279 db_query() /usr/lampp/htdocs/includes/bootstrap.inc:635
12 13.8622 _db_query() /usr/lampp/htdocs/includes/database.inc:200
13 13.9270 trigger_error () /usr/lampp/htdocs/includes/database.mysql.inc:167

.
.
.
etc.

shaal’s picture

oh, btw - all these errors appears when i'm trying to run cron.php

shaal’s picture

the only way i did get it to work -

i replaced this:

db_query("INSERT INTO {simplefeed_feed_item_cache} (data, fid) VALUES (%b, %d)", serialize($item), $process_feed->nid);

with this:

    $node = array('type' => 'feed_item');                                           
    $values['title'] = $item->get_title();
    $values['created'] = strtotime($item->get_date());
    $values['format'] = variable_get('simplefeed_format', 1);
    $values['body'] = $item->get_content();            
    $values['expires'] = $item->feed_expires;
    $values['url'] = $item->get_permalink();                                                                                
    $values['fid'] = $feed_item->fid;
    $values['taxonomy'] = $item->taxonomy;                     

    // create a new feed-item node, adding in all of the other node defaults
    drupal_execute('feed_item_node_form', $values, $node);

seems like something in the cache stuff - created these errors

m3avrck’s picture

The packet error is a MySQL level configuration error. Just Google that error to fix it, I forget the exact syntax for you my.cnf.

m3avrck’s picture

Category: bug » support

Simplepie library has been updated, now there is a new version :-)

New threading coming soon in another patch/update.

max_allowed_packet=16M is what you need to put in your my.cnf for MySQL. I believe under [mysqld]

csevb10’s picture

Status: Active » Closed (fixed)
dayre’s picture

Increasing the max_packet_size didn't solve this problem for me (mine was already set to 100M !). Could possibly be a PHP regex lib bug. See: http://drupal.org/node/139250

Did increasing the max_packet_size solve this for anyone ?