Joomla! Discussion Forums



It is currently Tue Feb 09, 2010 9:34 pm (All times are UTC )

 


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 new topic Reply to topic  [ 13 posts ] 
Author Message
Posted: Thu Jan 11, 2007 12:58 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jan 11, 2007 8:36 am
Posts: 10
Hi,

I have seen this come up alot in the forum and the standard answer seems to be to ensure you have chmod 777 the relevant directories, however in my case the issue was joomlas handling of trailing backslashes

My host, Crystone,  is running Apache/1.3.34 (Debian) PHP/4.4.4-0.dotdeb.3 with Suhosin-Patch AuthMySQL/4.3.9-2 mod_ssl/2.8.22 OpenSSL/0.9.7e

The problem I found was that it didnt like directories with a trailing back slash. You can check this very easily:



Untitled


phpinfo();
mkdir ("/yourhomedirectory/test/", 0777); <- trailing backslash
?>



If you can create the directory then the problem is else where. If you cant then try to open joomla\administrator\components\com_installer\component\component.class.php and change like so


if(!file_exists($this->elementDir()) && !mosMakePath(substr($this->elementDir(), 0, -1))) {
...


if(!file_exists($this->componentAdminDir()) && !mosMakePath(substr($this->componentAdminDir(), 0, -1))) {
...

This chops the trailing back slash off and sorted all my problems.

/Tom


Last edited by thomasbailey on Thu Jan 11, 2007 1:09 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Thu Jan 11, 2007 1:00 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jan 11, 2007 8:36 am
Posts: 10
I should also add that I suspect the root of the problem might be Suhosin-Patch

For those using JCE and having the same problem with its plug-ins, joomla\administrator\components\com_jce\installer\plugins\plugins.class.php

if(!file_exists((substr($this->elementDir(), 0, -1))) && !mosMakePath(substr($this->elementDir(), 0, -1))) {

/Tom


Last edited by thomasbailey on Thu Jan 11, 2007 2:26 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Tue Jan 16, 2007 8:56 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Mar 20, 2006 8:09 pm
Posts: 4
Thanks Tom, this solvd my problem :)

Daniel


Top
  E-mail  
 
Posted: Thu Jan 25, 2007 12:17 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Jan 25, 2007 9:33 am
Posts: 1
i installed safejjomla and resolved this problem


Top
   
 
Posted: Wed Feb 21, 2007 9:52 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Aug 26, 2005 10:19 am
Posts: 20
Thank you!!!!!!    :)


Top
  E-mail  
 
Posted: Wed Mar 14, 2007 2:28 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 03, 2006 2:20 am
Posts: 47
Thaaaaaaaaaaaaaaaaaaanx!  :laugh: I tried all the other proposed solutions, this one works like a charm!


Top
  E-mail  
 
Posted: Sun Mar 18, 2007 9:19 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Mar 30, 2006 10:25 pm
Posts: 5
Location: Cali, Colombia
uuuuaaaooo...



THANKSSSSS A LOOT.

After many hours of searching the solution.. i have read your post and fix everything.!!!


god Bless you.

Joomla is the best!! :D :D :D :D :D :D


Andres Pinta  -  http://www.calicristiana.com


Top
   
 
Posted: Thu Mar 22, 2007 9:15 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Feb 20, 2007 1:17 am
Posts: 29
Location: New Zealand
OMG dude, you're a legend!!! I was about ready to rip out my hair!!! Thanks heaps!

_________________
No I am not a hobbit. Nor do I know any hobbits or consort with any. And no, I do not own any sheep, know any sheep or consort with any sheep.


Top
  E-mail  
 
Posted: Thu Jun 21, 2007 11:11 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Jun 12, 2007 10:51 pm
Posts: 8
I thought that this could be the light at the end of the tunnel, but still no solution for me...  :'(
I tried everything, I even chmod all my files and directories to 0777, I tried to install the components with the zip process, web process, modified the component.class.php file like you said, but still getting the same errors... I really don't know what else to do... I'm trapped...  :(

***UPDATE***
Thanks to a safe mode patch, I solved the situation. Thanks again to pingvin13 for giving me the link to download the patch!


Last edited by Actress on Fri Jun 22, 2007 3:53 pm, edited 1 time in total.

Top
   
 
Posted: Tue Oct 02, 2007 1:28 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Jan 29, 2007 8:44 am
Posts: 1
Thanks Thomas that really does the trick, saved me from more Gray hairs on that one :) cheers mate

Ingi


Top
   
 
Posted: Wed Oct 17, 2007 10:48 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Sep 16, 2007 9:05 am
Posts: 47
Hi there just checked your post
i am having problem with installling a new template . when  i try, its say failed to upload and it can not make new directory . i have just used a ftp to see where you have gone.what line should i be looking at.i am not a programmer but i am very interested .i am not sure where to type the  text to change line.
i am using a a localhost so i wont damage my site , its only for test. can you give me more detail please or ido i need to download a patch to rectify my headache
thank you

MR jones


Top
   
 
Posted: Wed Oct 17, 2007 11:15 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Sep 16, 2007 9:05 am
Posts: 47
Hi Again
i had another look in the file. and i can see these files do i need to change  them to like yours . i am referring from my above post

if(!file_exists($this->elementDir()) && !mosMakePath($this->elementDir())) {
$this->setError( 1, 'Failed to create directory "' . $this->elementDir() . '"' );
return false;
}

if(!file_exists($this->componentAdminDir()) && !mosMakePath($this->componentAdminDir())) {
$this->setError( 1, 'Failed to create directory "' . $this->componentAdminDir() . '"' );
return false;

MR jones


Top
   
 
Posted: Thu Dec 20, 2007 12:14 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Dec 19, 2007 11:36 pm
Posts: 22
hey ya!

thanks for this very informative thread. i tried it though and still doesnt work. it was able to solve the component installation though. yey!

however, my themes still not working. tried chmod even to 777, tried ftp, reinstall, etc.

theres something about globals/safemode that people are saying. should i check that out? if i need to contact my host, could you please tell me what specific question to ask? and what i need them to do?

thanks a bunch!

_________________
You see, whoever controls technology, controls the world.

from: Superman Returns (2006)
-- Lex Luthor


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

Quick reply

 



Who is online

Users browsing this forum: bytzu007 and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group