檢查活給出(在底部) - http://cchoco.net/2014/03/01/un-appareil-photo-dans-une-maison-hantee/警告:str_repeat()預計參數2要長,陣列中
錯誤 - Warning: str_repeat() expects parameter 2 to be long, array given in /home3/philpaol/public_html/cchoco.net/wp-content/thesis/boxes/tl-custom-php/box.php on line 56
box.php頁(第53行的代碼以線61 ) -
public function html($depth) {
global $thesis;
$tab = str_repeat("\t", !empty($depth) ? $depth : 0);
echo
"$tab<div" . ($this->options[ 'id' ] ? ' id="' . trim($thesis->api->esc($this->options[ 'id' ])) . '"' : '') . ' class="' . ($this->options[ 'class' ] ? trim($thesis->api->esc($this->options[ 'class' ])) : 'cus_code') . "\">\n" .
"$tab\t" . trim(apply_filters($this->_id, eval('?>' . stripslashes($this->options[ 'code' ]) . '<?php '))) . "\n" .
"$tab</div>\n";
}
告訴我們你在哪裏調用該函數,你似乎在傳遞一個數組作爲'$ depth'。 – CodeBird
總是「$ depth」整數值嗎? – Girish