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

Tracebacks in SettingsPiwik.php:310 during and after an upgrade from 1.12 to 2.0.2 #4480

Closed
anonymous-matomo-user opened this issue Jan 5, 2014 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. duplicate For issues that already existed in our issue tracker and were reported previously.

Comments

@anonymous-matomo-user
Copy link

Hi there,

I upgraded from 1.12 to 2.0.2. During the upgrade on the commandline, I got the following terminal output:

# /opt/php54/bin/php index.php -- "module=CoreUpdater"

<div style='word-wrap: break-word; border: 3px solid red; padding:4px; width:70%; background-color:#FFFF96;'>
        <strong>There is an error. Please report the message (Piwik 2.0.2)
        and full backtrace in the <a href='?module=Proxy&action=redirect&url=http://forum.piwik.org' target='_blank'>Piwik forums</a> (please do a Search first as it might have been reported already!).<br /><br/>
        Notice:</strong> <em>Undefined offset: 2</em> in <strong>piwik/core/SettingsPiwik.php</strong> on line <strong>310</strong>
<br /><br />Backtrace --&gt;<div style="font-family:Courier;font-size:10pt"><br />
#0  Piwik\Error::errorHandler(...) called at [piwik/core/SettingsPiwik.php:310]<br />
#1  Piwik\SettingsPiwik::getCurrentGitBranch(...) called at [piwik/core/Filechecks.php:124]<br />
#2  Piwik\Filechecks::getFileIntegrityInformation(...) called at [piwik/plugins/CoreUpdater/Controller.php:353]<br />
#3  Piwik\Plugins\CoreUpdater\Controller->doWelcomeUpdates(...) called at [piwik/plugins/CoreUpdater/Controller.php:295]<br />
#4  Piwik\Plugins\CoreUpdater\Controller->runUpdaterAndExit(...) called at [piwik/plugins/CoreUpdater/Controller.php:275]<br />
#5  Piwik\Plugins\CoreUpdater\Controller->index(...) called at [:]<br />
#6  call_user_func_array(...) called at [piwik/core/FrontController.php:117]<br />
#7  Piwik\FrontController->dispatch(...) called at [piwik/index.php:71]<br />
</div><br />
 </pre></div><br />


*** Update ***

    Database Upgrade Required

    Your Piwik database is out-of-date, and must be upgraded before you can continue.

            Piwik database will be upgraded from version 1.12 to the new version 2.0.2.

            The following plugins will be updated: DevicesDetection.

    The database upgrade process may take a while, so please be patient.

During that time, visiting the index page in a browser would yield the same message:

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

Notice: Undefined offset: 2 in piwik/core/SettingsPiwik.php on line 310

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [piwik/core/SettingsPiwik.php:310]
#1 Piwik\SettingsPiwik::getCurrentGitBranch(...) called at [piwik/core/Filechecks.php:124]
#2 Piwik\Filechecks::getFileIntegrityInformation(...) called at [piwik/plugins/CoreUpdater/Controller.php:353]
#3 Piwik\Plugins\CoreUpdater\Controller->doWelcomeUpdates(...) called at [piwik/plugins/CoreUpdater/Controller.php:316]
#4 Piwik\Plugins\CoreUpdater\Controller->runUpdaterAndExit(...) called at [piwik/plugins/CoreUpdater/Controller.php:275]
#5 Piwik\Plugins\CoreUpdater\Controller->index(...) called at [:]
#6 call_user_func_array(...) called at [piwik/core/FrontController.php:117]
#7 Piwik\FrontController->dispatch(...) called at [piwik/index.php:71]

However, as you can guess from the terminal output, it seems like the update did complete successfully. My Piwik 2.0.2 instance seems to be functioning normally.

The bug persists however. If I visit /index.php?module=Installation&action=systemCheckPage from the admin menu, I get the same traceback:

Notice: Undefined offset: 2 in piwik/core/SettingsPiwik.php on line 310

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [piwik/core/SettingsPiwik.php:310]
#1 Piwik\SettingsPiwik::getCurrentGitBranch(...) called at [piwik/core/Filechecks.php:124]
#2 Piwik\Filechecks::getFileIntegrityInformation(...) called at [piwik/plugins/Installation/Controller.php:857]
#3 Piwik\Plugins\Installation\Controller::getSystemInformation(...) called at [piwik/plugins/Installation/Controller.php:950]
#4 Piwik\Plugins\Installation\Controller->setupSystemCheckView(...) called at [piwik/plugins/Installation/Controller.php:520]
#5 Piwik\Plugins\Installation\Controller->systemCheckPage(...) called at [:]
#6 call_user_func_array(...) called at [piwik/core/FrontController.php:117]
#7 Piwik\FrontController->dispatch(...) called at [piwik/index.php:71]
@mattab
Copy link
Member

mattab commented Jan 5, 2014

Thanks for the report, already fixed in git

This issue was closed.
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. duplicate For issues that already existed in our issue tracker and were reported previously.
Projects
None yet
Development

No branches or pull requests

2 participants