Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#1575 closed Bug (fixed)

Installation: review dependencies on PHP extensions

Reported by: vipsoft Owned by: vipsoft
Priority: normal Milestone: Piwik 1.1
Component: Core Keywords:
Cc: Sensitive: no

Description

In #956, we added a check for the xml extension, but it's only a warning if missing.

However, support requests on the forum (e.g., data is collected but graphs don't display) show that this is insufficient.

Change History (10)

comment:1 Changed 3 years ago by vipsoft (robocoder)

  • Milestone changed from 1.1 - Piwik 1.1 to 1.2 - Piwik 1.2

comment:2 Changed 3 years ago by vipsoft (robocoder)

The xml extension is enabled in a default php build (like SPL).

comment:3 Changed 3 years ago by matt (mattab)

  • Resolution set to invalid
  • Status changed from new to closed

If only the graphs fail to display, then the XML extension is optional (since the report tables will display fine).
However it would be nice to display it nicely (eg. when a user has a partial working Piwik, let him know that the graph don't work because he is missing xml extension)

comment:4 Changed 3 years ago by vipsoft (robocoder)

  • Resolution invalid deleted
  • Status changed from closed to reopened

Temporarily re-opening for investigation. I'm recompiling php on my test box with --disable-xml (and --without-pear) to document what the full impact is.

comment:5 Changed 3 years ago by vipsoft (robocoder)

FYI the FreeBSD ports collection has a dependency check for:

mysql gd pdo pdo_mysql zlib iconv dom json session xml

comment:6 Changed 3 years ago by vipsoft (robocoder)

  • Summary changed from Installation: xml extension should be mandatory to Installation: review dependencies on PHP extensions
  • Type changed from Bug to Task

Base functionality (including graphs) works with --disable-xml.

Going to rebuild without libxml.

comment:7 Changed 3 years ago by vipsoft (robocoder)

Ok... compiling withput libxml also means no xml, xmlreader, xmlwriter, simplexml, or dom.

Graphs still work but:

  • Feedburner stats show:
    Fatal error: Class 'SimpleXMLElement' not found in /home/apang/work/piwik/dev/trunk/plugins/ExampleFeedburner/ExampleFeedburner.php on line 112
    
  • Piwik.org blog shows:
    Fatal error: Call to undefined function libxml_use_internal_errors() in /home/apang/work/piwik/dev/trunk/libs/Zend/Feed.php on line 194
    
  • SEO widget is empty

comment:8 Changed 3 years ago by vipsoft (robocoder)

  • Milestone changed from 1.2 - Piwik 1.2 to 1.1 - Piwik 1.1
  • Type changed from Task to Bug

comment:9 Changed 3 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [3504]) fixes #1575 - removed special logic re: json and xml; add generic check for "other extensions" (json, libxml, dom, and SimpleXML)

comment:10 Changed 3 years ago by vipsoft (robocoder)

(In [3505]) refs #1575 - handle missing "session" extension

Note: See TracTickets for help on using tickets.