Support

Home Forums Event Espresso Premium Invoice method auto-activated from Paypal Express

Invoice method auto-activated from Paypal Express

Posted: December 15, 2017 at 1:52 pm

Viewing 10 reply threads


ws4a

December 15, 2017 at 1:52 pm

Hi
We are still suffering from Invoice method auto-activated from Paypal Express from a long time. We previously discussing on this at the following topic:
https://eventespresso.com/topic/generating-an-approved-registration-on-cancellation-of-payment-from-paypal-page/

Today when its happen again (It was happen after a long time), and when seeing logs, I notice “PHP Fatal error: Allowed memory size of 367001600 bytes exhausted (tried to allocate 168043322 bytes) in /wp-content/plugins/event-espresso-core-reg/core/EE_Error.core.php on line 994” is coming continuously. The code is something like this:

$exception_log = EEH_File::get_file_contents(EVENT_ESPRESSO_UPLOAD_DIR
                                                             . 'logs'
                                                             . DS
                                                             . self::$_exception_log_file) . $exception_log;

Getting the file content and then merge the new exception at the end is losing the php memory since the error log become too large about 160MB, so you must update the code and must write just the new exception to the file without getting , you may use file_put_contents with flag FILE_APPEND, If file filename already exists, append the data to the file instead of overwriting it.

But we still not get such case that’s changing the invoice method.


Josh

  • Support Staff

December 15, 2017 at 2:25 pm

Hi there,

Can you delete the log file there in the /wp-content/uploads/espresso/logs, then go to Event Espresso > Payment methods > Invoice setting. Instead of deactivating the Invoice payment method there, you can uncheck the box next to Front-end Registration Page and leave the box checked next to Admin Registration Page (no online processing).


ws4a

December 21, 2017 at 1:11 pm

Hi Josh,

Thanks for your reply, I deleted the log file. I don’t understand your next step “Instead of deactivating the Invoice payment method there, you can uncheck the box next to Front-end Registration Page and leave the box checked next to Admin Registration Page (no online processing).”

We are using paypalExpress for payments, we can not leave the invoice method active. So the Paypal Express must be active always. Our question is why this deactivated automatically?


Josh

  • Support Staff

December 21, 2017 at 1:21 pm

You can leave the invoice method active, but keep it deactivated for the front-end (admin only) by following these steps:

Go to Event Espresso > Payment methods > PayPal Express
Click on the “Activate PayPal Express Payment Method” button if not currently activated.
Go to Event Espresso > Payment methods > Invoice settings
Uncheck the box next to Front-end Registration Page
Check the box next to Admin Registration Page (no online processing)
Click the Update Invoice Payment Settings button


ws4a

December 26, 2017 at 9:29 am

We have did the same as you suggested, activate both invoice (for admin only) and paypal express, lets see this trick will work.

Thanks
Mark


ws4a

January 2, 2018 at 10:29 am

We face it again, the Paypal Express deactivated and invoice remains active and Front-end Registration Page also checked.

When I am seeing System Information under Maintenance, it shows the time of core plugin activation, the last activation is 2018-01-01 11:41:05, it mean the core plugin reactivated when the paypal express is deactivated.

Can you please let us know why it is reactivated automatically.

From the Espresso log, also getting this error continuesly:

Exception Details
Message: Incoming value for registration is not a valid EE_Registration object.
Code: EEH_MSG_Template - get_url_trigger - 474
File: /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_MSG_Template.helper.php
Line No: 474
Stack trace: 
#0 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Messenger_Shortcodes.lib.php(134): EEH_MSG_Template::get_url_trigger(Object(EE_Receipt_message_type), Object(EE_Message), NULL, 'pdf')
#1 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Messenger_Shortcodes.lib.php(105): EE_Messenger_Shortcodes->_get_url(Object(EE_Messages_Addressee), 'pdf')
#2 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Messenger_Shortcodes.lib.php(84): EE_Messenger_Shortcodes->_get_button(Object(EE_Messages_Addressee), 'pdf')
#3 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Shortcodes.lib.php(195): EE_Messenger_Shortcodes->_parser('[DISPLAY_PDF_BU...')
#4 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Parse_Shortcodes.helper.php(246): EE_Shortcodes->parser('[DISPLAY_PDF_BU...', Object(EE_Messages_Addressee), Array)
#5 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Parse_Shortcodes.helper.php(87): EEH_Parse_Shortcodes->_parse_message_template()
#6 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(715): EEH_Parse_Shortcodes->parse_message_template(Array, Object(EE_Messages_Addressee), Array, Object(EE_Receipt_message_type), Object(EE_Html_messenger), Object(EE_Message))
#7 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(615): EE_Messages_Generator->_setup_message_object('purchaser', Object(EE_Messages_Addressee), Array, Object(EE_Message_Template_Group))
#8 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(314): EE_Messages_Generator->_assemble_messages(Array, Array, Object(EE_Message_Template_Group))
#9 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(155): EE_Messages_Generator->_generate()
#10 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Processor.lib.php(124): EE_Messages_Generator->generate()
#11 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/modules/messages/EED_Messages.module.php(292): EE_Messages_Processor->batch_generate_from_queue()
#12 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Scheduler.lib.php(150): EED_Messages->run_cron()
#13 /home/stahlhouse/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Scheduler.lib.php(165): EE_Messages_Scheduler::initiate_immediate_request_on_cron('generate')
#14 [internal function]: EE_Messages_Scheduler::batch_generation()
#15 /home/stahlhouse/public_html/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)
#16 /home/stahlhouse/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#17 /home/stahlhouse/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#18 /home/stahlhouse/public_html/wp-cron.php(126): do_action_ref_array('AHEE__EE_Messag...', Array)
#19 {main}

Thanks
Mark


Josh

  • Support Staff

January 3, 2018 at 7:31 am

Can you please let us know why it is reactivated automatically.

May I ask can you clarify? What is it?


ws4a

January 3, 2018 at 8:35 am

event-espresso-core-reg Plugin is reactivating, when we notice the Paypal Express is deactivated.


Josh

  • Support Staff

January 5, 2018 at 3:35 pm

Are you or someone else deactivating then reactivating the core plugin, or is happening automatically without anyone making changes to the WP dashboard/server?


ws4a

January 8, 2018 at 5:13 pm

@Josh its so sad, we are talking on this from months and you still asking is the EE core plugin automatically reactivating. As I already explained you the paypal express payment is disabled automatically and invoice method become active. In your last response you told me to enable invoice and off for front-end, We did the same, but its happen again and paypal express deativated, when I visit the site the front-end option also become enable for invoice which we uncheck as per your suggestion.

And when I am seeing the Site Status under maintenance, in the area of EE core plugin details, where it shows the plugin version number and activation time, we notice there is new activation time added 2018-01-01 11:41:05, that’s why I am saying the core plugin is going auto reactivated and the payment method changed.

Its my thought that the plugin reactivating, you better know what is causing it.
Please help us.
Thanks
Mark


Tony

  • Support Staff

January 9, 2018 at 4:40 am

Is this happening at set intervals? You mentioned previously its happening every week, but is it around the same day/time each time?

If so its something scheduled on the server, it would be either WP Cron or an actual Cron job. I know you mentioned you don’t have any set up, but are you sure your hosting is running specific scripts each week and that’s when this happens?

What type of hosting are you using?

I don’t have any idea why Event Espresso would show a re-activation, we don’t automatically re-activate EE like the above and I’m not running into this problem on any of my test sites (I have a lot of them on various different hosting setups). So it’s most likely something specific to that site/server setup. However, what that may be I don’t know.

Did this happen on your old hosting as well or is it only since you moved to the new one?

Viewing 10 reply threads

The support post ‘Invoice method auto-activated from Paypal Express’ 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