New plugin: Generation time by seconds - plugin is not activated error


(Brandon Coleman) #1

I am attempting to create a plugin that will aggregate page generation time binned by seconds, which would create a report similar to this:
1s 500 actions
2s 100 actions
3s 50 actions
etc.

At this point I have made a base plugin from the documentation, and copied code from the VisitTime plugin in an attempt to get something to work, but get an error I can’t fix when I visit a link:
http://localhost:8000/index.php?module=API&method=PageGenerationStats.getGenerationTimeBySeconds&format=CSV&idSite=1&period=day&date=2015-12-11&expanded=1&translateColumnNames=1&language=en

Error: Error: The report ‘PageGenerationBySeconds’ was requested but it is not available at this stage. (Plugin ‘’ is not activated.)

Is there a place I can put the code to help with debugging this issue?

Brandon


(Stefan Giehl) #2

Do you have the plugins code on github or somewhere else public?
Maybe someone could have a look then…