Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
sundarprakash CreditAttribution: sundarprakash commentedWe 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?
Comment #2
preetinder CreditAttribution: preetinder commentedThis 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.
Comment #3
irakli CreditAttribution: irakli commentedComment #4
ClearXS CreditAttribution: ClearXS commentedThe 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:
=> 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.