JFTP::write: Bad response when editing theme html/CSS
-
- Joomla! Apprentice
- Posts: 11
- Joined: Thu Sep 15, 2005 3:29 pm
JFTP::write: Bad response when editing theme html/CSS
I get the following error when I simply go in and try to change the color scheme of the "rhuk_milkyway" theme:
* JFTP::write: Bad response
Message
* Operation Failed!: failed to open file for writing.
I have all files in the rhuk_milkyway set to chmod 777 as well as the templates folder itself set to chmod 777. Is this some sort of bug??
* JFTP::write: Bad response
Message
* Operation Failed!: failed to open file for writing.
I have all files in the rhuk_milkyway set to chmod 777 as well as the templates folder itself set to chmod 777. Is this some sort of bug??
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: JFTP::write: Bad response when editing theme html/CSS
the file params.ini has to be writable.
Works, with another little cosmetic issue in last SVN 8239
Works, with another little cosmetic issue in last SVN 8239
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 11
- Joined: Thu Sep 15, 2005 3:29 pm
Re: JFTP::write: Bad response when editing theme html/CSS
I actually updated to the latest SVN package release tonite, made sure every folder/file inside of /templates was chmodded to 777. Yet when I have rhuk_milkyway set to default, click on the name of the template, I see the following:
Menus: Cannot assign Default Template
Also when I try to change the color theme, I still receive the following errors:
* JFTP::write: Bad response
Message
* Operation Failed!: failed to open file for writing.
Menus: Cannot assign Default Template
Also when I try to change the color theme, I still receive the following errors:
* JFTP::write: Bad response
Message
* Operation Failed!: failed to open file for writing.
- infograf768
- Joomla! Master
- Posts: 19133
- Joined: Fri Aug 12, 2005 3:47 pm
- Location: **Translation Matters**
Re: JFTP::write: Bad response when editing theme html/CSS
Have you re-installed?bawalker wrote: I actually updated to the latest SVN package release tonite, made sure every folder/file inside of /templates was chmodded to 777. Yet when I have rhuk_milkyway set to default, click on the name of the template, I see the following:
Menus: Cannot assign Default Template
Also when I try to change the color theme, I still receive the following errors:
* JFTP::write: Bad response
Message
* Operation Failed!: failed to open file for writing.
The only error I still get is here http://forum.joomla.org/index.php/topic,196120.0.html
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group
-
- Joomla! Apprentice
- Posts: 11
- Joined: Thu Sep 15, 2005 3:29 pm
Re: JFTP::write: Bad response when editing theme html/CSS
I reinstalled (keeping only the configuration file) and after making the /templates folder 777 writeable, I'm still getting the same JFTP issue as before. I installed using the SVN nightly build from tonite. params.ini is writeable, as well as the entire rhuk_milkyway folder.
-
- Joomla! Apprentice
- Posts: 11
- Joined: Thu Sep 15, 2005 3:29 pm
Re: JFTP::write: Bad response when editing theme html/CSS
Has this issue been investigated or duplicated yet by anyone else? I will be trying to duplicate on a second hosting account.
- kelb
- Joomla! Guru
- Posts: 602
- Joined: Mon Oct 02, 2006 3:08 am
- Location: Turkey
- Contact:
Re: JFTP::write: Bad response when editing theme html/CSS
I think this is not an issue for latest SVNs.
Every soul will taste of death.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Wed Aug 27, 2008 9:54 am
Re: JFTP::write: Bad response when editing theme html/CSS
I had this error aswell.
Turned out the ftp folder was wrong. It should look something like this in the configuration.php file (along with the rest of the ftp details being filled in).
var $ftp_root = '/httpdocs/
or /public_html/
etc
Turned out the ftp folder was wrong. It should look something like this in the configuration.php file (along with the rest of the ftp details being filled in).
var $ftp_root = '/httpdocs/
or /public_html/
etc
-
- Joomla! Apprentice
- Posts: 11
- Joined: Thu Sep 15, 2005 3:29 pm
Re: JFTP::write: Bad response when editing theme html/CSS
The only temporary way I've found around this is to create a blank configuration.php file, upload it and give it 777 permissions. Then at the end, copy the configuration settings that joomla gives and post it into the configuration.php file itself. It stinks that this is a work around, but at least it does work... for now.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Mon Nov 10, 2008 8:50 pm
Re: JFTP::write: Bad response when editing theme html/CSS
I noticed this started happening to me when I goofed with my FTP server settings. Some unix FTP services like proftpd will force a homedir ~ and jail you to it. So a path of or will jail you to or . If your FTP server isn't forcing this "jail" then using a path like may be cause the FTP client in Joomla to try and open on the server instead of . You can try using the absolute path if you know it, ie: or make the path relative by dropping the first backslash: ...
Hope this helps anybody who lands here via google!
Code: Select all
/www
Code: Select all
/public_html
Code: Select all
/home/user/www
Code: Select all
/home/user/public_html
Code: Select all
/www
Code: Select all
/www
Code: Select all
/home/user/www
Code: Select all
/home/user/www
Code: Select all
www/
Hope this helps anybody who lands here via google!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue Jan 13, 2009 1:29 pm
Re: JFTP::write: Bad response when editing theme html/CSS
Eu resolvi este problema apenas colocando o nome de usuário e o diretório raiz e funcionou
I to resolved the problem, I was put
For example:
not put the name /home
I to resolved the problem, I was put
For example:
Code: Select all
/usuário/public_html/
Code: Select all
/user/public_html/
-
- Joomla! Apprentice
- Posts: 30
- Joined: Wed Apr 05, 2006 3:11 pm
Re: JFTP::write: Bad response when editing theme html/CSS
Beware - for some reason the FTP details cant be updated in J1.5.9 ( and some lower issues) using the backend. I get :-
* JFTP::write: Bad response
* JFTP::delete: Bad response
* JFTP::write: Bad response
* An Error has occurred! Unable to open configuration.php file to write!
So, I tried setting FTP details by hand in to the config file ( which WAS writable) - and , once I ensured I had the syntax right, it worked!
NB... I may have had more trouble than most as my host uses suPHP protection - which IS a good thing but takes ages to get working correctly.
* JFTP::write: Bad response
* JFTP::delete: Bad response
* JFTP::write: Bad response
* An Error has occurred! Unable to open configuration.php file to write!
So, I tried setting FTP details by hand in to the config file ( which WAS writable) - and , once I ensured I had the syntax right, it worked!
NB... I may have had more trouble than most as my host uses suPHP protection - which IS a good thing but takes ages to get working correctly.
- viks
- Joomla! Apprentice
- Posts: 49
- Joined: Mon Jan 19, 2009 11:57 am
- Location: Delhi
- Contact:
Re: JFTP::write: Bad response when editing theme html/CSS
When i am going to install any of the module or components on my website then i am getting these errors. Can anyone explain me what should i do i have tried lot with the file permissions or changes in config.php files. Just have a look in the attachments.
I am getting these messages.
Thanks in Advance.
I am getting these messages.
Thanks in Advance.
You do not have the required permissions to view the files attached to this post.
vikram
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Feb 18, 2009 5:09 pm
Re: JFTP::write: Bad response when editing theme html/CSS
I'm somewhat new to all of this as well and have been wrestling with this issue for several hours now.
What I do know is that chaning permissions on some, or all of the files in your web file system is a horrible security hole. Don't do that unless you are just testing on a local server or something.
Some solutions say to give the server ownership of the files. This option most likely won't work on a hosted website as you don't have that level of permissions (i.e. you don't have the ability to assign permissions to the account that is running Apache)
My original Joomla install did NOT use the FTP service, but this was a mistake. Without using it you will very likely run into permissions issues (unless you are running the server yourself and have max permissions).
I then enabled the FTP. Naturally, I couldn't use the online system to update it because I was getting the bad response error and the system didn't have enough permission to edit my configuration.php file. This was a frustrating battle also, so I just edited it locally and uploaded it back up with the changes I made below.
I was able to log into my system with no problem using an FTP or other clients, but for some reason it didn't want to work via Joomla.
Then the light went on. Remember that every FTP account that you create can be assigned a root, or starting folder. When you log into the system with one account it may drop you into one folder and with another account into another folder. This is by design, but it is critical that the Jooomla FTP settings mesh with the FTP account that you are using.
Once I updated the FTP Root on my system to public_html/j1 (j1 is the joomla folder for this particular test, public_html is the public root of my website) it worked great.
Notice, though, the absense of a preceeding /
This is because the folder is being referenced relatively from the root of the FTP login that I have specified. I could create an account that would log me right into the public_html folder at which point I would only have to put j1 in the FTP Root setting.
If I put a preceeding "/" character, it is going to reference the folder from the root of your whole account, so putting in /public_html/j1 will never work because that folder doesn't exist.
Anyhow, this may seem totally obvious to many of you and you're probably laughing that i had so much trouble, but it was nothing short of frustrating for me. I hope this helps a little bit.
What I do know is that chaning permissions on some, or all of the files in your web file system is a horrible security hole. Don't do that unless you are just testing on a local server or something.
Some solutions say to give the server ownership of the files. This option most likely won't work on a hosted website as you don't have that level of permissions (i.e. you don't have the ability to assign permissions to the account that is running Apache)
My original Joomla install did NOT use the FTP service, but this was a mistake. Without using it you will very likely run into permissions issues (unless you are running the server yourself and have max permissions).
I then enabled the FTP. Naturally, I couldn't use the online system to update it because I was getting the bad response error and the system didn't have enough permission to edit my configuration.php file. This was a frustrating battle also, so I just edited it locally and uploaded it back up with the changes I made below.
I was able to log into my system with no problem using an FTP or other clients, but for some reason it didn't want to work via Joomla.
Then the light went on. Remember that every FTP account that you create can be assigned a root, or starting folder. When you log into the system with one account it may drop you into one folder and with another account into another folder. This is by design, but it is critical that the Jooomla FTP settings mesh with the FTP account that you are using.
Once I updated the FTP Root on my system to public_html/j1 (j1 is the joomla folder for this particular test, public_html is the public root of my website) it worked great.
Notice, though, the absense of a preceeding /
This is because the folder is being referenced relatively from the root of the FTP login that I have specified. I could create an account that would log me right into the public_html folder at which point I would only have to put j1 in the FTP Root setting.
If I put a preceeding "/" character, it is going to reference the folder from the root of your whole account, so putting in /public_html/j1 will never work because that folder doesn't exist.
Anyhow, this may seem totally obvious to many of you and you're probably laughing that i had so much trouble, but it was nothing short of frustrating for me. I hope this helps a little bit.
- michael_king
- Joomla! Intern
- Posts: 69
- Joined: Mon Jul 28, 2008 3:31 am
Re: JFTP::write: Bad response when editing theme html/CSS
Briefly, when using 1.5.9 we found that we needed to include the trailing / For example /public_html/subfolder/
Without the trailing / we could not save configuration settings
Without the trailing / we could not save configuration settings
- mcsmom
- Joomla! Exemplar
- Posts: 7897
- Joined: Thu Aug 18, 2005 8:43 pm
- Location: New York
- Contact:
Re: JFTP::write: Bad response when editing theme html/CSS
Are you using IIS or Apache?
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Apr 09, 2009 5:30 pm
Re: JFTP::write: Bad response - Joomla FTP not working
I was also having this problem, immediately after the default Joomla install v. 1.5.10.
I could add users and such (which i think is a database operation), but couldn't change timezone or other "Global Settings".
I'd get this error:
The default install had set
So I disabled FTP, since the mouseover says "Enable FTP upload capabilities instead of the normal method". The normal method appears to give me no problem, I can change now my timezone etc.
My problem is solved as far as I can tell, by disabling FTP.
I still cannont turn the FTP on, or I get these errors:
And I think I know why:
using my hoster's user/pw they gave me, I can SFTP & SSH (terminal etc.), and access any directory.
but if I FTP I am locked into one directory, which is NOT my Joomla dir (since the Joomla install is a development site, not a live site right now).
So If I try to tell Joomla to use FTP, it can never access the directory it needs to, regardless of what path I give it.
This is after getting my hosting guys to change all the permissions on the joomla directory to my user . The permissions used to be user:group = root:root, which meant i couldn't make any new folders/files, so even if FTP had worked I would have still have write-permissions problems with the Joomla FTP settings.
If Joomla had built-in SFTP, then it would work, but it only has non-secure FTP, which my hoster is more restrictive of.
You can probably find out what your problem is by manually FTPing into your site: use whatever FTP program you like, type in the user/pw your joomla site has in it's "Global settings" page, and see what directory your hoster starts you off in.
Then try to find your joomla directory (the one with configuration.php in it).
Then try to create a folder and/or delete that folder inside the joomla directory (to check your permissions on the dir).
If all those go well, then you now know the host, user, pw and directory you need to type into the Joomla settings page.
If you have problems with any of those, they you may as well disable FTP (someone could enlighten me as to what features I lose by disabling FTP, I'm a j00mla n00bie) OR SSH in/tell your hoster to correct your permissions, or type in the correct path you needed to get to you Joomla directory, or whatever you found was the problem.
PS. I also found that I can easily change the FTP settings, before re-enabling FTP, when "Enable FTP" = NO. Then, using the "nromal" mehtod, I can set FTP settings, then enable FTP when they are correct. That might help some of you.
I could add users and such (which i think is a database operation), but couldn't change timezone or other "Global Settings".
I'd get this error:
Code: Select all
JFTP::write: Bad response
An Error has occurred! Unable to open configuration.php file to write!
Code: Select all
Enable FTP = YES
My problem is solved as far as I can tell, by disabling FTP.
I still cannont turn the FTP on, or I get these errors:
Code: Select all
JFTP::write: Bad response
JFTP::delete: Bad response
JFTP::write: Bad response
An Error has occurred! Unable to open configuration.php file to write!
using my hoster's user/pw they gave me, I can SFTP & SSH (terminal etc.), and access any directory.
but if I FTP I am locked into one directory, which is NOT my Joomla dir (since the Joomla install is a development site, not a live site right now).
So If I try to tell Joomla to use FTP, it can never access the directory it needs to, regardless of what path I give it.
This is after getting my hosting guys to change all the permissions on the joomla directory to my user . The permissions used to be user:group = root:root, which meant i couldn't make any new folders/files, so even if FTP had worked I would have still have write-permissions problems with the Joomla FTP settings.
If Joomla had built-in SFTP, then it would work, but it only has non-secure FTP, which my hoster is more restrictive of.
You can probably find out what your problem is by manually FTPing into your site: use whatever FTP program you like, type in the user/pw your joomla site has in it's "Global settings" page, and see what directory your hoster starts you off in.
Then try to find your joomla directory (the one with configuration.php in it).
Then try to create a folder and/or delete that folder inside the joomla directory (to check your permissions on the dir).
If all those go well, then you now know the host, user, pw and directory you need to type into the Joomla settings page.
If you have problems with any of those, they you may as well disable FTP (someone could enlighten me as to what features I lose by disabling FTP, I'm a j00mla n00bie) OR SSH in/tell your hoster to correct your permissions, or type in the correct path you needed to get to you Joomla directory, or whatever you found was the problem.
PS. I also found that I can easily change the FTP settings, before re-enabling FTP, when "Enable FTP" = NO. Then, using the "nromal" mehtod, I can set FTP settings, then enable FTP when they are correct. That might help some of you.
- sf_gabe
- Joomla! Apprentice
- Posts: 11
- Joined: Tue May 12, 2009 9:13 pm
- Location: San Francisco, CA
- Contact:
Re: JFTP::write: Bad response when editing theme html/CSS
That was exactly what I was looking for, I've been banging my head up against it for hours.swettling wrote:I'm somewhat new to all of this as well and have been wrestling with this issue for several hours now.
What I do know is that chaning permissions on some, or all of the files in your web file system is a horrible security hole. Don't do that unless you are just testing on a local server or something.
Some solutions say to give the server ownership of the files. This option most likely won't work on a hosted website as you don't have that level of permissions (i.e. you don't have the ability to assign permissions to the account that is running Apache)
My original Joomla install did NOT use the FTP service, but this was a mistake. Without using it you will very likely run into permissions issues (unless you are running the server yourself and have max permissions).
I then enabled the FTP. Naturally, I couldn't use the online system to update it because I was getting the bad response error and the system didn't have enough permission to edit my configuration.php file. This was a frustrating battle also, so I just edited it locally and uploaded it back up with the changes I made below.
I was able to log into my system with no problem using an FTP or other clients, but for some reason it didn't want to work via Joomla.
Then the light went on. Remember that every FTP account that you create can be assigned a root, or starting folder. When you log into the system with one account it may drop you into one folder and with another account into another folder. This is by design, but it is critical that the Jooomla FTP settings mesh with the FTP account that you are using.
Once I updated the FTP Root on my system to public_html/j1 (j1 is the joomla folder for this particular test, public_html is the public root of my website) it worked great.
Notice, though, the absense of a preceeding /
This is because the folder is being referenced relatively from the root of the FTP login that I have specified. I could create an account that would log me right into the public_html folder at which point I would only have to put j1 in the FTP Root setting.
If I put a preceeding "/" character, it is going to reference the folder from the root of your whole account, so putting in /public_html/j1 will never work because that folder doesn't exist.
Anyhow, this may seem totally obvious to many of you and you're probably laughing that i had so much trouble, but it was nothing short of frustrating for me. I hope this helps a little bit.
Note for others: This was causing a problem in Phoca Gallery thumbnail creation for me or else I wouldn't have noticed it.
Zap! Squeak! Design!
print.web.identity.illustration
(...and a whole lot of Joomla too)
http://www.zapsqueak.com
print.web.identity.illustration
(...and a whole lot of Joomla too)
http://www.zapsqueak.com
-
- Joomla! Fledgling
- Posts: 4
- Joined: Tue Jun 16, 2009 3:15 am
-
- Joomla! Apprentice
- Posts: 6
- Joined: Thu Oct 30, 2008 8:51 am
Re: JFTP::write: Bad response when editing theme html/CSS
Men,!!!
found it for apache: use the root path ftp: "httpdocs/" and configuration.php must have write access.
that´s it.
enjoy jcsarmento
found it for apache: use the root path ftp: "httpdocs/" and configuration.php must have write access.
that´s it.
enjoy jcsarmento
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Oct 01, 2008 6:38 am
Re: JFTP::write: Bad response when editing theme html/CSS
Hello All,
So i tried all the various methods.
Manually edited the config.php file, upload via ftp client. tried with the preceeding / and without.
what i realized was that i could edit and change my templates and global configs prior to setting my ftp settings.
i changed enable ftp to 0. and now i can edit my html, and global configs.
so the question is, what is the benefit to having ftp set to yes? that is if you can configure it correctly.
and what is the disadvantage of having it set to no?
aloha
So i tried all the various methods.
Manually edited the config.php file, upload via ftp client. tried with the preceeding / and without.
what i realized was that i could edit and change my templates and global configs prior to setting my ftp settings.
i changed enable ftp to 0. and now i can edit my html, and global configs.
so the question is, what is the benefit to having ftp set to yes? that is if you can configure it correctly.
and what is the disadvantage of having it set to no?
aloha
-
- Joomla! Enthusiast
- Posts: 233
- Joined: Fri Oct 12, 2007 7:07 pm
Re: JFTP::write: Bad response when editing theme html/CSS
I was getting JFTP::write: Bad response when attempting to upload extensions or save settings. my "var $ftp_root = '/public_html/~sacc';" was that. so, I removed the "~sacc" and presto! Save-o!
CH
CH
-
- Joomla! Apprentice
- Posts: 6
- Joined: Thu Oct 30, 2008 8:51 am
Re: JFTP::write: Bad response when editing theme html/CSS
forget my previous post about writing access , it´s not secure.
change de owner of the file to apache and it´s solved.
change de owner of the file to apache and it´s solved.
- olyma
- Joomla! Apprentice
- Posts: 8
- Joined: Thu Jan 21, 2010 4:22 pm
- Location: Los Angeles region
Changes I made to make the FTP work
I finally figured it out in my case too. To be able to write to the configuration.php file and make the FTP work in Joomla, I changed the host to just be the site URL I’m working with, and when I checked the root directory from the host-provider specifically within my FTP program, unlike another provider I’ve used, the root was simply a / , so I changed the root directory in the configuration.php file to simply be a / .
varftp_host = 'name-of-my-site.com';
var $ftp_root = '/';
And now the FTP works! Yeah!!!!!!
varftp_host = 'name-of-my-site.com';
var $ftp_root = '/';
And now the FTP works! Yeah!!!!!!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Jun 11, 2010 10:14 pm
Re: JFTP::write: Bad response when editing theme html/CSS
I had the same problem, it turns out that my language files hadn't installed properly. I copied them over from a previous installation and it's working like a charm.
-
- Joomla! Apprentice
- Posts: 10
- Joined: Sat Jun 20, 2009 1:25 pm
- Location: Manila, Philippines
- Contact:
Re: Changes I made to make the FTP work
olyma wrote:I finally figured it out in my case too. To be able to write to the configuration.php file and make the FTP work in Joomla, I changed the host to just be the site URL I’m working with, and when I checked the root directory from the host-provider specifically within my FTP program, unlike another provider I’ve used, the root was simply a / , so I changed the root directory in the configuration.php file to simply be a / .
varftp_host = 'name-of-my-site.com';
var $ftp_root = '/';
And now the FTP works! Yeah!!!!!!
Yeah, this worked for me also. I retained varftp_host at 127.0.0.1 but changed ftp_root to "/".
I am now wondering how changing the root will affect the site since I want a separate folder for ftp. Anyway, thank you for the post olyma.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Mon Sep 13, 2010 12:14 pm
Re: JFTP::write: Bad response when editing theme html/CSS
Check your sites error log to see if there is more information. You are going to have to dig into this one since it is an environment (site) issue. There must be something different about this site from the other.
The save should be like all the other saves in the theme options.
The save should be like all the other saves in the theme options.
Please read forum rules regarding the use of signatures: http://forum.joomla.org/viewtopic.php?f=8&t=65