Support

Home Forums Event Espresso Premium Problem With Promotional Code Plugin Latest EE4

Problem With Promotional Code Plugin Latest EE4

Posted: September 15, 2015 at 8:00 pm

Viewing 31 reply threads


Susan Perry

September 15, 2015 at 8:00 pm

We get the following error when trying to use a promotional code:

An unknown error occurred on the server while attempting to process your request. Please refresh the page and try again or contact support.


Seth Shoultes

  • Support Staff

September 15, 2015 at 9:50 pm

Do you have a code I can try to test on your website? I tried using a bogus code, and it showed that the code was not valid:
http://www.screencast.com/t/JNqrQomj


Susan Perry

September 16, 2015 at 5:21 am

Hi Seth,

Please try test553

Thanks


Tony

  • Support Staff

September 16, 2015 at 5:29 am

Hi Susan,

I ran a test registration and ran into the same problem.

Can you temporarily enable WP_DEBUG on the site so we can catch any errors being thrown please?

(Note any errors will be visible to your sites visitors whilst WP_Debug is enabled)

The admin-ajax.php file is returning error 500 internal server error which usually means a fatal error is being thrown – http://take.ms/zVqPt

If you have access to the servers error logs you may also find the error shown there.


Susan Perry

September 17, 2015 at 7:04 am

Hi Tony,

When I go to the backend and click on “Promotions” I see:

An EE_Error exception was thrown! code: EE_Promotion – scope_obj – 398
“The EE_Promotion_Event_Scope class was not found.”
click to view backtrace and class/method details
/wp-content/plugins/eea-promotions/core/db_classes/EE_Promotion.class.php ( line no: 398 )


#	Line	File	Class	Method( arguments )
 	236	/wp-admin/admin.php	 	 do_action( 'event-espresso_page_espresso_promotions' )
1	503	/wp-includes/plugin.php	 	 call_user_func_array( ARRAY( OBJECT Promotions_Admin_Page_Init, 'initialize_admin_page' ), ARRAY( ) )
2	220	/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php	EE_Admin_Page_Init	->initialize_admin_page
3	224	/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php	EE_Admin_Page	->route_admin_request
4	726	/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php	EE_Admin_Page	->_route_admin_request
5	896	/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php	 	 call_user_func_array( ARRAY( OBJECT Promotions_Admin_Page, '_list_table' ) )
6	302	/wp-content/plugins/eea-promotions/admin/promotions/Promotions_Admin_Page.core.php	Promotions_Admin_Page	->_list_table
7	307	/wp-content/plugins/eea-promotions/admin/promotions/Promotions_Admin_Page.core.php	EE_Admin_Page	->display_admin_list_table_page_with_no_sidebar
8	2478	/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php	EE_Admin_Page	->_display_admin_list_table_page
9	2520	/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php	EEH_Template	::display_template( '/wp-content/plugins/event-espresso-core-reg/core/admin/templates/admin_list_wrapper.template.php', ARRAY( '
Legend
 Active
 Upcoming
 Expired
 Unavailable
 Exclusive (can not be combined with other promotions)
∞	Unlimited
', ARRAY( 'Search Promotions', 'search_espresso_promotions' ), 'event-espresso_page_espresso_promotions', 'https://safetycoursesforkids.com/wp-admin/admin.php?page=espresso_promotions&route=default', OBJECT Promotions_Admin_List_Table, 'default', 'Promotions_Admin_List_Table', '' ), TRUE )
10	282	/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php	 	 include( '/wp-content/plugins/event-espresso-core-reg/core/admin/templates/admin_list_wrapper.template.php' )
11	6	/wp-content/plugins/event-espresso-core-reg/core/admin/templates/admin_list_wrapper.template.php	WP_List_Table	->display
12	1080	/wp-admin/includes/class-wp-list-table.php	WP_List_Table	->display_rows_or_placeholder
13	1150	/wp-admin/includes/class-wp-list-table.php	WP_List_Table	->display_rows
14	1166	/wp-admin/includes/class-wp-list-table.php	EE_Admin_List_Table	->single_row( OBJECT EE_Promotion )
15	587	/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_List_Table.core.php	EE_Admin_List_Table	->single_row_columns( OBJECT EE_Promotion )
16	677	/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_List_Table.core.php	 	 call_user_func( ARRAY( OBJECT Promotions_Admin_List_Table, 'column_applies_to' ), OBJECT EE_Promotion )
17	115	/wp-content/plugins/eea-promotions/admin/promotions/Promotions_Admin_List_Table.class.php	Promotions_Admin_List_Table	->column_applies_to( OBJECT EE_Promotion )
18	116	/wp-content/plugins/eea-promotions/admin/promotions/Promotions_Admin_List_Table.class.php	EE_Promotion	->applied_to_name( 'admin' )
19	398	/wp-content/plugins/eea-promotions/core/db_classes/EE_Promotion.class.php	EE_Promotion	->scope_obj
  • This reply was modified 9 years ago by Tony. Reason: Removed server details and stack trace


Tony

  • Support Staff

September 17, 2015 at 7:19 am

Can you open the ‘Settings’ tab within Promotions?

If so can you simply click to save the settings there.

Is the error then removed?


Susan Perry

September 17, 2015 at 7:25 am

When clicking on “Promotions” there is no settings tab rendered.


Josh

  • Support Staff

September 17, 2015 at 7:41 am

Can you FTP in and check to see if your copy of the promotions add-on has this file:

wp-content/plugins/eea-promotions/lib/scopes/EE_Promotion_Event_Scope.lib.php

If it doesn’t, you can download a fresh copy of the promotions add-on from your account page, and re-install.


Susan Perry

September 17, 2015 at 7:55 am

Hi Josh,

yes it does. I also re-downloaded the plugin and re-uploaded it to ensure there was no issue during the upload process.


Lorenzo Orlando Caum

  • Support Staff

September 17, 2015 at 8:04 am

Hi Susan, are you uploading through SFTP or FTP?

If so, could you try re-installing by removing the existing version and then uploading the zip through WordPress plugins in your WP dashboard?

If that is not available, then please try an alternative SFTP or FTP client for the manual upload.


Lorenzo


Susan Perry

September 17, 2015 at 1:36 pm

Hi Lorenzo, I deactivated the plugin and re-uploaded the plugin through FTP and still not working.


Lorenzo Orlando Caum

  • Support Staff

September 17, 2015 at 2:20 pm

Hi Susan, are you able to remove both the core plugin and the promotions plugin and then get fresh copies and install through the WP dashboard instead of using an SFTP / FTP client?

We aren’t purposefully asking the same question over and over but we have seen incomplete installations through FTP / SFTP cause strange issues.

If your site does not allow uploads through the WP dashboard, then please let us know and in this case, I would try a different SFTP / FTP client to manually upload again.


Lorenzo


Josh

  • Support Staff

September 17, 2015 at 2:22 pm

You could also verify that the file’s permissions are set to allow them to be read.


Susan Perry

September 18, 2015 at 10:45 am

I uploaded the files through the WP uploaded and still no luck. Chmodded files and folders to 777 and still no luck… chmodded folders back to 775 and files back to 644 still no luck….

What next?


Susan Perry

September 18, 2015 at 10:52 am

I just wanted to let you guys know that with debug enabled no errors are appearing when I click on “Promotions”, however I still get an error when I try a coupon such as test553


Josh

  • Support Staff

September 18, 2015 at 11:13 am

When you go to the Promotions admin page, can you open the ‘Settings’ tab now?
If so can you click to save the settings there?


Susan Perry

September 18, 2015 at 1:41 pm

Yes I can save.


Josh

  • Support Staff

September 18, 2015 at 2:07 pm

Do you have WP_DEBUG set to true, and is there an event with a code we can test on at the moment?


Susan Perry

September 18, 2015 at 5:15 pm

Try test553. Debug is enabled.


Susan Perry

September 21, 2015 at 5:16 am

Anything?


Tony

  • Support Staff

September 21, 2015 at 5:48 am

Hi Susan,

Which event is that code currently applied to?

I tested on a couple of events but the code is not valid on those events.

When you create the promo code you apply that code to events – http://take.ms/pY4ja

So in my example the code can only be applied to the ‘Active Event’ event.

Can you link us to an event that your promo code applies to please?


Susan Perry

September 21, 2015 at 8:06 am

I applied it to all events but for some reason it isn’t taking effect. Can we provide you backend access to take a look?


Susan Perry

September 21, 2015 at 3:00 pm

?


Tony

  • Support Staff

September 21, 2015 at 3:23 pm

If you can provide temporary login details using this form I’ll take a look:

https://eventespresso.com/send-login-details/


Susan Perry

September 22, 2015 at 5:57 am

Hi Tony, access has been sent through the form.


Tony

  • Support Staff

September 22, 2015 at 10:43 am

Hi Susan,

I looked over your promotions and found that the test promo code you provided had been trashed, is this a recent change or has the code been trashed whilst attempting to use the code? (trashed codes cannot be used which would explain the above)

I tested your currently active code on one of your events and it worked without a problem.

I do see the problem with the events selection on your site, so far I’ve been unable to reproduce it locally but will continue to investigate.


Susan Perry

September 22, 2015 at 4:59 pm

Hi Tony,

When you say:

I do see the problem with the events selection on your site, so far I’ve been unable to reproduce it locally but will continue to investigate.

You are referring to the fact I am unable to apply the code “bigdiscount” to all events correct? This is definately problematic.

Also, how would you do fixed dollar discount? I see there is two options:

1) Percent
2) Hamilton huskies discount

Where is it getting these types from?


Tony

  • Support Staff

September 23, 2015 at 5:17 am

You are referring to the fact I am unable to apply the code “bigdiscount” to all events correct? This is definately problematic.

Yes, there is something very strange happening with the event list there.

It is possible to get the events to all list there (click ‘sort’ and you’ll find events you previously did not) but it isn’t working as expected.

Currently I suspect its being cause by some form of plugin conflict although I’m running through various testing to see if I can reproduce first.

1) Percent
2) Hamilton huskies discount

Those are pulled from the default price types.

If you go to Event Espresso -> Pricing -> Price Types (tab)

Do you see Percent and ‘Hamilton huskies discount’ listed there?


Susan Perry

September 24, 2015 at 5:37 pm

Hi Tony,

I’ll upgrade all plugins including EE4 on Saturday and will let you know the outcome.


Susan Perry

September 26, 2015 at 3:34 pm

Still not able to select all events after upgrade. Can you take a closer look?


Susan Perry

September 28, 2015 at 2:35 pm

Come on guys… let’s get this working as expected!!!


Tony

  • Support Staff

September 29, 2015 at 3:16 am

Hi Susan,

I’m sorry for the delay in getting back to you, this bug took some tracking down, hitting a few dead ends on the way!

We’ve found the cause and have created a ticket for our developers to investigate and fix, we will update this thread with any news.

Currently if you click the ‘sort’ link to sort ascending – http://take.ms/6XEtT

You should see the events that you previously could not select.

Viewing 31 reply threads

The support post ‘Problem With Promotional Code Plugin Latest EE4’ 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