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

Core:archive scheduled tasks Call to undefined method in Tasks.php #10884

Closed
mahdi1234 opened this issue Nov 20, 2016 · 3 comments
Closed

Core:archive scheduled tasks Call to undefined method in Tasks.php #10884

mahdi1234 opened this issue Nov 20, 2016 · 3 comments
Labels
duplicate For issues that already existed in our issue tracker and were reported previously.
Milestone

Comments

@mahdi1234
Copy link

Piwik 2.17.1

php5 /var/www/site/piwik/console core:archive --url=http://piwik.site
...
INFO [2016-11-14 22:04:25] SCHEDULED TASKS
PHP Fatal error: Call to undefined method Piwik\Plugins\CorePluginsAdmin\CorePluginsAdmin::isMarketplaceEnabled() in /var/www/site/piwik/plugins/CorePluginsAdmin/Tasks.php on line 17

I commented out problematic part in piwik/plugins/CorePluginsAdmin/Tasks.php

  /**
   if (CorePluginsAdmin::isMarketplaceEnabled()) {
   $this->daily('sendNotificationIfUpdatesAvailable', null, self::LOWEST_PRIORITY);
   }
   */

and it works again.

@tsteur
Copy link
Member

tsteur commented Nov 20, 2016

It looks like some files were not updated during the last update. Can you follow these steps to update the files manually: http://piwik.org/docs/update/#the-manual-three-step-update

You could maybe also try to only update that file piwik/plugins/CorePluginsAdmin/Tasks.php first to check if it works but maybe other files weren't updated either.

Important: If you update all your files make sure to backup the file config/config.ini.php first as explained in the guide

@tsteur
Copy link
Member

tsteur commented Nov 20, 2016

Actually, you can fix it by just deleting that file piwik/plugins/CorePluginsAdmin/Tasks.php. The file is not needed anymore.

@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Nov 20, 2016
@tsteur
Copy link
Member

tsteur commented Nov 20, 2016

Duplicate of #10805

@tsteur tsteur closed this as completed Nov 20, 2016
@tsteur tsteur added duplicate For issues that already existed in our issue tracker and were reported previously. and removed answered For when a question was asked and we referred to forum or answered it. labels Nov 20, 2016
@tsteur tsteur added this to the 2.17.2 milestone Nov 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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