[TYPO3-piwik] piwikintegration: Trying to get it working ...

Martin Bless m.bless at gmx.de
Sat Jun 16 18:19:17 CEST 2012


Hello Kay,

in the end it seems I could identify the problem. See end of this
posting. Nevertheless, here's everything I collected to get there:



>which php / mysql version do you use?

Ubuntu 12.04, TYPO3 4.7.1, PHP 5.3.10-1ubuntu3.1, MySQL 5.5.24, no
ADOdb

piwik 3.0.1
piwikintegration 3.5.5 from TER

>Do you use adodb?
no

>Is piwik successfully extracted to typo3conf/piwik?
Yes, perfectly. No errors when I click the "Install new" button once
in the update menu. At that point
typo3conf/piwik/piwik/config/config.ini.php is:

"""
;  DO NOT REMOVE THIS LINE
; file automatically generated or modified by Piwik; you can manually
override the default values in global.ini.php by redefining them in
this file.
[superuser]
login = "372e04eac0018257833d67460ae06b15"
password = "fcc43bf449472d90cec300a9ab6189cd"
email = ""

[database]
host = "localhost"
username = "intro47"
password = "intro47"
dbname = "intro47"
tables_prefix = "user_piwikintegration_"

[General]
enable_framed_pages = 1
enable_framed_settings = 1
show_website_selector_in_user_interface = 0
serve_widget_and_data = 0
enable_framed_logins = 1

[Plugins]
Plugins[] = "TYPO3Login"
Plugins[] = "TYPO3Menu"
Plugins[] = "TYPO3Widgets"
"""

>Do you use solaris?
No.


Experiment:
I've added '@ini_set('display_errors', 1);' to
typo3conf/piwik/piwik/index.php. 

Then  I get:

Fatal error: Class 't3lib_div' not found in
/home/marble/htdocs/LinuxData200/intro47/typo3conf/localconf.php on
line 21

Call Stack:
    0.1364     676688   1. {main}()
/home/marble/htdocs/LinuxData200/intro47/typo3conf/piwik/piwik/index.php:0

    7.9439    1970976   2. Piwik_FrontController->init()
/home/marble/htdocs/LinuxData200/intro47/typo3conf/piwik/piwik/index.php:53

    9.6147    4961056   3. Piwik_PluginsManager->loadPlugins(???) 
/home/marble/htdocs/LinuxData200/intro47/typo3conf/piwik/piwik/core/FrontController.php:278

    9.6147    4961056   4. Piwik_PluginsManager->reloadPlugins()
/home/marble/htdocs/LinuxData200/intro47/typo3conf/piwik/piwik/core/PluginsManager.php:235

   12.4641    4963280   5. Piwik_PluginsManager->loadPlugin(???)
/home/marble/htdocs/LinuxData200/intro47/typo3conf/piwik/piwik/core/PluginsManager.php:343

   12.4644    5025624   6.
require_once('/home/marble/htdocs/LinuxData200/intro47/typo3conf/piwik/piwik/plugins/TYPO3Login/TYPO3Login.php')
/home/marble/htdocs/LinuxData200/intro47/typo3conf/piwik/piwik/core/PluginsManager.php:385

   12.4647    5097912   7.
require('/home/marble/htdocs/LinuxData200/intro47/typo3conf/piwik/piwik/plugins/TYPO3Login/Auth.php')
/home/marble/htdocs/LinuxData200/intro47/typo3conf/piwik/piwik/plugins/TYPO3Login/TYPO3Login.php:36

   12.4654    5413224   8.
include('/home/marble/htdocs/LinuxData200/intro47/typo3conf/localconf.php')
/home/marble/htdocs/LinuxData200/intro47/typo3conf/piwik/piwik/plugins/TYPO3Login/Auth.php:31



The error happens in line 385 of Piwiks PluginsManager.php which says:
   require_once $path;
where $path is '.../piwik/piwik/plugins/TYPO3Login/TYPO3Login.php'.

Line 31 of Auth.php:
  include  PIWIK_INCLUDE_PATH.'/../../localconf.php';



Ahh, this seems to be the problem:

In my localconf.php I have "t3lib_div::getIndpEnv('TYPO3_SITE_URL')".
And now the piwik/core/Loader.php is trying to load class 't3lib_div'
which he can't because there is no (Piwik)/libs/t3lib/div.php.



Trying to validate my analysis...

- Disable line "t3lib_div::getIndpEnv('TYPO3_SITE_URL')" in
localconf.php ...

- Go to backend module Web, Piwik:
  Wow, I'm logged in, something is to be seen, for the first time I
  get a feeling how it should work! Cool!



We should remember that enabling the display of PHP errors in Piwiks
index.php is one way of debugging in such a situation.


I'm curious how you solve the problem!

Thanks for your attention - and keep up the good work!

Martin




-- 
Certified TYPO3 Integrator | TYPO3 Documentation Team Member

http://mbless.de


More information about the TYPO3-project-piwik mailing list