Unable to update Joomla 4.0.2 to 4.0.3 Error: "" is not valid header name

Need help upgrading your Joomla! website or converting to Joomla! 4.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
kakem
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Sep 16, 2021 9:35 pm

Unable to update Joomla 4.0.2 to 4.0.3 Error: "" is not valid header name

Post by kakem » Thu Sep 16, 2021 9:41 pm

Hello,

I am new to admin of Joomla, and could migrate to 4.0.0 and update to 4.0.2. Nevertheless I got now the following error: "" is not valid header name
And with debugging, the following:
Call stack
# Function
1 ()
2 Laminas\Diactoros\HeaderSecurity::assertValidName()
3 Laminas\Diactoros\Response->assertHeader()
4 Laminas\Diactoros\Response->setHeaders()
5 Laminas\Diactoros\Response->__construct()
6 Joomla\CMS\Http\Transport\StreamTransport->getResponse()
7 Joomla\CMS\Http\Transport\StreamTransport->request()
8 Joomla\Http\Http->makeTransportRequest()
9 Joomla\Http\Http->get()
10 Joomla\Component\Joomlaupdate\Administrator\Model\UpdateModel->downloadPackage()
11 Joomla\Component\Joomlaupdate\Administrator\Model\UpdateModel->download()
12 Joomla\Component\Joomlaupdate\Administrator\Controller\UpdateController->download()
13 Joomla\CMS\MVC\Controller\BaseController->execute()
14 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
15 Joomla\CMS\Component\ComponentHelper::renderComponent()
16 Joomla\CMS\Application\AdministratorApplication->dispatch()
17 Joomla\CMS\Application\AdministratorApplication->doExecute()
18 Joomla\CMS\Application\CMSApplication->execute()
19 require_once()

I am not sure what I should do and would greatly appreciate your help.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28224
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Unable to update Joomla 4.0.2 to 4.0.3 Error: "" is not valid header name

Post by Per Yngve Berg » Fri Sep 17, 2021 3:48 am

Mod. Note: Relocated topic from Administration to the Upgrade Forum.

kakem
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Sep 16, 2021 9:35 pm

Re: Unable to update Joomla 4.0.2 to 4.0.3 Error: "" is not valid header name

Post by kakem » Sat Oct 02, 2021 3:20 pm

Anybody any idea? I would be really happy if you could share with me your ideas, maybe just a hint where I could start looking for...

User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 7150
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Unable to update Joomla 4.0.2 to 4.0.3 Error: "" is not valid header name

Post by AMurray » Sat Oct 02, 2021 11:10 pm

How did you update - through Joomla Update?

You have sufficient user access (super user) to do the update?

It could be PHP settings - e.g. file upload or post size limits are too small (smaller than the update package of Joomla) and causing it to fail.

Can you restore from a backup and try again?

Did you see any other errors - is the PHP error reporting turned on, this would give more clues (or maybe refer to the error log in Joomla or on your hosting)?
Regards - A Murray

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 10966
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Unable to update Joomla 4.0.2 to 4.0.3 Error: "" is not valid header name

Post by sozzled » Sun Oct 03, 2021 12:27 am

The important information is contained in

Code: Select all

Laminas\Diactoros\HeaderSecurity::assertValidName()
See discussion about updating over stream with cURL deactivated in https://issues.joomla.org/tracker/joomla-cms/31330

Check if you have cURL disabled in your PHP environment and, if so, enable it.
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)


Post Reply

Return to “Migrating and Upgrading to Joomla! 4.x”