Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"gzinflate(): data error" introduced in 1.4.2 #454

Closed
dhilowitz opened this issue Jun 17, 2016 · 3 comments
Closed

"gzinflate(): data error" introduced in 1.4.2 #454

dhilowitz opened this issue Jun 17, 2016 · 3 comments
Assignees

Comments

@dhilowitz
Copy link

Code:

    $feed = new \SimplePie();
    $feed->set_cache_location(storage_path('simplepie_cache'));
    $feed->enable_cache(false);
    $feed->set_feed_url('http://www.inthedc.com/wp/feed/podcast/');
    $feed->force_feed(true);
    $feed->force_fsockopen(true);
    $feed->handle_content_type();
    $feed->init();

Produces:

#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'gzinflate(): da...', '/mnt/www/myapp...', 337, Array)
#1 /mnt/www/myapp/vendor/simplepie/simplepie/library/SimplePie/gzdecode.php(337): gzinflate('?UKn?0?????-???...')
#2 /mnt/www/myapp/vendor/simplepie/simplepie/library/SimplePie/File.php(249): SimplePie_gzdecode->parse()
#3 [internal function]: SimplePie_File->__construct('http://feeds.so...', 10, 5, Array, 'SimplePie/1.4.1...', true, Array)
#4 /mnt/www/myapp/vendor/simplepie/simplepie/library/SimplePie/Registry.php(183): ReflectionClass->newInstanceArgs(Array)
#5 /mnt/www/myapp/vendor/simplepie/simplepie/library/SimplePie.php(1596): SimplePie_Registry->create('File', Array)
#6 /mnt/www/myapp/vendor/simplepie/simplepie/library/SimplePie.php(1368): SimplePie->fetch_data(false)
#7 /mnt/www/myapp/app/Jobs/CrawlFeed.php(51): SimplePie->init()

When I roll back to 1.4, the error goes away.

@mblaney mblaney self-assigned this Jun 20, 2016
@mblaney
Copy link
Member

mblaney commented Jun 20, 2016

@jonmunson
Copy link

I get a similar error"
PHP Warning: gzinflate(): data error in /simplepie/simplepie/library/SimplePie/gzdecode.php on line 337

@mblaney
Copy link
Member

mblaney commented Jul 12, 2016

this has been fixed by #455

@mblaney mblaney closed this as completed Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants