どこまでよ?

日常ツッコミメモ

新規のWordpressに前のデータをインポートしようとしたらエラー

久しぶりの更新です。

昔に作ったサイト、モバイルフレンドリーじゃないよとずーーーーーっとGoogleにいわれてて。このGWにテーマをかえて心機一転と作業をすすめていたらですね。

 

テーマ設定して。

前のサイトからデータエキスポートして。

新しいサイトにインポート・・・あれ?

Fatal error: Cannot redeclare class WXR_Parser in /var/www/web/wp-content/plugins/wordpress-importer/parsers.php on line 12

どうにもこうにもできないどころか、昔懐かしいhtmlな表示。

ネットで検索したら、似たような質問が出てくるけど、どれも解決してないのですよ。

f:id:lovelydinner:20170428143612p:plain

そんななか、クリックし続け、スクロールし続け、見つけたのが!

Hello @fredweb24,

I did “kindof” resolve the issue but by switching to the twentyseventeen theme and then installing wordpress importer and then going back to the theme I intended to use. I think its a conflict in the theme’s own import and the wordpress plugin, I could be wrong but none the less, that workflow did allow me to install the importer.

Good luck, I hope that helps!

訳:デフォルトで入っている「twentyseventeen theme」に切り替えてから、インポーターのインストールをやってみ。多分なんかのプラグインとかが衝突?影響しあってて上手く言ってないんだと思うぜ。 

はい。そのとおりでした!

Thanks a lot mlledwyer(@mlledwyer)!!