株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

お店用のホームページを作成中なんだけど、ShopMenuプラグインで料金設定を入力し、更新しようとすると「Fatal error: Call to undefined function mb_ereg() 」メッセージが出力されて、更新できなかった。

いまいちよく分からないからプラグイン周りをいじってたら、WP-Multibyte-Patchも「PHPのmbstring関数が必要です」って表示されて、有効にできなかった。

というところからググったら、php-mbstringパッケージがインストールされてなかったからっぽかった。

#php-mbstringをインストール
[root@ASMODEUS wp-content]# yum -y install php-mbstring
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.tsukuba.wide.ad.jp
 * extras: ftp.tsukuba.wide.ad.jp
 * updates: ftp.tsukuba.wide.ad.jp
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ php-mbstring.x86_64 0:5.4.16-42.el7 を インストール
--> 依存性解決を終了しました。

依存性を解決しました

================================================================================
 Package              アーキテクチャー
                                     バージョン              リポジトリー  容量
================================================================================
インストール中:
 php-mbstring         x86_64         5.4.16-42.el7           base         505 k

トランザクションの要約
================================================================================
インストール  1 パッケージ

総ダウンロード容量: 505 k
インストール容量: 1.3 M
Downloading packages:
php-mbstring-5.4.16-42.el7.x86_64.rpm                      | 505 kB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  インストール中          : php-mbstring-5.4.16-42.el7.x86_64               1/1
  検証中                  : php-mbstring-5.4.16-42.el7.x86_64               1/1

インストール:
  php-mbstring.x86_64 0:5.4.16-42.el7

完了しました!

#httpdをリスタート
[root@ASMODEUS wp-content]# systemctl restart httpd

すげーはまったわ(^^)

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)