Hi I am a complete novice and am struggling to understand what I need to do-

I am trying to load the wysiwyg module in Drupal 7 and have received this message:

Cannot extract temporary://update-cache-d091481e/wysiwyg, not a valid archive.

But I do no know where to go to amend this

I look forward to your assistance with this - thanks

I am using FileZilla and with 123.org and Drupal 7

Thank you

Comments

TwoD’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

When are you getting this error? Could you explain the steps you took leading up to this in more detail?
I have no idea what 123.org is and how it's related to this issue.
I see the path is using the temporary prefix, and includes the words "update cache", so I'm assuming you're trying to install Wysiwyg module through Drupal's GUI? If your webserver is allowed to write to the sites and sites/all/modules directories, as well as the temporary files directory (set in the Drupal filesystem settings) you should be able to install the module correctly. Drupal will fetch the module directly to the temporary files directory and extract it to the sites/all/modules folder. Then you do not need FileZilla.

If your webserver does not have direct write access to those directories and you have to use an FTP program to upload files - like FileZilla - you will instead be prompted for your FTP credentials. Drupal will then act as an FTP client and upload the module archive for you and extract it to sites/all/modules automatically. Then you do not need FileZilla.

In this case, it looks like Drupal may only have partially downloaded the module archive to the temporary folder. You may need to use FileZilla and navigate to the temporary files folder and remove the mentioned file so Drupal can download the archive again.

This problem is not with Wysiwyg module itself (none of its code has been run yet), so I'll change it to a support request.

Does removing the temporary file help?

barnamah’s picture

Issue summary: View changes

Hi,
I am facing the same problem now.

Cannot extract 'temporary://

it is because I remove some folders using cPanel and brought theme and sites from extracted zip file from within cPanel and I know there are permission issue.
how do I know which folder is causing this. Where is the temporary:// folder located. I am using drupal 8.

TwoD’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

@barnamah, This module does not support Drupal 8, so this is the wrong issue queue. You should probably ask for support in the Core queue, though that may not help much since cPanel seems to be the one causing these issues.
In the most basic cases, all files should be owned by the webserver user (often www-data, but under cPanel it could be your own user), and/or in a group which the webserver is a member of so it can read the files. Files/folders in the public/private/temp files folders as set within the Drupal filesystem config pages must also be writeable by that user and/or group.
The default location for the temp folder is /tmp, and it's normally writable by anyone, though exactly which permissions are used under there for new files may depend on the underlying OS - in most cases programs/users which creates folders there are the ones who retain rights to modify them. It may be that in your case cPanel and the webserver are running under different users and thus one may not by default have access to files/folders created by the other, depends entirely on how cPanel and the webserver were setup.
Here's a general guide on dealing with permission problems for Drupal 7 and later Drupal 8/9.

https://www.singlemindconsulting.com/blog/fixing-permissions-on-the-file...
https://drupal.guru/drupal-recommended-file-and-directory-permissions/

Closing this issue since the OP didn't return and this module is not in D8+.