Error thrown

Non-static method sidebar_generator::get_sidebar() cannot be called statically