By halftone on
I am working on a simple module that adds a pager to Image nodes, and add its CSS by using:
drupal_add_css(drupal_get_path('module', 'image_page_pager') .'/image_page_pager.css');
This works fine, ie loads the CSS and the CSS works. However every page load gives 4 watchdog errors all basically similar to
Location http://test.tonysleep.co.uk/admin/settings/image_page_pager
Referrer http://test.tonysleep.co.uk/admin/settings/image_page_pager
Message file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(themes/bluemarine/style.css) is not within the allowed path(s): (/home/halftone:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/halftone/public_html/test/includes/theme.inc on line 68.
I am using Bluemarine as admin theme, but viewing these pages is being done via my custom theme, which has its own CSS and works fine.
If I comment out the drupal_add_css line in the module, I get no Watchdog errors.
Is this normal behaviour where a separate theme is used for admin, or if not, how can I prevent these errors?