We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

update from 4.3.4 fails with 'the server returned an unexpected content type'

How Do I?

earthisland's avatar
earthisland
46 posts
2 weeks ago
earthisland's avatar earthisland

Greetings! I’m tracking pitfalls in my long-delayed update of a 4.3.4 website, and had had some success last season (after quashing some plug-in related bugs); now, with a fresh copy of the ‘site, I’m seeing the same error as was reported in this 2 year-old thread:

https://expressionengine.com/forums/topic/252899/5.4.0-update-fails

In that thread and some others that search yielded, the solution wasn’t explained, or the user had better luck on their next attempt.

From the control panel, the auto-update trips on the download, complaining of the unexpected content type: text/html; charset=UTF-8

The PHP version is as low as my test environment will allow, 7.4 (which causes the 4.3.4 CP to throw some ‘deprecated’ messages).

My attempt last season was instructive and ultimately I got as far as 6.3x; but using a mostly exactly similar copy I’m not having such luck. Thoughts?

Here’s a stack trace, in case that might be a clue:

0 ee/EllisLab/ExpressionEngine/Service/Updater/Downloader/Downloader.php(71): EllisLab\ExpressionEngine\Service\Updater\Downloader\Downloader->validateResponse(Object(EllisLab\ExpressionEngine\Library\Curl\PostRequest), '')

1 ee/EllisLab/ExpressionEngine/Service/Updater/Runner.php(61): EllisLab\ExpressionEngine\Service\Updater\Downloader\Downloader->downloadPackage('https://update….')

2 [internal function]: EllisLab\ExpressionEngine\Service\Updater\Runner->download()

3 ee/EllisLab/ExpressionEngine/Service/Updater/SteppableTrait.php(96): call_user_func_array(Array, Array)

4 ee/EllisLab/ExpressionEngine/Service/Updater/Runner.php(94): EllisLab\ExpressionEngine\Service\Updater\Runner->runStepParent('download')

5 ee/EllisLab/ExpressionEngine/Controller/Updater/Updater.php(106): EllisLab\ExpressionEngine\Service\Updater\Runner->runStep('download')

6 [internal function]: EllisLab\ExpressionEngine\Controller\Updater\Updater->run()

7 ee/EllisLab/ExpressionEngine/Core/Core.php(240): call_user_func_array(Array, Array)

8 ee/EllisLab/ExpressionEngine/Core/Core.php(109): EllisLab\ExpressionEngine\Core\Core->runController(Array)

9 ee/EllisLab/ExpressionEngine/Boot/boot.php(146): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))

10 admin.php(147): require_once('…')

11

       
Robin Sowell's avatar
Robin Sowell
13,184 posts
one week ago
Robin Sowell's avatar Robin Sowell

Hrm, so if it were me, I’d do a manual upgrade to v6. It looks like curl is pulling back something unexpected (I suspect an error). The easiest option, especially since you’re coming from that far back, is a manual upgrade.

https://github.com/ExpressionEngine/ExpressionEngine/releases/download/6.4.1/ExpressionEngine6.4.1.zip

Once that’s all good? Make sure 1-click is working for going forward.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.