Error # [function.fopen]: failed to open stream: Permission

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
User avatar
njcastillo
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Wed Dec 29, 2010 6:02 pm
Location: Santo Domingo
Contact:

Error # [function.fopen]: failed to open stream: Permission

Postby njcastillo » Wed Jan 19, 2011 1:01 am

Greetings all,

I hope someone to help with this problem, which is:

happens when I try to install, Module, Template or plugings,

It always gives me access denied ERROR:

Errors like this This is installing a Template
* JFile:: write (/ home/njcastillo/domains/tecnologialibre.net/public_html/joomla16/tmp/install_4d363379a9e78/Tecnologialibre01/images/nav.png): fopen (/ home/njcastillo/domains/tecnologialibre.net/public_html/joomla16 / tmp/install_4d363379a9e78/Tecnologialibre01/images/nav.png) [function.fopen]: failed to open stream: Permission denied
* Unable to write entry

This happens to me with anything I wanted to install additional Joomla 1.6
The main error is ([function.fopen]: failed to open stream: Permission denied)
That apparently is PHP. or a bug of Joomla 1.6

I'm actually looking on the internet about this error and it seems that is something that has to do with PHP.

If anyone can help me with this case, please.

NOTE:
This is not about Joomla 1.5.22, I do not step Joomla 1.6 RC1, now the official stable version is that I pass this error.

Thanks in advance to all
Nelson Castillo
TecnologiaLibre.Net
http://www.tecnologialibre.net
Santo Domingo, Dominicana Republic

restorator
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Mon Dec 24, 2007 10:35 pm

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby restorator » Wed Jan 19, 2011 1:28 am

It looks like your tmp file does not have the correct permissions. Inside your administration panels go to Site>System Information>Directory Permissions and see what it says. You will need to change them on your server. Your ftp program usually has this ability. You need to make the tmp directory writable, in this case: / home/njcastillo/domains/tecnologialibre.net/public_html/joomla16/tmp

Also make sure the extensions you are trying to install are compatible with 1.6. Most of the extensions available are not yet made for 1.6.
I still vote at this late date to change the name of 1.6 to 2.0 to mitigate the confusion

restorator
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Mon Dec 24, 2007 10:35 pm

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby restorator » Wed Jan 19, 2011 1:37 am

I also just noticed a space in the path. You may have simply added a space in between / and home in your path in configuration.php file. "/ home" is very different from "/home" and the server wont be able to find the files properly. If the above post didn't fix the issue this may be it.
I still vote at this late date to change the name of 1.6 to 2.0 to mitigate the confusion

User avatar
njcastillo
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Wed Dec 29, 2010 6:02 pm
Location: Santo Domingo
Contact:

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby njcastillo » Wed Jan 19, 2011 1:45 am

Thank you very much for answering,
Indeed, I've tried to chmod 777 and chmod 775

But do not let me write, as I said, with Joomla 1.6 RC1 version I passed it.
I am also sure I'm installing the module support for Joomla 1.6 thong
I have Joomla 1.5 and this does not pass this error,

I've tried everything
Nelson Castillo
TecnologiaLibre.Net
http://www.tecnologialibre.net
Santo Domingo, Dominicana Republic

User avatar
njcastillo
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Wed Dec 29, 2010 6:02 pm
Location: Santo Domingo
Contact:

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby njcastillo » Wed Jan 19, 2011 1:47 am

I also just noticed a space in the path. You may have simply added a space in between / and home in your path in configuration.php file. "/ home" is very different from "/home" and the server wont be able to find the files properly. If the above post didn't fix the issue this may be it.
Nelson Castillo
TecnologiaLibre.Net
http://www.tecnologialibre.net
Santo Domingo, Dominicana Republic

User avatar
njcastillo
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Wed Dec 29, 2010 6:02 pm
Location: Santo Domingo
Contact:

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby njcastillo » Wed Jan 19, 2011 1:47 am

configuration.php, review the file and everything is ok!
Nelson Castillo
TecnologiaLibre.Net
http://www.tecnologialibre.net
Santo Domingo, Dominicana Republic

RudolfJan
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Aug 23, 2008 9:53 am

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby RudolfJan » Wed Jan 19, 2011 12:46 pm

I have a similar problem. Something seems to be wrong with the file libraries/joomla/filestream/archive/zip.php

The problem is partly solved by replacing the zip.php file with the Joomla 1.5 version, though it does not work when you use language packs. You may try to use the version of Joomla 1.6 RC1 (I cannot try this because I do not have this version).

User avatar
steinsson
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Nov 09, 2010 12:52 pm
Location: Iceland
Contact:

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby steinsson » Wed Jan 19, 2011 12:51 pm

I'm having the same problem over here. I'm running roughly 30 joomla sites on the same server. All sites have the same dir settings. Joomla 1.5.22 works brilliantly but Joomla 1.6 refuses to install any addons due to this error

Code: Select all

JFile: :write(/myuserdirectorypath/public_html/tmp/install_4d36dc92aeb6d/apple_touch_icon.png): fopen(/myuserdirectorypath/public_html/tmp/install_4d36dc92aeb6d/apple_touch_icon.png) [function.fopen]: failed to open stream: Permission denied
* Unable to write entry]

Here I am for example installing a template onto a site which has the whole dir structure chmoded to 775, running on a centos server. Any ideas?

User avatar
njcastillo
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Wed Dec 29, 2010 6:02 pm
Location: Santo Domingo
Contact:

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby njcastillo » Wed Jan 19, 2011 2:45 pm

Since Joomla 1.6 released I've had this problem apparently is a bug of Joomla 1.6 stable, now with Joomla 1.6 RC1 and Joomla 1.5.22 does not pass this, hope someone help us or wait to correct this problem in future Joomla release 1.6.01

Greetings to all
Nelson Castillo
TecnologiaLibre.Net
http://www.tecnologialibre.net
Santo Domingo, Dominicana Republic

User avatar
njcastillo
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Wed Dec 29, 2010 6:02 pm
Location: Santo Domingo
Contact:

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby njcastillo » Wed Jan 19, 2011 2:51 pm

The problem is related to PHP, as seen here:

Code: Select all

[function.fopen]: failed to open stream: Permission denied

http://php.net/manual/es/function.fopen.php

Now I repeat, everything seems to be a bug of Joomla 1.6 version and some operating systems such as Red Hat distributions (Fedora, CentOS, etc.)
Nelson Castillo
TecnologiaLibre.Net
http://www.tecnologialibre.net
Santo Domingo, Dominicana Republic

RudolfJan
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Aug 23, 2008 9:53 am

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby RudolfJan » Wed Jan 19, 2011 3:20 pm

njcastillo wrote:Since Joomla 1.6 released I've had this problem apparently is a bug of Joomla 1.6 stable, now with Joomla 1.6 RC1 and Joomla 1.5.22 does not pass this, hope someone help us or wait to correct this problem in future Joomla release 1.6.01

Greetings to all


My Joomla runs on FreeBSD. Maybe this helps one of the experts. Can you please let us know on which OS you run?

(Joomla 1.6 has a system info menu on the Site menu item that displays this information.

ck2069
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Feb 21, 2009 7:54 pm

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby ck2069 » Wed Jan 19, 2011 6:37 pm

RudolfJan wrote:I have a similar problem. Something seems to be wrong with the file libraries/joomla/filestream/archive/zip.php

The problem is partly solved by replacing the zip.php file with the Joomla 1.5 version, though it does not work when you use language packs. You may try to use the version of Joomla 1.6 RC1 (I cannot try this because I do not have this version).


Same problem on our test-site, the solution mentioned by RudolfJan works, so the problem is somewhere within the 1.6 release version of the zip.php file itself, this will probably be fixed by joomla staff for 1.6.01 soon. Until then run a neutral language site and use an old zip.php file.

pmbx
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Fri Feb 23, 2007 4:55 am

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby pmbx » Thu Jan 20, 2011 3:19 am

Here's a work-around that proves this is a permission issue bug (and probably in the zip.php file coding from the above I suspect). I was successful in installing a template doing the following. First I wanted to install yoo_noble_j16.tar, the YooTheme template.

1. In the tmp folder in the installed Joomla folder, I created the folder yoo_noble_j16.
2. Chmod the permissions for the yoo_noble_j16 folder to 755 (chmod 775 yoo_noble_j16).
3. Ftp'd the yoo_noble_j16.tar directly inside the yoo_noble_j16 folder.
4. Via the command line (with super user privileges) from within that yoo_noble_j16 folder, I executed this: tar -xzvf ./yoo_noble_j16.tar
5. Now back in the Joomla administration interface for my site, in the Extension Manager: Install page, I then use the Install From Directory option to install the template.
There were no errors.

ck2069
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Feb 21, 2009 7:54 pm

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby ck2069 » Thu Jan 20, 2011 3:59 pm

An tracker has been opened for the issue
http://joomlacode.org/gf/project/joomla ... m_id=24517

User avatar
njcastillo
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Wed Dec 29, 2010 6:02 pm
Location: Santo Domingo
Contact:

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby njcastillo » Thu Jan 20, 2011 7:07 pm

Who helped ??????
us with this virus or problem

Code: Select all

        * JFile: :write(/home/user/domains/tecnologialibre.net/public_html/joomla16/tmp/install_4d38872d2d998/mod_gtranslate16/helper.php): fopen(/home/user/domains/tecnologialibre.net/public_html/joomla16/tmp/install_4d38872d2d998/mod_gtranslate16/helper.php) [function.fopen]: failed to open stream: Permission denied
        * Unable to write entry


This is tried to install mod_gtranslate16
Nelson Castillo
TecnologiaLibre.Net
http://www.tecnologialibre.net
Santo Domingo, Dominicana Republic

User avatar
njcastillo
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Wed Dec 29, 2010 6:02 pm
Location: Santo Domingo
Contact:

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby njcastillo » Thu Jan 20, 2011 7:47 pm

:'( A temporary solution to this :'(

:eek: Global Settings -> Server -> FTP Settings :eek:

:eek: Enable FTP Make NO :eek:

:geek: This error does not install any package, of course it is for Joomla 1.6 :geek:
Nelson Castillo
TecnologiaLibre.Net
http://www.tecnologialibre.net
Santo Domingo, Dominicana Republic

RudolfJan
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Aug 23, 2008 9:53 am

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby RudolfJan » Fri Jan 21, 2011 9:40 am

njcastillo wrote::'( A temporary solution to this :'(

:eek: Global Settings -> Server -> FTP Settings :eek:

:eek: Enable FTP Make NO :eek:

:geek: This error does not install any package, of course it is for Joomla 1.6 :geek:


You should read other contributions on this topic for a workaround.

DutchPeer
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Jan 26, 2010 9:41 pm

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby DutchPeer » Sun Jan 30, 2011 4:58 pm

There's an issue reported on the JoomlaCode website ( http://joomlacode.org/gf/project/joomla ... m_id=24517 ) where the issue is described. It has been confirmed but no action has been taken yet.

BeOriginal
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Mar 19, 2011 9:59 pm

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby BeOriginal » Sat Mar 19, 2011 10:32 pm

Joomla 1.6.0 and 1.6.1

\libraries\joomla\filesystem\archive\zip.php
Line 252 >> action delete: , true

Line 252 - zip.php, not working version -
if (JFile::write($destination.DS.zip_entry_name($file), $buffer, true) === false) {

Line 252 - zip.php update, working version -
if (JFile::write($destination.DS.zip_entry_name($file), $buffer) === false) {


This should solve the problem!

Mihc
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Aug 28, 2006 3:23 pm

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby Mihc » Tue Mar 22, 2011 4:15 pm

BeOriginal wrote:Joomla 1.6.0 and 1.6.1

\libraries\joomla\filesystem\archive\zip.php
Line 252 >> action delete: , true

Line 252 - zip.php, not working version -
if (JFile::write($destination.DS.zip_entry_name($file), $buffer, true) === false) {

Line 252 - zip.php update, working version -
if (JFile::write($destination.DS.zip_entry_name($file), $buffer) === false) {


This should solve the problem!



Thank you!
This post really helped me :)

iconic001
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Apr 05, 2011 10:08 am

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby iconic001 » Mon Apr 11, 2011 7:54 am

Mihc wrote:
BeOriginal wrote:Joomla 1.6.0 and 1.6.1

\libraries\joomla\filesystem\archive\zip.php
Line 252 >> action delete: , true

Line 252 - zip.php, not working version -
if (JFile::write($destination.DS.zip_entry_name($file), $buffer, true) === false) {

Line 252 - zip.php update, working version -
if (JFile::write($destination.DS.zip_entry_name($file), $buffer) === false) {


This should solve the problem!



Thank you!
This post really helped me :)




This worked just fine. Thank you also.

sandswimmer
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Feb 16, 2007 9:22 am

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby sandswimmer » Wed Apr 13, 2011 4:24 pm

Joomla 1.6.0 and 1.6.1

\libraries\joomla\filesystem\archive\zip.php
Line 252 >> action delete: , true

Line 252 - zip.php, not working version -
if (JFile::write($destination.DS.zip_entry_name($file), $buffer, true) === false) {

Line 252 - zip.php update, working version -
if (JFile::write($destination.DS.zip_entry_name($file), $buffer) === false) {

Perfect! Many thanks BeOriginal !

yanek
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Tue Apr 19, 2011 10:57 pm

Re: Error # [function.fopen]: failed to open stream: Permiss

Postby yanek » Fri Apr 22, 2011 9:16 pm

this was perfect solution, thank you!


Return to “General Questions/New to Joomla! 2.5”

Who is online

Users browsing this forum: No registered users and 9 guests