简体   繁体   English

Magento拒绝升级1.4.2.0 ===> 1.5.0.1

[英]Magento refuses to upgrade 1.4.2.0 ===> 1.5.0.1

This is my first time using Magento. 这是我第一次使用Magento。 I upgraded this site from 1.4.1.1 to 1.4.2.0 without issue. 我将此站点从1.4.1.1升级到1.4.2.0没有问题。 Now trying to go to 1.5.0.1 it just seems to refuse at every turn. 现在试图转到1.5.0.1,似乎每次都拒绝。 I tried by entering this key into Magento Connect: magento-core/Mage_All_Latest 我尝试将此密钥输入Magento Connect:magento-core / Mage_All_Latest

And it says this: Ignoring installed package magento-core/Mage_All_Latest Nothing to install 它说:忽略已安装的软件包magento-core / Mage_All_Latest无需安装

I tried to upgrade via SSH and got this: Attempting to discover channel "magento-core"... unknown channel "magento-core" in "magento-core/Mage_All_Latest" invalid package name/package file "magento-core/Mage_All_Latest" Cannot initialize 'magento-core/Mage_All_Latest', invalid or missing package file Package "magento-core/Mage_All_Latest" is not valid install failed 我试图通过SSH升级并得到这个:试图发现“magento-core”频道...“magento-core / Mage_All_Latest”中的未知频道“magento-core”无效的包名/包文件“magento-core / Mage_All_Latest”无法初始化'magento-core / Mage_All_Latest',无效或缺少包文件包“magento-core / Mage_All_Latest”无效安装失败

In the downloader I noticed a the downloader had a version 1.5.0.0 upgrade available. 在下载程序中,我注意到下载程序可以使用1.5.0.0版本升级。 I thought maybe I needed the newest downloader before I could update all the packages. 在我更新所有软件包之前,我想也许我需要最新的下载程序。 I upgraded just the downloader to 1.5.0.0 which worked. 我只是将下载程序升级到1.5.0.0。 Then I tried the full upgrade again and now it is mega retarded with this: Couldn't resolve host 'magento-core' 然后我再次尝试了全面升级,现在它已被大量延迟了:无法解析主机'magento-core'

That's cute isn't it? 那可爱不是吗? So I gave it once last whirl at the ssh console and i get this bad boy: Attempting to discover channel "magento-core"... Attempting fallback to https instead of http on channel "magento-core"... unknown channel "magento-core" in "magento-core/Mage_All_Latest" invalid package name/package file "magento-core/Mage_All_Latest" install failed 所以我在ssh控制台上给了它最后一次旋转,我得到了这个坏男孩:试图发现频道“magento-core”...尝试回退到https而不是http频道“magento-core”......未知频道“ magento-core“in”magento-core / Mage_All_Latest“无效的包名/包文件”magento-core / Mage_All_Latest“安装失败

I tried a forcing it via SSH but still no love. 我尝试通过SSH强制它,但仍然没有爱。 I reverted from a backup I made so I do not have downloader 1.5.0.0 any more. 我从我做的备份中恢复,所以我没有下载器1.5.0.0了。 Now of course I am back to square one with it telling me there is nothing to install when I try to update via MC. 当然,我现在回到原点,告诉我当我尝试通过MC更新时没有什么可以安装的。 When I check in MC if there are any updates available it lists these two: Mage_All_Latest Upgrade to 1.4.2.1 (stable) Metapackage for latest Magento 1.4 release And the Mage Downloader 1.5.0.1 but I already installed these before and it did no good so I restored my backup before the failed update. 当我检查MC是否有任何可用的更新时,它列出了这两个:Mage_All_Latest升级到1.4.2.1(稳定)Metapackage用于最新的Magento 1.4版本和Mage Downloader 1.5.0.1但是我之前已经安装了这些并且它没有做好我在更新失败之前恢复了备份。

I was trying to ask this question Magento's Forums but they are a mess right now. 我试图问这个问题Magento的论坛,但他们现在一团糟。 Their captcha fails and threads close on their own so you get little to no help. 他们的验证码失败并且线程自己关闭,所以你几乎没有任何帮助。 I wouldn't be surprised if they did this on purpose in concert with their 1.5.0.1 release. 如果他们与他们的1.5.0.1版本一致地故意这样做,我不会感到惊讶。

Go to the root of your website and execute these commands (Where index.php is): 转到您网站的根目录并执行这些命令(index.php所在的位置):

wget http://www.magentocommerce.com/downloads/assets/1.5.0.1/magento-1.5.0.1.tar.gz

tar -zxvf magento-1.5.0.1.tar.gz

Skip the next 4 commands if you have your magento install in a folder called Magento: 如果您将magento安装在名为Magento的文件夹中,请跳过接下来的4个命令:

cd magento

cp -rf * /home/bitscom/public_html

cd ../

rm -rf magento

rm magento-1.5.0.1.tar.gz

For a detailed explanation see my post on the offical magento forum: here My name is Veracious on there. 有关详细说明,请参阅我在官方magento论坛上的帖子: 这里我的名字是Veracious。

If your SSH account is anything other than your apache user (ie: root. you will get error 500 when trying to access the site do the the permissions on the new files you just extracted. To resolve that use chown and chgrp. For a detailed explanation once again see my post: here 如果您的SSH帐户不是您的apache用户(例如:root。在尝试访问该站点时您将收到错误500,请对您刚提取的新文件执行权限。要解决该问题,请使用chown和chgrp。详细信息解释再次看到我的帖子: 这里

I think the location for the upgrades have changed. 我认为升级的位置已经改变。 Instead of the: magento-core/Mage_All_Latest use: community/Mage_All_Latest 而不是: magento-core / Mage_All_Latest使用: community / Mage_All_Latest

As what mrdon has mentioned. 正如mrdon所提到的那样。

I couldn't upgrade through Magento Connect either. 我也无法通过Magento Connect升级。 I followed these instructions for installing magento and it worked fairly well. 我按照这些说明安装了magento并且工作得很好。 I changed line 3 as below to copy the folders/files over my existing ones. 我改变了第3行,将文件夹/文件复制到现有的文件夹/文件中。

wget http://www.magentocommerce.com/downloads/assets/1.5.0.1/magento-1.5.0.1.tar.gz
tar -zxvf magento-1.5.0.1.tar.gz
cp magento/* magento/.htaccess .
chmod -R o+w media var
chmod o+w app/etc

I followed the instructions from the following post to upgrade from 1.4.1.1 to 1.5.0.1: 我按照以下帖子中的说明从1.4.1.1升级到1.5.0.1:

http://www.magentocommerce.com/boards/viewthread/219720/#t301761 http://www.magentocommerce.com/boards/viewthread/219720/#t301761

Then flushed the cache and reindexed everything. 然后刷新缓存并重新编制索引。 Everything worked. 一切正常。

Don't forget to change magento folder ownership to your web server user. 不要忘记将magento文件夹所有权更改为Web服务器用户。 In my case I had to run 在我的情况下,我不得不跑

chown -R www-data:www-data /var/www/magento

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM