We just downloaded 2.0 of the openPublish distribution. When activating the openPublish Theme, the following fatal error appears

Fatal error: Call to undefined function openpublish_addthis_widget() in /var/www/sites/all/themes/openpublish_theme/page/page.tpl.php on line 97

Any ideas?

Comments

sundarprakash’s picture

We just downloaded 2.0 of the openPublish distribution. When activating the openPublish Theme, the following fatal error appears

Fatal error: Call to undefined function openpublish_addthis_widget() in /var/www/sites/all/themes/openpublish_theme/page/page.tpl.php on line 97

Any ideas?

preetinder’s picture

This theme should only be used with openpublish install profile, as mentioned in the project page.
Do not try to use this with your normal drupal installation as it will result in the fatal errors you are seeing above.

Tip: Its always good to set your admin theme to some default theme or other theme than the theme used on the drupal as it allows you to use the admin part even if something goes wrong with your theme installation/configuration.

irakli’s picture

Status: Active » Closed (works as designed)
ClearXS’s picture

Fatal error: Call to undefined function openpublish_addthis_widget() in .../sites/all/themes/openpublish_theme/page/page.tpl.php on line 96
array(4) { ["type"]=> int(1) ["message"]=> string(56) "Call to undefined function openpublish_addthis_widget()" ["file"]=> string(86) ".../sites/all/themes/openpublish_theme/page/page.tpl.php" ["line"]=> int(96) }

The project page says it works with OpenPublish install profile, it does NOT say it ONLY works with under those conditions and not without.

As I can't change my themes anymore due to this error, removing the OpenPublish theme from the themes directory.
I get my themes settings page back and some additional errors:

# warning: array_map() [function.array-map]: Argument #2 should be an array in .../modules/system/system.module on line 1015.
# warning: array_keys() [function.array-keys]: The first argument should be an array in.../includes/theme.inc on line 1817.
# warning: Invalid argument supplied for foreach() in .../includes/theme.inc on line 1817.

=> ticking my old theme on again & safe config
=> former errors disappear, but now this new error:
warning: strpos() [function.strpos]: Empty delimiter in .../sites/all/modules/ie_css_optimizer/ie_css_optimizer.pages.inc on line 55.
=> reload page => this new error disappears
On /admin/build/modules/uninstall nothing shows up and a similar link under themes doesn't seem to exist.
So I suppose the errors have resolved now?

Another point is the question if OpenPublish should be compatible more to other Drupal installations. For example: when I installed OpenPublish together with some other drupal installs, it resulted in severe errors and that my webhoster said this was the last time they warned me for creating a mess on their server (logs), while I even hadn't ticked syslog on... I think any installation that uses Drupal, should be as compatible as possible with Drupal and only change basics if there is no Drupal method to work around it in the most compatible way.