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

New command to clear all caches: ./console core:clear-caches #6133

Closed
dmb-dz opened this issue Sep 5, 2014 · 4 comments
Closed

New command to clear all caches: ./console core:clear-caches #6133

dmb-dz opened this issue Sep 5, 2014 · 4 comments
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. worksforme The issue cannot be reproduced and things work as intended.

Comments

@dmb-dz
Copy link

dmb-dz commented Sep 5, 2014

Since updating to v2.5.0 I don't get any data in the custom variables tab. Instead I see a HTTP 500 with containing the error message "Action 'index' not found in the module 'CustomVariables'.)".

I already updated to v2.6.1 and de-/activated the plugin, but to no avail. Archiving is done via a webcron.

Any ideas/suggestions?

@tsteur
Copy link
Member

tsteur commented Sep 5, 2014

Are you opening this site from a bookmark? If so try to use the menu to navigate to the report as the URL changed. If not, try to update all the files manually (except config/config.ini.php) see http://piwik.org/docs/update/#the-manual-three-step-update

@dmb-dz
Copy link
Author

dmb-dz commented Sep 5, 2014

@tsteur no, I'm always using the menu. And according to the system integrity check, everything is ok. And I always update manually following the three step update.
Nevertheless I replaced the CustomVariables directory with the one from the 2.6.1 package and received a different error:

Fatal error: Class 'Piwik\Plugins\CustomVariables\Menu' not found

and this file indeed is missing (also currently here in the repo).

Menu.php from the backed up CustomVariables directory has the following function:

public function configureReportingMenu(MenuReporting $menu)
    {
        $menu->add('General_Visitors', 'CustomVariables_CustomVariables', array('module' => 'CustomVariables', 'action' => 'index'), $display = true, $order = 50);
    }

Seems that I'm missing a current menu file as it isn't provided by the package.
[edit] See e9aae52

tsteur added a commit that referenced this issue Sep 7, 2014
@tsteur
Copy link
Member

tsteur commented Sep 7, 2014

It was in this case actually good to replace the whole CustomVariables directory but the caches were probably not cleared. It might be worth executing rm -rf tmp/cache/* after copying the folder. The Menu.php should not exist there.

To make this easier in the future I added a command ./console core:clear-caches.

@mattab Maybe we need a guide for this use case when a user copies the same files again of the same version again. As there is no component update (same version was already installed) the caches won't be cleared. I think the same happens when downgrading Piwik.

@dmb-dz
Copy link
Author

dmb-dz commented Sep 7, 2014

@tsteur thx a lot, works like a charm! ;-)

@dmb-dz dmb-dz closed this as completed Sep 7, 2014
@mattab mattab changed the title Action 'index' not found in the module 'CustomVariables'. New command to clear all caches: ./console core:clear-caches Sep 8, 2014
@mattab mattab added the Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. label Sep 8, 2014
@mattab mattab added the worksforme The issue cannot be reproduced and things work as intended. label Sep 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants