-
Notifications
You must be signed in to change notification settings - Fork 87
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
Moved the shortcode call before output buffering #3
Conversation
@tn3rb review please :) |
Actually it's possible the change isn't necessary. I was testing the ob_start issue with another plugin and it wasn't having the same problems. I went back to the function and poked around and saw that if no active gateways are setup it sends an email and just ends - before the shortcode is setup. I'm working locally with no mail service setup so I didn't get the email. Not sure what the best solution would be here, in order to prevent confusion perhaps call the shortcode early and allow it to remain blank (or with an error message indicating no IPN is setup) or just allow it to display the shortcode as text on the page. |
so did the shortcode work after you set up a gateway ??? |
Actually, not quite. I see a bunch of errors on the payments settings page Thanks for the help so far! I'll look at some of the fixes in the other On Fri, Jan 18, 2013 at 11:35 AM, Brent Christensen <
|
any chance you can post some of the errors here? If you're busy with other things, I understand. |
Sure, not a problem! I got these on the transaction page when I visit it (with check payments, Warning: require_once(/init.php): failed to open stream: No such file or And here's a screenshot of the errors/notices on the payment options page: https://www.dropbox.com/s/chthk6qq8xlw6se/ee-payment-gateway-error.png On Fri, Jan 18, 2013 at 11:47 AM, Brent Christensen <
|
the big list of error notices on the Payment Settings page can be ignored since, as the errors state "For the time being, the following error indicates that Gateway has yet to be converted over to 3.2" so no worries there. I really only put there error there to help "inspire" the guy that was converting the gateways!!! As for the other error, for the time being you could open up /gateways/process_payments.php and change line 27 from: foreach ( $active_gateways as $gateway => $path ) {
require_once( $path . '/init.php' );
} to foreach ( $active_gateways as $gateway => $path ) {
if ( file_exists( $path . '/init.php' )) {
require_once( $path . '/init.php' );
}
} |
Thanks! I'll go ahead and close this then. :) |
For some reason in the development branch the ESPRESSO_TXN_PAGE shortcode wasn't working, as if the shortcode didn't exist.
Moving the line where the shortcode is defined above the ob_start() seems to work. Not entirely sure why, but I'm guessing the output buffering interferes somehow.