WordPress / WordPress/wordpress-importer

gzopen(): cannot represent a stream of type user-space as a File Descriptor

Open
#41 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.