To preface this, I have basically no experience in web development, so I’m trying earnestly to learn how to fix the issue. I know there’s a lot that I simply don’t even understand even when it’s clear-as-day to a pro web developer.
I’ve got a plugin that is crashing my website. I’ve asked the developer for help, but they’ve been less than helpful and saying it’s not the plugin. Maybe so, but I don’t know what I’m doing. I installed the WP Debugger plugin, and I was able to get a debug log that shows more issues than I can understand. However, at the end of it, this is what I’m getting:
Stack trace:#0 /home4/oldenha1/public_html/thebulletpros/wp-settings.php(462): include_once()#1 /home4/oldenha1/public_html/thebulletpros/wp-config.php(191): require_once(‘/home4/oldenha1…’)#2 /home4/oldenha1/public_html/thebulletpros/wp-load.php(50): require_once(‘/home4/oldenha1…’)#3 /home4/oldenha1/public_html/thebulletpros/wp-blog-header.php(13): require_once(‘/home4/oldenha1…’)#4 /home4/oldenha1/public_html/thebulletpros/index.php(17): require(‘/home4/oldenha1…’)#5 {main}thrown in /home4/oldenha1/public_html/thebulletpros/wp-content/plugins/gateway/gateway.php on line 27
The website is currently giving this below error when the debug plugin and the problematic plugin are both active (it says more to this error, but it bascially seems to be also saying what’s above):
Fatal error: Uncaught Error: Class “CustomPaymentGateway\Plugin” not found in /home4/oldenha1/public_html/thebulletpros/wp-content/plugins/gateway/gateway.php:27
The debugging plugin itself was giving me problems with accessing the website, so I did learn how to get directly into it to deactivate it; pretty cool. I’ve done a bunch of digging around trying to understand the error in more detail after that. My understanding is that it might have something to do with the way things are named and what folders the different components landed in during installation of the plugin. For instance, my understanding is that it’s looking for a Plugin.php file in a folder called CustomPaymentGateway (could be wrong on this), and there is supposed to be a reference of that CustomPaymentGateway\Plugin in the gateway.php file. It’s there, but not sure what the “line 27” issue in the error message is. I also don’t see anything at all in cPanel saying CustomPaymentGateway. This below is the gateway.php file.