JFusion

From Kb_JMY(晉明夷)

Jump to: navigation, search

jFusion



Bugs &Errors

JFolder::create: Could not create directory

  • Ref:
  1. docs.joomla.org -- How_to_solve_Installation_errors_Extension_Manager
  2. Greenhost.com.hk -- support ticket#883286__2009/06/12
  3. Greenhost.com.hk -- Urgent! -- Cannot install Joomla module! 2008/04/04 12:03
  4. Greenhost.com.hk -- Error Again -> JFolder::create: Could not create directory, pls.help! (只是關閉了 php safe mode)
  5. jfusion.org -- installation error: with "Could not create directory"!
  • Assume:
  1. Joomla: VirtueMart_1.1.2_eCommerce_Bundle_Joomla_1.5.9.tar.gz + Joomla_1.5.9_to_1.5.11-Stable-Patch_Package.tar.gz
  2. jFusion: jfusion_1.1.3RC_k09_0515.zip
  • The Errors:
  • I have just tried to install a Joomla addon "jFusion", but failed and displayed the following error:
******************************
* JFolder::create: Could not create directory
* Component Install: Failed to create directory.: "/home/yogapd/domains/mysite.org/public_html/hkb/components/com_jfusion"
*******************************


  • Then I manually created the folder "com_jfusion" on both directories "/home/yogapd/domains/mysite.org/public_html/hkb/components/" & "/home/yogapd/domains/mysite.org/public_html/hkb/administrator/components/
  • and try the installation again, but still failed with the error below:
*********************
* It was not possible to copy the selected file.
* JInstaller::install: Failed to copy file: /home/yogapd/domains/mysite.org/public_html/hkb/tmp/install_4a33190977435/front/metadata.xml to /home/yogapd/domains/mysite.org/public_html/hkb/components/com_jfusion/metadata.xml
***************************
  • Solution:
-> No such problems if the web-hosting server is in php-fcgi mode
  • For apache mod web-server, ask your web-hosting company to set:
chown -R apache_username:apache_username /home/joomla_directory
-> but...更改 apache_user之後 , 你係唔可以再用ftp上傳或修改文件, 因為 該資料夾 擁有人 唔再係你.
  • so the best method is to:
change the permissions of all folders and files under "public_html/hkb" to 777 when you need to setup Joomla extensions
-> and change them back to 755 and 644 respectively after installation.
  • This is not the best method as this takes too much time
-> create the chmod.php according to ref#1 & use the second script "Alternative script"
-> example base URL setup: $base = '/domains/mysite.net/public_html/ty/';
-> enter at the browser http://www.mysite.net/ty/chmod.php?chmod=0777
-> after extension installation enter http://www.mysite.net/ty/chmod.php to reset everything
-> You may also need to ask the webadmin to turn off the php safe mode, otherwise files cannot be created inside public_html/<Joomla directory>/tmp even though its' permission is "777" and this prevent your addons from installation.



Personal tools