Opened 5 years ago

Closed 5 years ago

#1009 closed Bug (fixed)

Auto Update to version 0.4.4 throws error

Reported by: masterkeedu Owned by:
Priority: normal Milestone: Piwik 0.5
Component: Core Keywords:
Cc: Sensitive: no

Description

I followed the process to auto update my install today and got a nasty exception thrown.

A refresh seemed to go through OK, but def. something to look into.

(output attached)

Attachments (1)

Piwik_0.4.4.err (7.0 KB) - added by masterkeedu 5 years ago.
Notice: Use of undefined constant PIWIK_USER_PATH - assumed 'PIWIK_USER_PATH' in /home/webb_e/webroot/piwik.baungenjar.com/core/View.php on line 44 Backtrace -->#0 Piwik_ErrorHandler(8, Use of undefined constant PIWIK_USER_PATH - assumed 'PIWIK_USER_PATH'

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by masterkeedu

Notice: Use of undefined constant PIWIK_USER_PATH - assumed 'PIWIK_USER_PATH' in /home/webb_e/webroot/piwik.baungenjar.com/core/View.php on line 44 Backtrace -->#0 Piwik_ErrorHandler(8, Use of undefined constant PIWIK_USER_PATH - assumed 'PIWIK_USER_PATH'

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

  • Milestone set to 1 - Piwik 0.5

This looks like an incomplete update.

If your tmp/latest folder contains a piwik folder, it's an indicator that the auto-update did not complete successfully. (Please check your max_execution_time in php.ini.)

Either copy tmp/latest/piwik to your root piwik folder, or download latest.zip and extract. If you re-run the installer, select "reuse existing tables".

comment:2 Changed 5 years ago by masterkeedu

The error occurred almost immediately (less than 15 seconds), so it is not an issue of exceed max_ex_time in php(set to 60 seconds on my server).

Also the tmp/latest folder does not contain a piwik folder. The update seemed to complete normally after refreshing (eg updating piwik tables, etc)

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

Ok, I figured it out. The old CoreUpdater (in memory) is loading the new View.php. I think the fix is to instantiate the view earlier.

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

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

(re-)fixed in [1522] & [1523]

Note: See TracTickets for help on using tickets.