gosa: vanilla installation results in "Call to undefined function get_template_path()" when accesing URL

Bug #157406 reported by Raúl Pedroche
12
Affects Status Importance Assigned to Milestone
gosa (Ubuntu)
Fix Released
Medium
Stephan Rügamer
Dapper
Invalid
Medium
Unassigned
Edgy
Invalid
Medium
Unassigned
Feisty
Invalid
Medium
Unassigned
Gutsy
Fix Released
Medium
Luca Falavigna
Hardy
Fix Released
Medium
Stephan Rügamer
smarty (Ubuntu)
Invalid
Undecided
Unassigned
Dapper
Invalid
Undecided
Unassigned
Edgy
Invalid
Undecided
Unassigned
Feisty
Invalid
Undecided
Unassigned
Gutsy
Invalid
Undecided
Unassigned
Hardy
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gosa

Accessing http://<server>/gosa/ or http://<server>/gosa/setup.php results in a web page cotaining only
---8<---
Fatal error: Call to undefined function get_template_path() in /usr/share/gosa/include/php_setup.inc on line 71
---8<---

* apache2 2.2.4-3build1
* php5 5.2.3-1ubuntu6
* gosa 2.5.11a-1
* slapd.conf (slapd 2.3.35-1, but that should not affect this) modified as per /usr/share/doc/gosa/README.Debian.
* No further configuration changes.

Revision history for this message
Joel Emer (jse) wrote :

This happened to me as well, and appears to arise because gosa in /usr/share/gosa/includes/functions.inc requires smarty at 'smarty/lib/Smarty.class.php' while it actually exists at just 'smarty/Smarty.class.php'.

Revision history for this message
Raúl Pedroche (pedroche) wrote :

  Agreed.

  Manually changing line 175 in /usr/share/gosa/include/php_setup.inc from

require("/usr/share/php/smarty/libs/Smarty.class.php");

to

require("/usr/share/php/smarty/Smarty.class.php");

seems to sovle the issue.

Revision history for this message
Daniel Holbach (dholbach) wrote :

To get your fix included in Ubuntu, it would help if you tried transforming it into a debdiff (http://wiki.ubuntu.com/PackagingGuide/Recipes/Debdiff) and submit it for review (http://wiki.ubuntu.com/SponsorshipProcess). If you prefer somebody else to do that, that's fine - please just indicate if you're available to do that.

Changed in gosa:
assignee: nobody → emgent
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Emanuele Gentili (emgent) wrote :

Package fixed and build fine [1], tested and working fine too [2].

[1] https://edge.launchpad.net/~emgent/+archive
[2] http://thc.emanuele-gentili.com/gosa/

Revision history for this message
Andrea Colangelo (warp10) wrote :

Subscribing u-u-s.

Changed in gosa:
assignee: emgent → nobody
importance: Critical → Medium
Revision history for this message
Stephan Rügamer (sruegamer) wrote :

I'll take this one tonight

Changed in gosa:
assignee: nobody → shermann
Revision history for this message
Emanuele Gentili (emgent) wrote :

The package is broken, does not allow the installation and operation of the package itself.
Debian was felt with the proposal to use the fix above attached.

It's possible patch it in debian/rules changing:
require("/usr/share/php/smarty/libs/Smarty.class.php"); to require("/usr/share/php/smarty/Smarty.class.php");

Revision history for this message
Emanuele Gentili (emgent) wrote :
Revision history for this message
Emanuele Gentili (emgent) wrote :
Revision history for this message
Emanuele Gentili (emgent) wrote :
Changed in gosa:
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gosa - 2.5.13-1ubuntu1

---------------
gosa (2.5.13-1ubuntu1) hardy; urgency=low

  * debian/control
   - Switch Maintainer to Ubuntu Motu Developers
  * debian/rules (LP: #157406)
   - Fixed fatal error on Call function get_template_patch() in
     /usr/share/gosa/include

 -- Emanuele Gentili <email address hidden> Thu, 20 Mar 2008 14:39:14 +0100

Changed in gosa:
status: In Progress → Fix Released
Changed in gosa:
assignee: nobody → emgent
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → emgent
importance: Undecided → Medium
status: New → Confirmed
status: Confirmed → In Progress
assignee: nobody → emgent
importance: Undecided → Medium
status: New → In Progress
assignee: nobody → emgent
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Daniel Hahler (blueyed) wrote :

I've closed the "smarty" tasks, because it does not appear to be a problem therein.

Changed in smarty:
status: New → Invalid
status: New → Invalid
status: New → Invalid
status: New → Invalid
status: New → Invalid
Revision history for this message
Emanuele Gentili (emgent) wrote :

How to reproduce the problem:

1) Install gosa
2) Open browser to http://localhost/gosa/
3) See Fatal Error [1]
4) It's possible solve the problem manually changing line 175 in /usr/share/gosa/include/php_setup.inc from
require("/usr/share/php/smarty/libs/Smarty.class.php"); to require("/usr/share/php/smarty/Smarty.class.php");
or editing gosa debian/rules [2].

[1] Fatal error: Call to undefined function get_template_path() in /usr/share/gosa/include/php_setup.inc on line 71.
[2] See first entered debdiffs.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

This issue is relevant for Gutsy and newer only since it has been addressed in bug #118793.
Closing Dapper, Edgy and Feisty tasks for now.

Changed in gosa:
assignee: emgent → nobody
status: In Progress → Invalid
assignee: emgent → nobody
status: In Progress → Invalid
assignee: emgent → nobody
status: In Progress → Invalid
assignee: emgent → dktrkranz
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Version 2.5.11a-1ubuntu1 uploaded to gutsy-proposed, now waiting for an archive-admin to accept it.

Changed in gosa:
status: In Progress → Confirmed
Changed in gosa:
status: Confirmed → Fix Released
status: Fix Released → Confirmed
Revision history for this message
Jonathan Riddell (jr) wrote :

Accepted into gutsy-proposed, please test.

Changed in gosa:
status: Confirmed → Fix Committed
Revision history for this message
Kenny Wayne (ken-chokewire) wrote :

A second issue closely related to this and bug #118793, smarty-gettext places block.t.php in /usr/share/php/smarty/libs/plugins/, rather than /usr/share/php/smarty/plugins/, causing {t} to be an unknown tag in gosa's setup.

Revision history for this message
Emanuele Gentili (emgent) wrote :

@Kenny Wayne can you say affected release?

Thanks,

Emanuele

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

GUTSY VERIFICATION

Using version 2.5.11a-1 from gutsy-release:
Fatal error: Call to undefined function get_template_path() in /usr/share/gosa/include/php_setup.inc on line 71

Using version 2.5.11a-1ubuntu1 from gutsy-proposed:
Installation goes well without errors.

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to gutsy-updates.

Changed in gosa:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.