Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

PHP 5.4.16でのFatal error

$
0
0

Replies: 0

booking-package.1.4.29
WordPress 5.1.6
PHP 5.4.16
CentOS Linux release 7.8.2003 (Core)
で発生。
FTPが利用できないので、管理画面からでなくpluginフォルダに直接設置して管理画面から有効化
プラグインを有効化するときに

Fatal error: Cannot create references to elements of a temporary array expression
が発生

# pwd
/path/to/wp-content/plugins/booking-package
# grep -r 'foreach' ./ | grep '&'
./lib/Schedule.php:				foreach ((array) $emailData as $emailDataKey => &$emailDataValue) {
./index.php:			foreach ((array) $postPages as $key => &$value) {

の2カ所の &$emailDataValue,&$value の&を削除しました。(特にその後利用してなさそうでしたので)


Viewing all articles
Browse latest Browse all 59525

Trending Articles