Support

Home Forums Event Espresso Premium Backend Hosting Errors

Backend Hosting Errors

Posted: May 10, 2017 at 1:57 pm

Viewing 6 reply threads


commgladm

May 10, 2017 at 1:57 pm

We are trying to increase performance of our website as I’m getting an HTTP error 500 when loading the PDF. When I review errors via the hosting cpanel, there is a reoccurring error I see that I need help with (the other errors are memory related which I can find options for).

Common error message:
[date/time] [lsapi:notice] [pid/tid] [client IP] [host {our website}] Backend log: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'add_career_metaboxes' not found or invalid function name in /home/comcgl/public_html/wp-includes/class-wp-hook.php on line 300\n, referer: https://commissionaires-cgl.ca/wp-admin/admin.php?page=espresso_registrations&action=view_registration&_REG_ID=350&view_registration_nonce=a633a0ea10

Above occurred twice in a row and then the next entries are almost the same except for the last bit: action=edit_attendee&post=8893&edit_attendee_nonce=a07259d3f4&return=view_registration
action=edit_message_template&id=19&edit_message_template_nonce=02b9c9f420&context=primary_attendee
id=19&context=primary_attendee&action=edit_message_template&_wpnonce=02b9c9f420&edit_message_template_nonce=02b9c9f420&return=update_message_template

b) Not sure if this is related to Event Espresso or not:
[date/time] [lsapi:error] [pid/tid 3] [client IP] [host {our website}] Backend fatal error: PHP Fatal error: Call to a member function get_page_permastruct() on null in /home/comcgl/public_html/wp-includes/link-template.php on line 357\n


Josh

  • Support Staff

May 10, 2017 at 2:23 pm

The first error is related the plugin or theme function that has
add_career_metaboxes.

The get_page_permastruct() error is kind of an odd one. It may be related to Event Espresso or possibly another plugin. You could try adding the following into a site specific plugin and activate the plugin:

add_action( 'AHEE__EE_System__load_espresso_addons__complete', 'remove_restapi_user_auth_errors' );
function remove_restapi_user_auth_errors(){
  remove_filter( 'determine_current_user', 'json_basic_auth_handler', 20 );
  remove_filter( 'json_authentication_errors', 'json_basic_auth_error' );
  remove_filter( 'rest_authentication_errors', 'json_basic_auth_error' );
}

You can add the above to a functions plugin.


commgladm

May 10, 2017 at 2:27 pm

the add_career_metaboxes looks like it’s coming from somewhere in the event registration. Since it isn’t something I added, how do I find it?


Josh

  • Support Staff

May 10, 2017 at 2:36 pm

add_career_metaboxes isn’t a function that Event Espresso declares or uses anywhere, but another plugin is probably trying to run that function on the page that you’re getting the error from. If you actually want to find the add_career_metaboxes function you look in the active WordPress theme and the other activated plugins on the website.


commgladm

May 11, 2017 at 6:49 am

I took a look and can’t find the code (I’m not a web person) but I am wondering if it is attempting to attach part of the standard footer we have to the registration html page that says “congratulations on registering”:
CAREERS | NEWS | REGISTER FOR TRAINING | CONTACT US


Josh

  • Support Staff

May 11, 2017 at 9:19 am

The view registration page doesn’t attempt to get that code, and your code probably doesn’t use an add_career_metaboxes(). If I were to guess, you have either a plugin that adds a “career” custom post type or there’s a theme function that adds this. Then, the add_career_metaboxes() function tries to load its scripts on pages other than its admin page.

Does your WordPress admin dashboard have a place where you can add “Career” posts? If so, you can contact the developer of the plugin (if it’s added by a plugin) or the developer of the theme (if it’s added by the theme) for support.


commgladm

May 11, 2017 at 9:41 am

Nope. I will assume it is related to the Theme and pursue it with that developer. Thank you for the help.

Viewing 6 reply threads

The support post ‘Backend Hosting Errors’ 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