I have a freshly installed OpenPublish 2 which seems to work so far. But when I want to preview an article I get the following error:

warning: include(./sites/all/modules/openpublish_core/op-related-terms.tpl.php) [function.include]: failed to open stream: No such file or directory in /[path_to_openpublish_root]/httpdocs/includes/theme.inc on line 1066.

Obviously the file op-related-terms.tpl.php ist not in the modules/openpublish_core, but in the themes/openpublish_theme/components directory, but there seems to be something wrong.. where does this not working path comes from and how should I fix that?

Thanks for your feedback!
Martin.

Comments

boonen’s picture

When you're on Linux, you can quick fix this issue with the following command:

ln -s ../../themes/openpublish_theme/components/op-related-terms.tpl.php op-related-terms.tpl.php

vbplusme’s picture

This seem like its a path or missing file issue. Is a permanent fix available for the bug? I don't have linux root access so submitting a link command for me isn't an option. Thanks anyway.

mthart’s picture

I'm getting the same error.

Anyone?

tirdadc’s picture

Assigned: Unassigned » tirdadc
punjabi’s picture

Status: Active » Fixed

Martin, mthart

Go to theme settings and select openpublish_theme and set it to default.

For some reason drupal does not set the default theme to open publish hence the confusion to the script.

tirdadc’s picture

Status: Fixed » Active

I'm pretty sure 2.2 has OpenPublish as the selected default theme and the warning is still there. Please do not change the status as I'm looking into this.

tirdadc’s picture

Status: Active » Fixed

There will be a much improved version of the preview functionality in 2.3, and this is also taken care of as part of it.

http://drupal.org/cvs?commit=459052

tirdadc’s picture

edit: double post

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.