0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

How to fix when your template goes UNWRITABLE

    • Cybernet's Avatar
    • Cybernet
    • Rocketeer
    • Posts: 60
    • Thanks: 0

    How to fix when your template goes UNWRITABLE

    Posted 15 years 4 weeks ago
    • I found this in joomla org its not my post

      In administrator\components\com_template\controller.php

      I found
      Code:
      // Try to make the params file writeable
      if (!$ftp && JPath::isOwner($file) && !JPath::setPermissions($file, '0755')) {
      JError::raiseNotice('SOME_ERROR_CODE', 'Could not make the template parameter file writable');
      }

      $return = JFile::write($file, $txt);

      // Try to make the params file unwriteable
      if (!$ftp && JPath::isOwner($file) && !JPath::setPermissions($file, '0555')) {
      JError::raiseNotice('SOME_ERROR_CODE', 'Could not make the template parameter file unwritable');
      }

      just change the 0555 to 0755 or 0777 and its fixed

      Why in the world would this file be changing file permissions to 555? Who the heck uses perms of 555 to "protect" a file?

      Hey, Joomla Developers, do you have any clue at all how many people have run into problems with this crap?

      How about this, do you have any idea how many people on your own forums have problems with this crap that you have not assisted to solve the problem?

      Here's one more, wonder why these forums keep shutting down from all the traffic? It's because you don't answer questions (or solve problems you created, like this one) here on your own forums to help solve users problems, LIKE THIS STUPID PROBLEM!

      It is NOT because Joomla is so popular. It's because you leave crap like this unanswered.

      igrimpe (thank you for your post!) posts the details to the file, I read it, I changed the 555's located in that file (there are several places) to 644 and hey, guess what? The problem is solved.

      But this thread has NO REPLIES! Not a one. Why is that?

      It's not the color of the words unwritable that is the problem, its the Joomla developers nifty idea of setting file perms to 555, ON SEVERAL FILES!

      100's if not 1000's of posts on this forum (and others, google this problem to see) on this very topic and not a single response to any of them that is correct or solves the problem.

      If you're going to set file permissions automatically, Joomla Developers, you might want to add an area to let the file permissions be set correctly by the users in the admin panel who know what file perms need to be on thier own installations.

      WHO THE HELL USES 555 for file permissions?

      One more thing, the brainiac that wrote this long winded, just about worthless article, docs.joomla.org/Migrating_from_1.0.x_to_1.5_Stable should get some help.

      All those words to fill a page do NOT make a good manual.

      The jump from 1 to 1.5 is fairly painless using the migrator tools. (on a small site)

      Step 1) Backup the site.

      Step 2) Make sure we have a good backup.

      Step 3) Install component: Migrator.

      Step 4) Read each link on migrator page and then start migrator and download SQL file created.

      Step 5) Install 1.5 Joomla.

      Step 6) Install migrator assistant Then run assistant and point it to the SQL file generated by the Migrator that we downloaded.

      Step 7) Lets check the site now. It's up.

      Step 8) Spend 2 hours reading all the posts with questions and vague or incorrect answers to the problem of editing a template and the ini not being writable, and then go view this thread with the issue and solution.

      forum.joomla.org/viewtopic.php?p=1209369

      Step 9) Now you're on your way, configure you site as you always did in the past...


      Less than 10 steps. Done.


      555 file permissions.... WTF were/are you thinking?
    • Last Edit: 15 years 1 week ago by Cybernet.
    • Joe Halleck's Avatar
    • Joe Halleck
    • Preeminent Rocketeer
    • Posts: 5481
    • Thanks: 68
    • Never give up!

    Re: How to fix when your template goes UNWRITABLE

    Posted 15 years 4 weeks ago
    • Many times using Joomla FTP mode with a ID with full rights to your site dirs can fix many of these issues. FTP mode can set the permissions and save the file where apache access can't.

      We have also discovered some of the archives files at RT have some very odd permissions saved because whoever archived them has some odd permissions setup when packing them up. This only seems to be a problem when you unarchived the file directly on the server itself and the unpacking sets the odd permissions. I have also seen some badly configured FTP/SCP clients that "update" permissions to whatever the client is set to save them as and those settings are too restrictive or badly configured. Always check permissions...you never can know what you might find. :)
    • Magento - phpBB3 - Kunena - RokBridge Specialist
      No Secure Tab posts unless requested.
      Use the Thank You and Life Preserver Buttons!
      Your signature is also great place for setup details...help us help you!
    • Rich Bean's Avatar
    • Rich Bean
    • Elite Rocketeer
    • Posts: 1194
    • Thanks: 1

    Re: How to fix when your template goes UNWRITABLE

    Posted 15 years 4 weeks ago
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: How to fix when your template goes UNWRITABLE

    Posted 15 years 3 weeks ago
    • hi cybernet,

      you may want to edit your first post and use quotes, at first i had the impression this is your personal opinion, but it seems these are quotes from the joomla forum.

      i personally never had any issues with this "joomla issue", even if the file said unwritable, my changes saved. on other sites i enabled ftp layer and everything was fine.

      i agree with richard that leaving params.ini on 777 is not such a great idea.

      anyway, i can't believe those posts in the joomla forum, if anyone reacts as insulting to me i would not feel tempted to help in any way. in the end, joomla is free to everyone and the developers deserve a little more respect and appreciation.

      kat :)
    • Kat05 / QA Lead & Support / Germany
    • Cybernet's Avatar
    • Cybernet
    • Rocketeer
    • Posts: 60
    • Thanks: 0

    Re: How to fix when your template goes UNWRITABLE

    Posted 15 years 3 weeks ago
    • yes for sure kat the def. do deserve. when i was searching the forum i was almost laughing when i read this and like always there is always someone that has to be a jerk.and i believe at the the top i wrote read this and i forgot to put the quote on. By no means was i trying to make paople think this was my quote as i could never be so rude anyway. 8)
    • Kathy Rose's Avatar
    • Kathy Rose
    • Elite Rocketeer
    • Posts: 726
    • Thanks: 2
    • Freelance web development and design

    Re: How to fix when your template goes UNWRITABLE

    Posted 15 years 3 weeks ago
    • I do have that 555 permission problem....the template params.ini file reverts to unwritable (555) all the time and my template changes were sometimes taking effect, and sometimes not taking effect. It was really strange.

      I had no luck changing the permission, and neither did my hosting company.

      I saw a suggestion here to enable the ftp layer but (I am embarrassed to admit this) I was not able to figure out what the "FTP Root" would be which is a vital piece of information in getting that to work. :oops:

      So I did have to set the darn thing to 777, which held, unlike the 755 designation which kept reverting to 555. I changed it back I was done, of course.

      However it is pretty aggravating!
    • Kathy
      KT Web Design
      developing Joomla websites in the sweet, sunny South
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29363
    • Thanks: 956
    • Volunteer

    Re: How to fix when your template goes UNWRITABLE

    Posted 15 years 3 weeks ago
    • Kathy Rose's Avatar
    • Kathy Rose
    • Elite Rocketeer
    • Posts: 726
    • Thanks: 2
    • Freelance web development and design

    Re: How to fix when your template goes UNWRITABLE

    Posted 15 years 3 weeks ago
    • Thanks, Henning! It seems it wants the remote site path as shown in Filezilla when I'm at the joomla directory.

      www/mysubdomain/joomladirectory

      The Hostgator documentation for the FTP Root says it will be:

      home/username

      So that was tripping me up...I was trying to include that along with the rest of my path.

      All fixed now -- everything is behaving nicely, just like Kat05 said it would.
    • Kathy
      KT Web Design
      developing Joomla websites in the sweet, sunny South
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29363
    • Thanks: 956
    • Volunteer

    Re: How to fix when your template goes UNWRITABLE

    Posted 15 years 3 weeks ago
    • nice ...
      I already bookmarked some of Kats configuration-walk-throughs ... and will add this one to the list
    • Joe Halleck's Avatar
    • Joe Halleck
    • Preeminent Rocketeer
    • Posts: 5481
    • Thanks: 68
    • Never give up!

    Re: How to fix when your template goes UNWRITABLE

    Posted 15 years 3 weeks ago
    • Why I always suggest to use the same path your ftp client uses when setting up ftp mode. Each host can make your ftp "home" a bit different. Glad you got it sorted.
    • Magento - phpBB3 - Kunena - RokBridge Specialist
      No Secure Tab posts unless requested.
      Use the Thank You and Life Preserver Buttons!
      Your signature is also great place for setup details...help us help you!

Time to create page: 0.075 seconds