• Resolved kiyosue

    (@kiyosue)


    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 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP 5.4.16でのFatal error’ is closed to new replies.