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

Warning: Undefined array key "transaction" in C:\greco\htdocs\paystack\vendor\yabacon\paystack-php\src\Paystack\Helpers\Router.php on line 100 #36

Open
Lefagana opened this issue Nov 4, 2021 · 2 comments

Comments

@Lefagana
Copy link

Lefagana commented Nov 4, 2021

Fatal error: Uncaught TypeError: get_class_methods(): Argument #1 ($object_or_class) must be an object or a valid class name, null given in C:\greco\htdocs\paystack\vendor\yabacon\paystack-php\src\Paystack\Helpers\Router.php:67 Stack trace: #0 C:\greco\htdocs\paystack\vendor\yabacon\paystack-php\src\Paystack\Helpers\Router.php(67): get_class_methods(NULL) #1 C:\greco\htdocs\paystack\vendor\yabacon\paystack-php\src\Paystack.php(106): Yabacon\Paystack\Helpers\Router->__construct('transaction', Object(Yabacon\Paystack)) #2 C:\greco\htdocs\paystack\index.php(13): Yabacon\Paystack->__get('transaction') #3 {main} thrown in C:\greco\htdocs\paystack\vendor\yabacon\paystack-php\src\Paystack\Helpers\Router.php on line 67

@zeoharlem
Copy link

Hi!
follow this link for the solution
https://github.com/yabacon/paystack-php/blob/master/src/Paystack/Helpers/Router.php

change this private function getRouteClass($paystackObj) to the one in your Router.php helper class..

@damienmckenna
Copy link

That suggests all that's needed is a new stable release of the library?

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

3 participants