Demo

討論

保持飢餓,保持愚笨 (Stay hungry, stay foolish)。 史蒂夫·賈伯斯

公告

本網站已取消討論區的討論方式,如果您有問題請至LINE群行動條碼圖片網址,或Facebook社團

wd_submit 前臺內容文章_config can't write able

  • rickyaung
  • rickyaung 的個人頭像 Topic Author
  • 訪客
  • 訪客
2009-05-04 16:58 #13613 來自 rickyaung
rickyaung created the topic: wd_submit 前臺內容文章_config can't write able
[attachment=0:va7l8fe6]<!-- ia0 -->submit.png<!-- ia0 -->[/attachment:va7l8fe6]

請問我要改那個資料夾的權限才可以寫入呢?
config 是指那一個呢?它的位置是在那呢。
我之前有請網管修改這幾個資料: ../admiminstraotr/components/ (為777) 還是說無法寫入耶?
../components/
../cache/
../tmp/
我是在[url=joomlachina]http://www.joomlachina.cn/index.php?option=com_content&view=article&id=586:wdsubmit-utf-8-&catid=63:2008-06-14-08-00-21&Itemid=272[/url] 下載的wd_submit
附件:

Please 登入 to join the conversation.

  • fashion_jack
  • fashion_jack 的個人頭像
  • 訪客
  • 訪客
2009-05-05 08:17 #13615 來自 fashion_jack
fashion_jack replied the topic: wd_submit 前臺內容文章_config can't write able
將configuration.php 權限改為777,
用完再改回. :ugeek:

Please 登入 to join the conversation.

  • rickyaung
  • rickyaung 的個人頭像 Topic Author
  • 訪客
  • 訪客
2009-05-05 11:29 #13618 來自 rickyaung
rickyaung replied the topic: wd_submit 前臺內容文章_config can't write able
謝謝!試試看,可不可以。

Please 登入 to join the conversation.

  • rickyaung
  • rickyaung 的個人頭像 Topic Author
  • 訪客
  • 訪客
2009-05-11 16:01 #13718 來自 rickyaung
rickyaung replied the topic: wd_submit 前臺內容文章_config can't write able
我請網管幫忙改configuration 為777,再去執行,還是不行耶。
我找了它的程式碼,可是我不知要把那一個資料權限改成666以上嗎?看下面所寫的
	function saveConfig($option){

		global $mainframe,$option;

		$configfile = JPATH_COMPONENT.DS.'settings.php';

		@chmod($configfile,0666);

		if( !is_writable($configfile) ){

			$msg = "Config file not writeable";

			$mainframe->redirect('index.php?option='.$option,$msg);

			break;

		}

		$config  = "<?php\n";

	  $config .= '$H_enabled = '        . JRequest::getVar('enable','POST','') . ";\n";

	  $config .= '$H_enable_resize = '  . JRequest::getVar('enableResize','POST','') . ";\n";

	  $config .= '$H_rules = '          . JRequest::getVar('rules','POST','') . ";\n";

	  $config .= '$H_allowable_upload_images=' . JRequest::getVar('enableUpload','POST','') . ";\n";

	  $config .= '$H_allowable_images="'. JRequest::getVar('allowable_images','POST','') .'"'.";\n";

	  $config .= '$H_notify_email = "'  . JRequest::getVar('notify_email','POST','') . "\";\n";

	  //Fixed save config error with CZwidth & Czheight

	  $config .= '$H_width = "'        . JRequest::getVar('iwidth','POST','') . "\";\n";

	  $config .= '$H_height = "'       . JRequest::getVar('iheight','POST','') . "\";\n";

	  //Added img maxsize config

	  $config .= '$H_maxsize = "'      . JRequest::getVar('isize','POST','') . "\";\n";

	  //Added Security Images

	  $config .= '$H_securityimage = "'. JRequest::getVar('securityimage','POST','') . "\";\n";

	  //language

	  $config .= '$H_language ="'	   . JRequest::getVar('filelanguage','POST','') ."\";\n";

	  //Added available categories

	  $config .= '$H_avaiCategories ="'  . implode(",",JRequest::getVar('listcatid','POST','') )."\";\n";

	  

	  if ( in_array( "none",JRequest::getVar('listusertypes','POST','') ) ){

  	  	$config .= '$H_auto_approve_groups ="";'."\n";

	  }else{

		  $config .= '$H_auto_approve_groups ="'  . implode( ",",JRequest::getVar('listusertypes','POST','') )."\";\n";

	  }														  

Please 登入 to join the conversation.

  • cutes13
  • cutes13 的個人頭像
  • 訪客
  • 訪客
2009-05-11 20:37 #13723 來自 cutes13
cutes13 replied the topic: wd_submit 前臺內容文章_config can't write able
你可以縮小範圍的設定試試,有時權限全開777反而會不行喔。因為有些程式的設計是不可全開的 :redface:

rickyaung 寫了道:: [attachment=0:3mmnj687]<!-- ia0 -->submit.png<!-- ia0 -->[/attachment:3mmnj687]

請問我要改那個資料夾的權限才可以寫入呢?
config 是指那一個呢?它的位置是在那呢。
我之前有請網管修改這幾個資料: ../admiminstraotr/components/ (為777) 還是說無法寫入耶?
../components/
../cache/
../tmp/
我是在[url=joomlachina]http://www.joomlachina.cn/index.php?option=com_content&view=article&id=586:wdsubmit-utf-8-&catid=63:2008-06-14-08-00-21&Itemid=272[/url] 下載的wd_submit

Please 登入 to join the conversation.