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
one click update 2.6.1 to 2.6.2 fails #10372
Comments
Hi @bizmate - Thank you for the report. unfortunately i'm not able to reproduce this issue, as the auto update worked for me on two different Piwik servers. Does anyone else experience this issue? could you please post the full error messages or screenshots showing the problem? |
Hi @mattab I also run in to the same issue. In the middle of the upgrade there were some errors about not writable folders I just skipped that and with |
In error logs I see only one line: And another notice, fresh Piwik install after copying the plugins/config folder from the old one works. |
Can you please check that all files were uploaded correctly? it looks like some files such as plugins/Morpheus/templates/ajaxMacros.twig were not overwritten successfully |
That could be the case: {% macro errorDiv(id='ajaxError') %}
<div id="{{ id }}" style="display:none"></div>
{% endmacro %}
{% macro loadingDiv(id='ajaxLoadingDiv') %}
<div id="{{ id }}" style="display:none;">
<div class="loadingPiwik">
<img src="plugins/Morpheus/images/loading-blue.gif" alt="{{ 'General_LoadingData'|translate }}" />{{ 'General_LoadingData'|translate }}
</div>
<div class="loadingSegment">
{{ 'SegmentEditor_LoadingSegmentedDataMayTakeSomeTime'|translate }}
</div>
</div>
{% endmacro %}
{% macro requestErrorDiv(emailSuperUser, arePiwikProAdsEnabled = false) %}
<div id="loadingError">
<div class="alert alert-danger">
{% if emailSuperUser is defined and emailSuperUser %}
{{ 'General_ErrorRequest'|translate('<a href="mailto:' ~ emailSuperUser ~ '">', '</a>')|raw }}
{% else %}
{{ 'General_ErrorRequest'|translate('', '') }}
{% endif %}
<br /><br />
{{ 'General_NeedMoreHelp'|translate }}
<a rel="noreferrer" target="_blank" href="https://piwik.org/faq/troubleshooting/faq_19489/">{{ 'General_Faq'|translate }}</a> ?~@~S
<a rel="noreferrer" target="_blank" href="http://forum.piwik.org/">{{ 'Feedback_CommunityHelp'|translate }}</a>
{%- if arePiwikProAdsEnabled %}
?~@~S
<a rel="noreferrer" target="_blank" href="{{ 'https://piwik.pro/'|piwikProCampaignParameters('Help', 'AjaxError')|e('html_attr') }}">{{ 'Feedback_ProfessionalHelp'|translate }}</a>
{%- endif %}.
</div>
</div>
{% endmacro %} How can you rerun the upgrade when there is a permission error? |
Some progress so far:
Checking further. |
To save on time, I ended up doing the following:
Everything seems to be working fine. Old sites are recognized and system check does not report any issues. I'll test the new setup thoroughly and keep you posted. |
Making a clean install and then importing the database seems to be working good. Here's system information in case you need it for debugging:
Hope this helps. |
Hi, Had the same problem 'Variable "arePiwikProAdsEnabled" does not exist in "@CoreHome/getDefaultIndexView.twig" at line 13' I reinstall the last piwik version on the same database, and I got back piwik with all my data. |
Great, good to hear that. So the same steps as in this comment worked for you, correct? |
I didn't have to import the database, I just made a fresh install and using the database that already exists. I first made an export of the database, just in case...but I didn't need it ( fortunatly) |
Yep, steps are pretty much the same. Thanks for fast message; hopefully this will help others with the same issue. |
Hi, After reload, i got the "update database" screen. Next screen was the "unknown pewikProCampainParameters filter in ajaxMacros.twig" After reuploading the source of piwik 2.6.2 to the existing folders, the error changed to "Variable arePiwikProAdsEnabled missing" remark: there were some files/folders missing before. my solution: deleting the whole piwik folder and do a "clean install" with wget All settings are ok, all pages and data is present. thanks god. |
This has happened to me too after upgrading to 2.6.2 via a web wizard. I was managed to resolve it by following steps:
Then is worked. |
After checking the source code I can't find arePiwikProAdsEnabled, is it that Piwik automatically get the advertising online and insert it into the codebase, if it is true, it's very bad behaviour |
No, of course we don't do this Please delete the files |
I have piwik installed on Dreamhost.
Saw the update message and went for the online update. The first error i received was that a autogenerated composer autoload file was missing so it was failing.
I installed composer and run
composer install
This step took me to error #9703
At this point i tried to do what was suggested there, ie delete the contents in tmp/ but this fixed nothing. When reloading the homepage i was getting the template missing error.
I had to manually update to fix the problem. I thought i d let you know
The text was updated successfully, but these errors were encountered: