バックアップのインポートでエラーが出る

197 views
Skip to first unread message

Fukuta

unread,
Mar 15, 2016, 10:33:30 PM3/15/16
to a-blog cms forum
https://groups.google.com/forum/#!topic/a-blog-cms/SMeA2Ucp7cw
にある勝又様とかぶるかもしれませんが、別スレッドで質問させていただきます。

CPIにインストールしたa-blog cmsのサイトからMAMPでのローカル環境にインポートができず困っています。
a-blog cmsのバージョンはサーバー/ローカルともに2.5.1.1です。

CPI
PHPのバージョン     5.5.27
PHP動作環境     CGI版
MySQLのバージョン     5.5.42

ローカル(MAMP3.0.5)
PHPのバージョン     5.3.28
PHP動作環境     モジュール版
MySQLのバージョン     5.5.34

この環境でデータベースをインポートしようとすると、
Warning: fopen(/Volumes/●●●●●●●/archives/backup_tmp/md5_hash.txt) [function.fopen]: failed to open stream: No such file or directory in /Volumes/●●●●●●●/php/ACMS/POST/Backup/Import.php on line 37
というエラーでインポートできませんでした。


MAMPのPHPのバージョンを5.5.10に変え、a-blog cms(通常版 php5.5.x〜)をローカルに新規インストールし、インポートしたところ下記エラーとなりました。

Warning: fopen(/Volumes/◯◯◯◯◯◯/archives/backup_tmp/md5_hash.txt): failed to open stream: No such file or directory in /Volumes/◯◯◯◯◯◯/php/ACMS/POST/Backup/Import.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /Volumes/◯◯◯◯◯◯/php/ACMS/POST/Backup/Import.php:37) in /Volumes/◯◯◯◯◯◯/index.php on line 2146

Warning: Cannot modify header information - headers already sent by (output started at /Volumes/◯◯◯◯◯◯/php/ACMS/POST/Backup/Import.php:37) in /Volumes/◯◯◯◯◯◯/index.php on line 2154

Warning: Cannot modify header information - headers already sent by (output started at /Volumes/◯◯◯◯◯◯/php/ACMS/POST/Backup/Import.php:37) in /Volumes/◯◯◯◯◯◯/index.php on line 2155

Warning: Cannot modify header information - headers already sent by (output started at /Volumes/◯◯◯◯◯◯/php/ACMS/POST/Backup/Import.php:37) in /Volumes/◯◯◯◯◯◯/index.php on line 2156

Warning: Cannot modify header information - headers already sent by (output started at /Volumes/◯◯◯◯◯◯/php/ACMS/POST/Backup/Import.php:37) in /Volumes/◯◯◯◯◯◯/index.php on line 2164

Warning: Cannot modify header information - headers already sent by (output started at /Volumes/◯◯◯◯◯◯/php/ACMS/POST/Backup/Import.php:37) in /Volumes/◯◯◯◯◯◯/index.php on line 2165

Warning: Cannot modify header information - headers already sent by (output started at /Volumes/◯◯◯◯◯◯/php/ACMS/POST/Backup/Import.php:37) in /Volumes/◯◯◯◯◯◯/index.php on line 2170


何が問題でしょうか。よろしくお願いします。

山本一道@アップルップル

unread,
Mar 15, 2016, 11:17:59 PM3/15/16
to a-blog cms forum
環境は違っても、エラーメッセージは同様ですね。

backup_tmp を用意して、そこに解凍した sql_query.sql と md5_hash.txt を置いて再実行してみてください。
もしくは、phpMyAdmin から SQL をインポートしてください。

Fukuta

unread,
Mar 16, 2016, 2:18:43 AM3/16/16
to a-blog cms forum
phpMyAdminでSQLをサーバー側でエクスポートしてローカルにインポート、メンテナンスメニューよりドメインをlocalhostに設定し直すことでインポートできました。

今回のエラーはCPI側の仕様の問題でしょうか。phpMyAdminでのインポートは不慣れなためやらかしてしまいそうで不安です。CMS側のバックアップ機能が正常に動くようになると助かります。
Reply all
Reply to author
Forward
0 new messages