The class ExampleUI couldn't be found


#1

Hello,
after upgrade to 2.4.0 i have the problem when clicked on settings as superuser this url ?module=UsersManager&action=userSettings&idSite=1&period=day&date=yesterday
shows the message The class ExampleUI couldn’t be found in the file ‘/var/www/piwik/plugins/ExampleUI/ExampleUI.php’ have any ideas?

thank’s for help.


#2

Exactly the same here. I’ve two Piwik installations:
one from 1.9 to 2.2.2 - no problems
one from 1.9 to 2.4.0 - same as fdtest
php 5.4.20
mysql 5.6.12

After hitting the update key, the web DB update timed out.
So I repeated DB update from bash with the suggested shell command string.

Looks like the entire admin tools are unaccessible.
My language is German (cannot change that, as I’m locked out):

Einstellungen: that’s the one from above
Verwalten: grayed out
Plattform: grayed out
Other subitems seem to work normally.

Found the two files with class definition looking totally different.
Class definition starting with:
2.2.2: 'class ExampleUI extends \Piwik\Plugin’
2.4.0: ‘class Piwik_ExampleUI extends Piwik_Plugin’


(Robert) #3

same here - upgraded from v1.12 to v2.4, database-update timed out, triggered it again via web interface and update was completed. Afterwards the entire admin tools became unaccessible. I tried outcommenting the following lines in config.ini.php, but with no success:

; PluginsInstalled[] = “ExampleAPI”
; PluginsInstalled[] = “ExamplePlugin”
; PluginsInstalled[] = “ExampleRssWidget”

any help would be appreciated!


#4

There’s another ongoing thread about the same problem. Lots of users seem to experience that problem after upgrading to 2.4.0.

Fortunately, they’ve already solved that problem, at least it did the trick for me:

In the new version there is no /plugins/ExampleUI/ExampleUI.php file at all.
That caused the error and blocking access to the settings page.
So deleting that file (/plugins/ExampleUI/ExampleUI.php) solved the issue.

Live could be so simple…


(Matthieu Aubry) #5

To solve this problem please delete the file: /plugins/ExampleUI/ExampleUI.php


#6

After updating to 2.4.1 and deleted /plugins/ExampleUI/ExampleUI.php, I can directly go to …/index.php?module=CoreAdminHome

But I still don’t see the setting list box on the top bar, see attached image.
I do have this error when piwik loads

Error: [$compile:tplrt] AngularJS
E/<@https://si-pmi.dev.santepublique.rtss.qc.ca/geo/piwik/index.php?module=Proxy&action=getCoreJs&cb=4a217d1e550ca741405535ec7d4ae65e:231:443
kc/this.$get</O/<@https://si-pmi.dev.santepublique.rtss.qc.ca/geo/piwik/index.php?module=Proxy&action=getCoreJs&cb=4a217d1e550ca741405535ec7d4ae65e:280:328
nd/this.$get</q/g.success/<@https://si-pmi.dev.santepublique.rtss.qc.ca/geo/piwik/index.php?module=Proxy&action=getCoreJs&cb=4a217d1e550ca741405535ec7d4ae65e:292:279
Bd/e/l.promise.then/B@https://si-pmi.dev.santepublique.rtss.qc.ca/geo/piwik/index.php?module=Proxy&action=getCoreJs&cb=4a217d1e550ca741405535ec7d4ae65e:319:1
Bd/f/<.then/<@https://si-pmi.dev.santepublique.rtss.qc.ca/geo/piwik/index.php?module=Proxy&action=getCoreJs&cb=4a217d1e550ca741405535ec7d4ae65e:320:163
Cd/this.$get</h.prototype.$eval@https://si-pmi.dev.santepublique.rtss.qc.ca/geo/piwik/index.php?module=Proxy&action=getCoreJs&cb=4a217d1e550ca741405535ec7d4ae65e:328:445
Cd/this.$get</h.prototype.$digest@https://si-pmi.dev.santepublique.rtss.qc.ca/geo/piwik/index.php?module=Proxy&action=getCoreJs&cb=4a217d1e550ca741405535ec7d4ae65e:326:198
Cd/this.$get</h.prototype.$apply@https://si-pmi.dev.santepublique.rtss.qc.ca/geo/piwik/index.php?module=Proxy&action=getCoreJs&cb=4a217d1e550ca741405535ec7d4ae65e:329:262
g@https://si-pmi.dev.santepublique.rtss.qc.ca/geo/piwik/index.php?module=Proxy&action=getCoreJs&cb=4a217d1e550ca741405535ec7d4ae65e:293:10
I@https://si-pmi.dev.santepublique.rtss.qc.ca/geo/piwik/index.php?module=Proxy&action=getCoreJs&cb=4a217d1e550ca741405535ec7d4ae65e:297:109
qd/</y.onreadystatechange@https://si-pmi.dev.santepublique.rtss.qc.ca/geo/piwik/index.php?module=Proxy&action=getCoreJs&cb=4a217d1e550ca741405535ec7d4ae65e:298:154

https://si-pmi.dev.santepublique.rtss.qc.ca/geo/piwik/index.php?module=CoreHome&action=index&idSite=2&period=year&date=today/event/seq/1/onclick
Line 309


#7

After updated to 2.4.1 and deleted /plugins/ExampleUI/ExampleUI.php I still can´t access the settings!!!
Still the same error as fdtest has. What is the solution, please?


#8

After updated to 2.4.1 and deleted /plugins/ExampleUI/ExampleUI.php I still can´t access the settings!!!
Still the same error as fdtest has. What is the solution, please?


(Matthieu Aubry) #9

What error do you get exactly?

Maybe this FAQ could help: How do I configure my server to let Piwik serve HTML files? - Analytics Platform - Matomo