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

Fatal error: Uncaught BadMethodCallException #12

Open
ookris opened this issue Apr 29, 2022 · 1 comment
Open

Fatal error: Uncaught BadMethodCallException #12

ookris opened this issue Apr 29, 2022 · 1 comment

Comments

@ookris
Copy link

ookris commented Apr 29, 2022

Describe the bug
I get this error after updating YOURLS to the latest one.

Fatal error: Uncaught BadMethodCallException: Class 'YOURLS\Database\YDB' does not have a method 'get_results' in /public_html/out/includes/vendor/aura/sql/src/AbstractExtendedPdo.php:113 Stack trace: #10 /public_html/out/user/plugins/yourls-popular-clicks-extended/plugin.php(161): Aura\Sql\AbstractExtendedPdo->__call('get_results', Array) #1 /public_html/out/user/plugins/yourls-popular-clicks-extended/plugin.php(248): vaughany_show_specific_period('2022-04-29 18', 'hour', 20, 'this hour (29th...') #2 /public_html/out/includes/functions-plugins.php(819): vaughany_popularclicksextended_display_page() #3 /public_html/out/admin/plugins.php(8): yourls_plugin_admin_page('popularclicksex...') #4 {main} thrown in /public_html/out/includes/vendor/aura/sql/src/AbstractExtendedPdo.php on line 113

Steps to reproduce the behavior:
The error shows up in the plug-in menu.

@ookris
Copy link
Author

ookris commented Jun 10, 2022

Problem has been solved.
It is enough to change the value in the plugin code:
get_results
on
fetchObjects
in lines: 88, 161, 219

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

1 participant