Support

Home Forums Event Espresso Premium The requested EE_PMT_Paypal_Standard module class does not exist.

The requested EE_PMT_Paypal_Standard module class does not exist.

Posted: March 22, 2018 at 6:49 pm

Viewing 4 reply threads


mopta

March 22, 2018 at 6:49 pm

We have a ticket that has a 4 minimum and 4 maximum as we are offering a package “buy-three-get-one-free” deal and this was the easiest way to make that happen. Yesterday, someone was able to purchase only 3 tickets at the discounted price (only paid $112.50 through PayPal instead of the $150 package price, which was verified in our PayPal account), and now we have the error listed I the subject above and no tickets are able to be added to a cart, no matter the browser used. This seems to also be affecting ur ability to upload media to our site. All of the text below shows up at the top of our WordPress dashboard:

if ( ! defined(‘EVENT_ESPRESSO_VERSION’)) { exit(‘No direct script access allowed’); } /** * * Class EE_PMT_Paypal_Standard * * @package Event Espresso * @subpackage core * @author Mike Nelson * * */ class EE_PMT_Paypal_Standard extends EE_PMT_Base{ const shipping_info_none = 1; const shipping_info_optional = 0; const shipping_info_required = 2; /** * @param null $pm_instance * @return \EE_PMT_Paypal_Standard * @throws \EE_Error */ public function __construct($pm_instance = NULL) { require_once($this->file_folder().’EEG_Paypal_Standard.gateway.php’); $this->_gateway = new EEG_Paypal_Standard(); $this->_pretty_name = __(“PayPal Standard”, ‘event_espresso’); $this->_default_description = sprintf( __( ‘Upon submitting this form, you will be forwarded to PayPal to make your payment. %1$sMake sure you return to this site in order to properly finalize your registration.%2$s’, ‘event_espresso’ ), ”, ” ); parent::__construct($pm_instance); $this->_default_button_url = $this->file_url().’lib’.DS.’paypal-logo.png’; } /** * Creates the billing form for this payment method type * @param \EE_Transaction $transaction * @return NULL */ public function generate_new_billing_form( EE_Transaction $transaction = NULL ) { return NULL; } /** * Gets the form for all the settings related to this payment method type * * @return EE_Payment_Method_Form * @throws \EE_Error */ public function generate_new_settings_form() { require_once( $this->file_folder() . ‘EE_Paypal_Standard_Form.form.php’ ); $form = new EE_Paypal_Standard_Form( $this ); $form->get_input( ‘PMD_debug_mode’ )->set_html_label_text( sprintf( __( “Use PayPal Sandbox %s”, ‘event_espresso’ ), $this->get_help_tab_link() ) ); $form->get_input( ‘shipping_details’ )->set_html_label_text( sprintf( __( “Shipping Address Options %s”, “event_espresso” ), $this->get_help_tab_link() ) ); return $form; } /** * Adds the help tab * @see EE_PMT_Base::help_tabs_config() * @return array */ public function help_tabs_config(){ return array( $this->get_help_tab_name() => array( ‘title’=> __(“PayPal Standard Settings”, ‘event_espresso’), ‘filename’=>’payment_methods_overview_paypalstandard’ ) ); } /** * Logic to be accomplished when the payment attempt is complete. * Most payment methods don’t need to do anything at this point; but some, like Mijireh, do. * (Mijireh is an offsite gateway which doesn’t send an IPN. So when the user returns to EE from * mijireh, this method needs to be called so the Mijireh PM can ping Mijireh to know the status * of the payment). Fed a transaction because it’s always assumed to be the last payment that * * @param EE_Transaction $transaction * @return EE_Payment * @throws \EE_Error */ public function finalize_payment_for($transaction){ // PayPal standard actually sends the IPN info along with the user when they return to our site // so in case the IPN is arriving later, let’s try to process an IPN! if( $_SERVER[‘REQUEST_METHOD’] === ‘POST’ ){ return $this->handle_ipn($_POST, $transaction ); }else{ return parent::finalize_payment_for( $transaction ); } } }

We have not had a problem since this event was made live in January, until this transaction happened yesterday.


Josh

  • Support Staff

March 22, 2018 at 6:55 pm

Hi there,

It sounds like some files were deleted from your web server. In any case, the way forward will be to deactivate, then remove the Event Espresso plugin, then reinstall a fresh copy. You can download a fresh copy from your account page.

Then after that, you can switch to use the PayPal Express gateway. You can use the same PayPal account and get your PayPal API credentials by following this guide:
https://eventespresso.com/wiki/paypal-express-payment-gateway/#locate

After PayPal Express is activated and configured, you can deactivate the PayPal Standard gateway.


mopta

March 22, 2018 at 7:00 pm

We already use PayPal Express, and have that setup, we have never used PayPal Standard. The only payment options selected under “Payment Methods” are check and PayPal Express. If the route you mention is how we have to go does that mean we will have to recreate all the tickets we currently have live? And will we lose all current registrations?


Josh

  • Support Staff

March 22, 2018 at 7:14 pm

No you won’t lose any data, including tickets and registrations. All of the data is stored within the database of your website. The plugin files are completely separate, and you’ll only be replacing old files with new files.


mopta

March 22, 2018 at 7:54 pm

Seems to be working now, thank you!

Viewing 4 reply threads

The support post ‘The requested EE_PMT_Paypal_Standard module class does not exist.’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso