WordPress / WordPress/wordpress-importer
gzopen(): cannot represent a stream of type user-space as a File Descriptor
Open
Nobody has claimed this yet.
[Type] Bug
- Dominant language
- PHP
- Stars
- 89
- Forks
- 96
- Avg merge
- 1h 13m
- Merged PRs (30d)
- 2
Description
Using version 0.6.4 with Wordpress 4.9.8 and PHP 7.1.
Received this error when trying to import any content on our Wordpress:
PHP Warning:
gzopen(): cannot represent a stream of type user-space as a File Descriptor
in
/var/app/current/wp-content/plugins/wordpress-importer/parsers.php
on line 677,
referer: https://our.site.com/wp-admin/admin.php?import=wordpress
Commenting out lines 676 & 677 allows us to import (uncompressed) dumps just fine.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting src/parsers.php at lines 676-677 and reproduce the import on PHP 7.1 with WordPress 4.9.8. Check the behavior for compressed and uncompressed dumps. Done means imports no longer produce the gzopen() user-space stream warning while uncompressed dumps continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100