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.
1) First I tried to install view with the project link. Getting errors ==> screenshot 1...
2) Afterwards I tried to download and to upload it again to my website, giving me errors ==> screenshot 2 (known issue that need to get fixed!)
3) Next try: unpack the archive and rar it: rar is not supprted
4) Last try: unpack the archive and zip it: gives errors ==> screesnhot 3
This is kinda critical, I see this as a mother issue for all those "small" problems.
(please correct the component of this issue)
specs: Win 7 | latest head | chrome
Comment | File | Size | Author |
---|---|---|---|
#30 | 790224-module-upload-28.patch | 1.72 KB | lotyrin |
#28 | 790224-module-upload-28.patch | 1.72 KB | lotyrin |
#26 | 790224-module-upload-26.patch | 1.72 KB | lotyrin |
#25 | 790224-class-array-25.patch | 669 bytes | lotyrin |
#23 | 790224-class-array-22[2].patch | 679 bytes | tstoeckler |
Comments
Comment #1
juliangb CreditAttribution: juliangb commentedPoint 3 - have a look at your screenshots and you will see that there is a list of supported compression methods. rar is not one of them. So yes, it isn't supported. If it doesn't claim to be supported, it isn't a bug that it isn't.
Comment #2
aspilicious CreditAttribution: aspilicious commentedYes I know that, I shouldn't report this together with those other ones. I can't edit the original post. So if someone can remove point 3...
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedThis is what i get on LAMP:
Warning: mkdir(): No such file or directory in update_manager_file_get() (line 715 of /var/www/checkouts/05april/drupal/modules/update/update.manager.inc).
HTTP error 1 occurred when trying to fetch http://ftp.drupal.org/files/projects/views-7.x-3.x-dev.tar.gz.
Unable to retrieve Drupal project from http://ftp.drupal.org/files/projects/views-7.x-3.x-dev.tar.gz.
Gonna look into it some more! Probably entered something wrong. :)
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedone of the issues is right here:
cache_directory variable ends up(on a linux system): "drupal//tmp/update-cache/"
I dont know what function or way Drupal goes to check what the temp directory on the host system is. But on a linux system this is usually /tmp . What is wrong here is probably adding DRUPAL_ROOT because i can see that you wanna use /tmp on a linux system and all other UNIX system i know of including OSX. I dont know how this will react on a windows system.
If someone wanna check what drupal wanna use for temp in windows just put this code somewhere and check the output(i used the block admin gui):
This regards the:
Warning: mkdir(): No such file or directory in update_manager_file_get() (line 715 of /var/www/checkouts/05april/drupal/modules/update/update.manager.inc).
Looking into it some more.
Comment #5
pwolanin CreditAttribution: pwolanin commentedyes, this is clearly a bug:
Since the temp file path is likely to be outside the docroot and may be an absolute path.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedExactly, it creates the directory fine without drupal doc root in there. Im gonna make a patch for this as soon as i have sorted out why i get the other problems.
I thought it had something to do with temporary:// stream wrapper thingy but im not sure.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedMade the following changes
The same error was on line 638 as the one previously mentioned. And there was an error at line 711:
$local = 'temporary://update-cache/' . basename($parsed_url['path']);
should be
$local = 'temporary://update-cache/';
basename($parsed_url['path'])
is being run in "system_retrieve_file()"Now i get the following error:
Archivers can only operate on local files: temporary://update-cache/ not supported
Comment #8
pwolanin CreditAttribution: pwolanin commentedHere's a start on a patch.
Comment #9
pwolanin CreditAttribution: pwolanin commentedComment #10
pwolanin CreditAttribution: pwolanin commented@nenne I was worried about that last error re: archivers. Looks like at some added point we need to use drupal_realpath()
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedArchivers can only operate on local files: /tmp/update-cache not supported
and with whole file path:
Archivers can only operate on local files: /tmp/update-cache/views-7.x-3.x-dev.tar.gz not supported
Pretty weird. Does it require a Drupal doc_root based url to consider it "local"?
Comment #12
pwolanin CreditAttribution: pwolanin commented#8 worked for me on Mac 10.5 to install Views from http://ftp.drupal.org/files/projects/views-7.x-3.x-dev.tar.gz
Comment #13
Anonymous (not verified) CreditAttribution: Anonymous commentedIm back at :
HTTP error 1 occurred when trying to fetch http://ftp.drupal.org/files/projects/views-7.x-3.x-dev.tar.gz.
Unable to retrieve Drupal project from http://ftp.drupal.org/files/projects/views-7.x-3.x-dev.tar.gz.
With the patch. trying to figure out why.
Comment #14
Anonymous (not verified) CreditAttribution: Anonymous commentedAfter your patch:
If i remove " . basename($parsed_url['path'])" from line 712 its back at the Archiver local stuff problem.
Comment #15
Anonymous (not verified) CreditAttribution: Anonymous commentedOk, after some more research i have come to the following conclusion:
I get the furthest with your patch applied. It creates the temp dirs in /tmp and downloads the file only to go to a blank screen. This seems to be when the extracting should occur. The file is in /tmp/update-cache/... but the /tmp/update-extraction/ is empty.
Comment #16
pwolanin CreditAttribution: pwolanin commented@nenne what type of system? php version? can you check your php error log?
Comment #17
Anonymous (not verified) CreditAttribution: Anonymous commentedI use Ubuntu 10.04 with PHP locked to 5.2 Karmic repos.
If i use the archiver_get_archiver() function on the file and dumps the variable it looks good(i believe):
My setup might be considered a bit weird seeing as its a 10.04 with PHP held back. Would be great of more linux people could try this!
Comment #18
aspilicious CreditAttribution: aspilicious commentedPatch in #8 solves my issue, but it leaves the overlay while installing...
Comment #19
Anonymous (not verified) CreditAttribution: Anonymous commentedWindows and Mac verified. I will continue looking into it on Linux. It extracted on my 8.04 vps but left a weird error concerning forms:
Fatal error: [] operator not supported for strings in /var/www/includes/form.inc on line 2657
Comment #20
lotyrin CreditAttribution: lotyrin commentedAlso getting blank screen (/authorize.php) on Ubuntu 10.4, (but with default php version)
It's past the extraction step though, I have extracted modules in /tmp/update-extraction
If I load a normal Drupal page after trying to install the module, I get the following warning:
WARNING: You are not using an encrypted connection, so your password will be sent in plain text. Learn more.
The same happens if I simply attempt to load authorize.php (same blank page, same warning.)
Comment #21
lotyrin CreditAttribution: lotyrin commentedAfter some hunting through logs, I believe this is the error message from the blank authorize.php page:
[Thu May 06 20:06:43 2010] [error] [client 127.0.0.1] PHP Fatal error: [] operator not supported for strings in /var/www/drupal/includes/form.inc on line 2657, referer: http://localhost/
So it looks like I'm in the same place as nenne in #19.
line 2657 is in form_process_fieldset():
$element['#attributes']['class'][] = 'form-wrapper';
$element['#attributes']['class'] is supposed to be an array of classes, but it looks like it's set as a single string on a fieldset somewhere in the authorize form.
Going to see if I can find where.
Comment #22
lotyrin CreditAttribution: lotyrin commentedFound it.
My first patch. Sorry if I've formatted it incorrectly.
Comment #23
tstoecklerGood catch lotyrin. Rerolled for single quotes per coding standards. Not tested.
Comment #25
lotyrin CreditAttribution: lotyrin commentedUsing single quotes now.
#23 won't work (even with proper line-endings), since it's going to have the literal '$name' instead of its value.
Comment #26
lotyrin CreditAttribution: lotyrin commentedHere is #25 and #8 rolled into a single patch.
Comment #28
lotyrin CreditAttribution: lotyrin commentedAfter reading through the style guideline, this patch should be correct.
Double-quoted strings are allowed in the case that there's an inline variable.
Not sure why #26 wouldn't apply.
Comment #29
lotyrin CreditAttribution: lotyrin commentedForgot to set status.
Comment #30
lotyrin CreditAttribution: lotyrin commentedJust read about how the patch queue works.
Sorry. I'm learning.
Comment #31
Anonymous (not verified) CreditAttribution: Anonymous commentedGreat work, i will try it on my VPS later when i get the time.
Comment #32
dww#693084: Regression: file_munge_filename() extension handling broken by move to File Field
Comment #33
lotyrin CreditAttribution: lotyrin commenteddww: Forgive me if I'm wrong, but It looks like that issue is at play in the original report, but that's not all that was going on here.
This patch fixes temporary file management that fixes an assumption that your temp file directory is in your drupal root (so you get drupal//tmp when you really wanted /tmp) and a fixes a problem in the authorization form.
The issue you linked doesn't include those fixes.
Comment #34
jpmckinney CreditAttribution: jpmckinney commentedHaving worked on that linked issue, I can confirm that it is not duplicate of this issue.
Comment #35
alanburke CreditAttribution: alanburke commentedPatch works for me, in that it gets rid of the Errors displayed when trying to install a module via the web interface.
Comment #36
pwolanin CreditAttribution: pwolanin commentedseems like this is a verified fix.
Comment #37
webchickYeah, I concur that this seems like a pretty straight-forward path fix, rather than mucking about with missed Upload => File upgrade path snafus like the referenced issue. dww, if you know something we don't, please feel free to follow-up.
Committed to HEAD. Great job on your first patch, lotyrin! :D And thanks for all the great testing, everyone!
Unfortunately, this sort of obvious oversight means we don't have any test coverage for this. :( But I've spoken to dww about this before, and he said it's not really possible to test this on testbot because of the requirement for FTP, etc. :( So if the folks in this issue could continue checking this from time to time from now until release, it'd be really appreciated!
Comment #38
webchickComment #39
dwwYeah, sorry about the false duplicate -- it was mostly based on the title of the issue, not the underlying bug this patch was targeting.
It seems there are multiple ways things can go wrong in the update manager depending on all the corner cases for how various pieces are configured. Something that our testing infrastructure is bad about testing in general, and all the more in this specific instance because the worst parts of the update manager can't be tested by our infrastructure at all.
Comment #41
DocDJ-forum CreditAttribution: DocDJ-forum commentedI don't know if this is the proper place to put this problem. I have not seen it in searching the fora.
On my Windows 10 system with Drupal 7.41, when I try to update ANY Drupal modules from inside Drupal OR from "drush pm-update projects drupal-7.42", either method tries to download .tar files instead of the corresponding .zip files. This never happened on Windows 7, but and it is preventing me from doing a CORE update. I can manually update extension modules, by downloading and copying the proper .zip files, but don't know what to do for a core update and WOULD really like to use the built-in interface for normal module updates.
Could the errors reported above be related to my problem? What can I do?