次の場所にあるファイルがあります。
/Library/WebServer/Documents/wordpress/wp-content/themes/directorypress/sidebar-left-big.php
サブディレクトリに別のファイルがあります:
/Library/WebServer/Documents/wordpress/wp-content/themes/directorypress/template_directorypress/_gallerypage.php
そして _gallerypage.php には php が含まれています:
<?php include('../sidebar-left-big.php'); //left sidebar, category navigation and ads ?>
私が得るエラー:
Warning: include(../sidebar-left-big.php) [function.include]: failed to open stream: No such file or directory in /Library/WebServer/Documents/wordpress/wp-content/themes/directorypress/template_directorypress/_gallerypage.php on line 9
Warning: include() [function.include]: Failed opening '../sidebar-left-big.php' for inclusion (include_path='.:') in /Library/WebServer/Documents/wordpress/wp-content/themes/directorypress/template_directorypress/_gallerypage.php on line 9
私にはすべてを正しく行っているように思えます。
おそらく問題は、 _gallerypage.php が別のファイルにインクルードを介して読み込まれているため、../ に対して相対的にエラーが発生することだと思いました。しかし、エラーは sidebar-left-big.php へのパスがどこにあると考えているかについては何も言いません。