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

Deprecated: Non-static method MvcSettingsRegistry::get_settings() #116

Closed
alvinbunk opened this issue Jan 17, 2016 · 1 comment
Closed

Comments

@alvinbunk
Copy link
Contributor

When I move the "examples/hierarchical-documentation" folder over to wp-content/plugins and then enable (or refresh) it in WordPress (4.4.1), I get the error (there are other errors):

( ! ) Deprecated: Non-static method MvcSettingsRegistry::get_settings() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\wordpress\wp-content\plugins\wp-mvc\core\loaders\mvc_admin_loader.php on line 246

This has to do with the file "wp-mvc/core/mvc_settings_registry.php" line 7 and line 16, both functions "get_instance" and "get_settings" need to be declared "static".

@alvinbunk
Copy link
Contributor Author

There are also static errors shown in the Admin > Settings > Documentation page.
I can provide a fix for all these.

alvinbunk added a commit to alvinbunk/wp-mvc that referenced this issue Jan 17, 2016
cyberscribe added a commit that referenced this issue Jan 17, 2016
Fix for Issue #116 Non-static method should not be called statically...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants