Support » Plugin: Media Library Assistant » An ajax.fail error has occurred. What can I do?

  • Resolved djavet

    (@djavet)


    Hi!

    I sue the pluging with the latest version 2.73 with WP 4.9.5

    When I try to bulk edit my images, I receive this error message:
    An ajax.fail error has occurred. Please reload the page and try again. (error), jqXHR( 500, Internal Server Error, )

    What is wrong?
    Thanks for your help.

    Dom

    In the debug tab, I’ve:
    Debug Settings
    Display Limit 131072
    Debug File
    Replace PHP log
    PHP Reporting 0x7FFF
    MLA Reporting 3
    MLA_DEBUG_LEVEL 0x0001
    PHP error_reporting 0x1377
    Old PHP error_log error_log
    New PHP error_log error_log
    WP_DEBUG false
    WP_DEBUG_LOG false
    WP_DEBUG_DISPLAY true
    WP_CONTENT_DIR /****/public_html/les-tours/wp-content

    And in the log text area:
    [15-May-2018 19:27:26 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘interval’ => ’60’,
    ‘_nonce’ => ‘ad181ff002’,
    ‘action’ => ‘heartbeat’,
    ‘screen_id’ => ‘media_page_mla-menu’,
    ‘has_focus’ => ‘false’,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:27:29 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘action’ => ‘blc_work’,
    ‘_ajax_nonce’ => ’81c8789319′,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:27:29 UTC] 60 MLA_Ajax::mla_admin_init_action( true ) $_REQUEST = array (
    ‘action’ => ‘blc_work’,
    ‘_ajax_nonce’ => ’81c8789319′,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:27:35 UTC] 600 MLACore::mla_plugins_loaded_action() MLA 2.73 () mla_debug_level 0x3
    [15-May-2018 19:27:40 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘action’ => ‘blc_work’,
    ‘_ajax_nonce’ => ’81c8789319′,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:27:41 UTC] 60 MLA_Ajax::mla_admin_init_action( true ) $_REQUEST = array (
    ‘action’ => ‘blc_work’,
    ‘_ajax_nonce’ => ’81c8789319′,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:28:23 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘action’ => ‘blc_work’,
    ‘_ajax_nonce’ => ’81c8789319′,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:28:24 UTC] 60 MLA_Ajax::mla_admin_init_action( true ) $_REQUEST = array (
    ‘action’ => ‘blc_work’,
    ‘_ajax_nonce’ => ’81c8789319′,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:28:26 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘interval’ => ’60’,
    ‘_nonce’ => ‘ad181ff002’,
    ‘action’ => ‘heartbeat’,
    ‘screen_id’ => ‘media_page_mla-menu’,
    ‘has_focus’ => ‘false’,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:28:40 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘interval’ => ’60’,
    ‘_nonce’ => ‘ad181ff002’,
    ‘action’ => ‘heartbeat’,
    ‘screen_id’ => ‘plugins’,
    ‘has_focus’ => ‘false’,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:30:23 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘interval’ => ’60’,
    ‘_nonce’ => ‘ad181ff002’,
    ‘action’ => ‘heartbeat’,
    ‘screen_id’ => ‘media_page_mla-menu’,
    ‘has_focus’ => ‘false’,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:30:41 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘interval’ => ’60’,
    ‘_nonce’ => ‘ad181ff002’,
    ‘action’ => ‘heartbeat’,
    ‘screen_id’ => ‘plugins’,
    ‘has_focus’ => ‘false’,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:32:22 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘interval’ => ’60’,
    ‘_nonce’ => ‘ad181ff002’,
    ‘action’ => ‘heartbeat’,
    ‘screen_id’ => ‘media_page_mla-menu’,
    ‘has_focus’ => ‘false’,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:32:41 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘action’ => ‘blc_work’,
    ‘_ajax_nonce’ => ’81c8789319′,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:32:42 UTC] 60 MLA_Ajax::mla_admin_init_action( true ) $_REQUEST = array (
    ‘action’ => ‘blc_work’,
    ‘_ajax_nonce’ => ’81c8789319′,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:32:43 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘interval’ => ’60’,
    ‘_nonce’ => ‘ad181ff002’,
    ‘action’ => ‘heartbeat’,
    ‘screen_id’ => ‘plugins’,
    ‘has_focus’ => ‘false’,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:33:22 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘action’ => ‘blc_work’,
    ‘_ajax_nonce’ => ’81c8789319′,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:33:22 UTC] 60 MLA_Ajax::mla_admin_init_action( true ) $_REQUEST = array (
    ‘action’ => ‘blc_work’,
    ‘_ajax_nonce’ => ’81c8789319′,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:34:23 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘interval’ => ’60’,
    ‘_nonce’ => ‘ad181ff002’,
    ‘action’ => ‘heartbeat’,
    ‘screen_id’ => ‘media_page_mla-menu’,
    ‘has_focus’ => ‘false’,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:34:45 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘interval’ => ’60’,
    ‘_nonce’ => ‘ad181ff002’,
    ‘action’ => ‘heartbeat’,
    ‘screen_id’ => ‘plugins’,
    ‘has_focus’ => ‘false’,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:35:19 UTC] 600 MLACore::mla_plugins_loaded_action() MLA 2.73 () mla_debug_level 0x3
    [15-May-2018 19:35:22 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘action’ => ‘blc_work’,
    ‘_ajax_nonce’ => ’81c8789319′,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:35:22 UTC] 60 MLA_Ajax::mla_admin_init_action( true ) $_REQUEST = array (
    ‘action’ => ‘blc_work’,
    ‘_ajax_nonce’ => ’81c8789319′,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:35:26 UTC] 36 MLA_Ajax::initialize( true ) $_REQUEST = array (
    ‘interval’ => ’60’,
    ‘_nonce’ => ‘ad181ff002’,
    ‘action’ => ‘heartbeat’,
    ‘screen_id’ => ‘media_page_mla-menu’,
    ‘has_focus’ => ‘false’,
    ’em_ajax’ => true,
    )
    [15-May-2018 19:35:27 UTC] 600 MLACore::mla_plugins_loaded_action() MLA 2.73 () mla_debug_level 0x3

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your report, and for including the details of your Debug configuration and the log file content. I regret the trouble you are having with the Bulk Edit action.

    I do not see any logging related to an MLA Bulk Edit action in the log file content you posted. The log entries I expect to see would start with something like this:

    [16-May-2018 18:47:37 UTC] 600 MLACore::mla_plugins_loaded_action() MLA 2.73 (20180516) mla_debug_level 0x3
    
    [16-May-2018 18:47:37 UTC] 36 MLA_Ajax::initialize( false ) $_REQUEST = array (
      'action' => 'mla-inline-edit-scripts',
      'mla_admin_nonce' => '006e513efd',
      'bulk_action' => 'bulk_edit',
      'cb_offset' => '0',
      'cb_count' => '2',
      'cb_attachment' => 
      array (
        0 => '5715',
        1 => '5714',
      ),
    

    In particular, the action and bulk_action values indicate the start of a Bulk Edit action.

    The ‘action’ => ‘blc_work’, entries indicate that some other theme or plugin logic is running and doing AJAX work. It is possible that this interferes with the MLA logic. Have you tried disabling other plugins that might be involved?

    More information would be helpful:

    1. Does the MLA “Quick Edit” function work for you?
    2. Are you able to open the Bulk Edit Window and enter some updates?
    3. Does the error occur when you click “Update”?
    4. Does the “Bulk Edit Waiting/In-process/Complete” area appear?
    5. Does the “Refresh” button work?

    Any additional details you can provide will be helpful. The best way to proceed would be by email. If you send me your contact information I will reply with more details and an address where you can send test results. You can use the Contact Us page at our web site:

    Fair Trade Judaica/Contact Us

    I look forward to hearing from you and investigating further. Thanks for your patience and your interest in the plugin.

    Hi!

    Thank you for your feedback, I think I found the guilty:
    https://fr.wordpress.org/plugins/wordpress-seo/

    I use this SEO plugin and if I deactivate it, I can bulk edit and everything work as a charm, if a activate it, I’ve the ajax error.

    Could you reproduce it? I use version 7.5.1 of the Yoast SEO plugin with your Media Library Assistant 2.73 with WP in french 4.9.5

    Let me know, then we can exchange per email and post the results/findings for the community if needed.

    Dom

    Plugin Author David Lingren

    (@dglingren)

    Thank you for your update and for your great detective work!

    I am traveling for a few more days and away from my development system. I have worked with Yoast SEO in the past and I will do everything I can to resolve this issue when I return home. I will post an update here when I have progress to report.

    Thanks again for helping to identify the cause of the issue so I can investigate further.

    Thank you for your reply. Let me know if and how I can help you.

    Cheers, dom

    Plugin Author David Lingren

    (@dglingren)

    I have just updated my Yoast SEO install to version 7.5.1 and run a quick test. The MLA Bulk Edit action is working fine on my system, without the ajax error you are experiencing. I will need more information from you to investigate further. I suggest you use the Contact Us link to give me your contact information so we can work offline to make progress on this issue. Thanks for your patience; I look forward to hearing from you.

    Hi!

    Thank you. I’ve contacted you via the contact form.

    Regards,
    Dom

    It’s a memory problem. Increased the memory solved the issue.
    Thank you for your support!

    Regards, Dom

    Plugin Author David Lingren

    (@dglingren)

    Thank you for working with me offline to exchange log information and possible fixes.

    I ran a few tests on my own system. Activating Yoast SEO adds about 2,100Kb (two megabytes) to the ajax handling of a Bulk Edit request. Yoast adds about 3,670Kb (3.6 megabytes) to the Media/Assistant admin submenu display. It doesn’t seem to be sensitive to the number of items edited or displayed.

    That explains why things worked after you disabled Yoast SEO – disabling any plugin would have reduced memory and “solved” the problem. The real fix is to increase the amount of memory available to WordPress, as outlined in this earlier topic:

    MLA stopped working after installing Themeco X theme

    I am marking this topic resolved, but please update it or start another if there’s anything else I can do to help you get the most out of MLA.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘An ajax.fail error has occurred. What can I do?’ is closed to new replies.