
何かメッセージ出てませんか?
MAMPとMODxはデフォルトの状態で利用しているのですが
HTMLのエクスポートに失敗してしまいます。
何かメッセージ出てませんか?
セーフモードだと(on)失敗するという話
エクスポート先にフォルダは作成されていますか?
(1) manager/actions/export_site.static.php:139
if (@$handle = fopen ($baseURL."/index.php?id=".$docid, "r"))
{
...
}
else
{
echo $_lang[’export_site_failed’]." Could not retrieve document.
";
}
(2) manager/actions/export_site.static.php:297
// get the file
if (@$handle = fopen ("$base/index.php?id=$id", "r"))
{
...
}
else
{
echo $_lang[’export_site_failed’]." Could not retrieve document.
";
}
$url = $baseURL . "/index.php?id=" . $docid;
echo "(1): " . $url;
if ($handle = fopen ($url, "r"))
$url = "$base/index.php?id=$id";
echo "(2): " . $url;
if ($handle = fopen ($url, "r"))
エラーを出しているのはこれらのどちらかですね。正しく "allow_url_fopen"
絡みでしょうが、if 文の ’@’ をそれぞれ外したらどんなメッセージが出ますか?
ソースを読むと、(1) の $baseURL は (2) と同じ $base が渡されています。
それぞれ fopen() の第一引数がどうなっているのか見せてもらえますか。
if(@$handle = fopen($baseURL."/index.php?id=".$docid, "r")) {if($handle = fopen($url, "r")) {if(@$handle = fopen("$base/index.php?id=$id", "r")) {if($handle = fopen($url, "r")) {if (@$handle = fopen ($baseURL."/index.php?id=".$docid, "r")) {$url = $baseURL . "/index.php?id=" . $docid;
echo "(1): " . $url;
if (@$handle = fopen ($url, "r")) {if (@$handle = fopen ("$base/index.php?id=$id", "r")) {$url = "$base/index.php?id=$id";
echo "(2): " . $url;
if (@$handle = fopen ($url, "r")) {となると予想してます。
(1): http://localhost/..../index.php?id=1
Home, id 1
失敗! Could not retrieve document.
(2): http://localhost/..../index.php?id=....