change ROOT_PATH to "../../"
Ive tried this - because I have the samme problem. But there are new errors, like unexpected t_string.
What I have to do in detail. My batch_annotate, the first lines
<?php // PLUGIN_TITLE: Batch Annotate
$nozip = 1;
define('IN_CP', 1);
$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";
define('ROOT_PATH', $root_path);
define('MEDIA_DIR', 'data/media');
define('MEDIA_PATH', ROOT_PATH.MEDIA_DIR);
require(ROOT_PATH.'admin/admin_global.php');
require(ROOT_PATH.'includes/annotate.php');
my error:
Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /srv/www/.../.../.../admin/plugins/batch_annotate.php on line 8
Warning: main(./../admin/admin_global.php) [function.main]: failed to open stream: No such file or directory in /srv/www//.../.../.../admin/plugins/batch_annotate.php on line 8
Fatal error: main() [function.require]: Failed opening required './../admin/admin_global.php' (include_path='.:') in /srv/www//.../.../.../admin/plugins/batch_annotate.php on line 8
Could you help me please?