Joomla update error could not open for writing

Need help upgrading your Joomla! website or converting to Joomla! 3.x? Please consider the availability of third-party templates and extensions when deciding which Joomla version to use.

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.
Post Reply
gbirk
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Feb 13, 2018 2:18 pm

Joomla update error could not open for writing

Post by gbirk » Tue Feb 13, 2018 2:22 pm

While upgrading to Joomla 3.8.5, I got the following error: Could not open /home/xxxx/public_html/mywebsite/modules/mod_custom.php for writing. I checked, permissions are set to 755 for folders and 644 for files.

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

Re: Joomla update error could not open for writing

Post by Per Yngve Berg » Tue Feb 13, 2018 2:50 pm

The file may have another owner than the user you try to access it with.

gbirk
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Feb 13, 2018 2:18 pm

Re: Joomla update error could not open for writing

Post by gbirk » Tue Feb 13, 2018 3:15 pm

How do I check that? This is a development site and the only user is me.

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

Re: Joomla update error could not open for writing

Post by Per Yngve Berg » Tue Feb 13, 2018 7:05 pm

Post the FPA and we will have a look at your server congig.

gbirk
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Feb 13, 2018 2:18 pm

Re: Joomla update error could not open for writing

Post by gbirk » Tue Feb 13, 2018 7:56 pm

I'm not sure how to post the FPA. I did check the error log and found the following:

[12-Feb-2018 09:18:03 America/Denver] PHP Fatal error: Call to undefined method Joomla\CMS\Document\RawDocument::addHeadLink() in /home/xxxx/public_html/mywebsite/modules/mod_search/mod_search.php on line 23


I looked at the code on line 23 in mod_search.php and it reads:

$doc->addHeadLink(

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 5334
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Joomla update error could not open for writing

Post by sozzled » Tue Feb 13, 2018 8:08 pm

gbirk wrote:I'm not sure how to post the FPA.
We see this question asked a lot and, until people who post this question figure out the solution, their original questions remain (and will continue to remain) unresolved. So the ball is really in your court.

There must be hundreds of forum topics devoted to this subject: "How to post the FPA". It's not a complicated process. The instructions for how to use it (including pictures that show you what to do) are contained in the topic viewtopic.php?f=621&t=582860
  1. Download a ZIP file
  2. Extract the file fpa-en.php from that file.
  3. Upload the file fpa-en.php to your site root folder (the folder containing the file configuration.php)
  4. Go to the URL <your-site>/fpa-en.php
  5. Click the button "GENERATE POST"
  6. Select the text—the forum BBcode—that you'll see in and paste that text, as you see it, here on the forum.
That's it in a nutshell. It takes about 5 minutes. It probably takes about 10 minutes to read the instructions but, once you know how to do it, it's straightforward.

Whether or not your FPA report will assist others to help you ... that's another matter. Without it, you'll be waiting a long time for someone to answer your original question. 8)
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

gbirk
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Feb 13, 2018 2:18 pm

Re: Joomla update error could not open for writing

Post by gbirk » Tue Mar 13, 2018 10:31 pm

I'm not sure what I'm doing wrong. I:
- Download with ZIP file
- Extract the file fpa-en.php from that file.
- Upload the file fpa-en.php to your site root folder (the folder containing the file configuration.php)
- I went to the URL <the URL for my website>/fpa-en.php

I get a 404 error

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 5334
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Joomla update error could not open for writing

Post by sozzled » Tue Mar 13, 2018 11:19 pm

It took you a month? *sigh*

Let's say your website URL is http://www.example.com

You got a 404 error when you typed in http://www.example.com/fpa-en.php did you?
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

gbirk
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Feb 13, 2018 2:18 pm

Re: Joomla update error could not open for writing

Post by gbirk » Tue Mar 13, 2018 11:31 pm

I did try right away on Feb 13 and got the 404 error. So for the last month I've been reading posts and today finally got the never to post again.

Yes, if my website URL is http://www.example.com

I get a 404 error when you typed in http://www.example.com/fpa-en.php

I also tried
http://my ip address/home/my host name/public_html/my website name/fpa-en.php and got a 404 error

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 5334
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Joomla update error could not open for writing

Post by sozzled » Tue Mar 13, 2018 11:42 pm

Sounds like you didn't copy the file to the right path. Have you checked that the file fpa-en.php is located in the site root folder; check that you can see the file configuration.php that is also located in this folder. If you cannot see the file configuration.php then you have uploaded the FPA file to the wrong folder.
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

gbirk
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Feb 13, 2018 2:18 pm

Re: Joomla update error could not open for writing

Post by gbirk » Wed Mar 14, 2018 8:30 pm

Thanks for the reply. Yes, it is in the root folder. The same folder as the configuration.php and .htaccess. I may try a new install. ;-(


Post Reply

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