Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm randomly getting these errors when trying to import a feed with images:
PHP Fatal error: FeedsSimplePieEnclosure::getValue() [feedssimplepieenclosure.getvalue]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "SimplePie_Enclosure" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in modules/contrib/feeds/plugins/FeedsSimplePieParser.inc on line 21
Any ideas what could be causing this?
Comments
Comment #1
Krummrey CreditAttribution: Krummrey commentedGetting the same error in alpha12. Did not in previous versions.
Comment #2
alex_b CreditAttribution: alex_b commentedkosmikko: are you sure you are using alpha10 and not alpha 12?
This error is happening with long feeds, right?
It looks a lot like this error could be caused by the Batch API integration. When a batched feed is being unserialized, the feeds enclosure class definition may not be found. If batching is the culprit, an immediate fix would be to jack up the feeds_node_batch_size variable to a number that accommodates the number of items in your longest feed.
Comment #3
dimiduj CreditAttribution: dimiduj commentedsuscribe
Comment #4
hitfactory CreditAttribution: hitfactory commentedStill seeing this error on 6.x-1.0-alpha15 when importing from this feed:
http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topfree...
I've set feeds_node_batch_size to 100 in settings.php but import breaks. Other similar feeds run fine.
Comment #5
alex_b CreditAttribution: alex_b commentedThis patch may be a solution: #712304-15: Batch import does not continue where it left off, instead starts from the beginning
Comment #6
kenorb CreditAttribution: kenorb commentedClosed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.