Jump to content

[Resolved] Failed to download update


keat

Recommended Posts

I'm trying to update a copy of my 6.0.1 site to 6.1.7 but get the following error.

Failed to download latest version, please attempt manual upgrade.

[21-Apr-2017 09:57:28 Europe/London] PHP Warning:  file_get_contents(https://www.cubecart.com/download/6.1.7.zip) [<a href='http://docs.php.net/manual/en/function.file-get-contents.php'>function.file-get-contents.php</a>]: failed to open stream: no suitable wrapper could be found in /home/xxxxx/public_html/admin/sources/maintenance.index.inc.php on line 174

 

I've already perfromed a dummy run to 6.1.5, so I know it works.

I updated to EasyApache 4 with php 5.6 earlier this week in anticipation of this update, maybe it's related ??

Line 174 shows:       $contents = file_get_contents('https://www.cubecart.com/download/'.$_GET['upgrade'].'.zip');

edit:

 

 

Looks like a PHP config change is required.

Link to comment
Share on other sites

For anyone else experiences this, the settings to change in php.ini is  allow_url_include , but for good measure I also enabled  allow_url_fopen .

Restart php.

 

Might be worth, switching these back off when done.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...