Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninitialized string offset: 1 in /srv/piwik/core/Piwik.php on line 158 #5841

Closed
mig5 opened this issue Jul 16, 2014 · 0 comments
Closed

Uninitialized string offset: 1 in /srv/piwik/core/Piwik.php on line 158 #5841

mig5 opened this issue Jul 16, 2014 · 0 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@mig5
Copy link

mig5 commented Jul 16, 2014

When viewing Admin->Settings-Tracking Code->Advanced: if I check or uncheck 'Track custom variables for this visitor', without even entering anything in the field, I experience this stacktrace in my webserver logs:

There is an error. Please report the message (Piwik 2.4.1) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice:
Uninitialized string offset: 1 in /srv/piwik/core/Piwik.php on line 158

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [/srv/piwik/core/Piwik.php:158]
#1 Piwik\Piwik::getJavascriptCode(...) called at [/srv/piwik/plugins/SitesManager/API.php:90]
#2 Piwik\Plugins\SitesManager\API->getJavascriptTag(...) called at [:]
#3 call_user_func_array(...) called at [/srv/piwik/core/API/Proxy.php:209]
#4 Piwik\API\Proxy->call(...) called at [/srv/piwik/core/API/Request.php:215]
#5 Piwik\API\Request->process(...) called at [/srv/piwik/plugins/API/Controller.php:31]
#6 Piwik\Plugins\API\Controller->index(...) called at [:]
#7 call_user_func_array(...) called at [/srv/piwik/core/FrontController.php:531]
#8 Piwik\FrontController->doDispatch(...) called at [/srv/piwik/core/FrontController.php:84]
#9 Piwik\FrontController->dispatch(...) called at [/srv/piwik/core/dispatch.php:34]
#10 require_once(...) called at [/srv/piwik/index.php:47]


This occurred in at least 2.4.0. I then upgraded to 2.4.1 but the issue persists.

Ubuntu 12.04, PHP 5.3.10-1ubuntu3.12

@tsteur tsteur closed this as completed in 4638183 Jul 18, 2014
@tsteur tsteur self-assigned this Jul 18, 2014
@tsteur tsteur added this to the 2.5.0 - Piwik 2.5.0 milestone Jul 19, 2014
@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Sep 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants