28
七月
2008

NextGEN Gallery 無法顯示相本問題

NextGen Gallery 像簿外掛使用相本功能時出以下錯誤訊息

Fatal error: Only variables can be passed by reference in /您的路徑/wp-content/plugins/nextgen-gallery/nggfunctions.php on line 819


發現原來是php版本上的差異問題

可參考
PHP 5.0.5: Fatal error: Only variables can be passed by reference

找到 /您的路徑/wp-content/plugins/nextgen-gallery/nggfunctions.php 於819行將
$key = array_shift( get_object_vars( $row ) );
改成
$key = array_shift( $my_temp_variable = get_object_vars( $row ) );

重新上傳,相本功能正常

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

[...] 2008-07-28補充:NextGEN Gallery 無法顯示相本問題 Fatal error: Only variables can be passed by reference [...]

發表迴響

(必)

(必)