• Resolved llavillaccama

    (@llavillaccama)


    Hello, Team

    The plugin has worked correctly until 01/01/2021, just starting the year the plugin generates error 502 in the /wp-admin page.

    We are not sure if it is something related to the turn of the year, please can you give me a hint of what may be happening.

    The error log does not show anything, I have a multisite installation of the version of php 7.4 and the latest version of WP.

    Regards

    • This topic was modified 3 years, 3 months ago by llavillaccama.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter llavillaccama

    (@llavillaccama)

    It has been possible to identify that the problem is caused by:

            wp_add_dashboard_widget(
                'mec_widget_news_features',
                __('Modern Events Calendar', 'modern-events-calendar-lite'),
                array($this, 'widget_news')
            );

    When commenting the code the error disappears but in the plugin home page ‘/wp-admin/admin.php?page=mec-intro’ it stays loading and shows error 502.

    It seems that the problem lies in some line of code in the ‘dashboard’

    Regards

    Plugin Contributor webnus

    (@webnus)

    Hi @llavillaccama,

    Thank you for your report,

    This is forwarded to the developer team and it will be checked and fixed for the next updates.

    We will let you know when this topic is resolved.

    Best Regards

    Thread Starter llavillaccama

    (@llavillaccama)

    Hi @webnus
    We have done a deep investigation and have come up with the following line of code:

    ` echo $render->skin(‘list’, array
    (
    ‘sk-options’=>array(‘list’=>array
    (
    ‘style’=>’minimal’,
    ‘start_date_type’=>’today’,
    ‘load_more_button’=>’0’,
    ‘limit’=>’1’,
    ‘month_divider’=>’0′
    ))
    ));’
    For some reason this line generates error 502, I have modified the limit to 1 but the problem persists.
    Note: We have the multisite in wpengine.

    Regards

    Thread Starter llavillaccama

    (@llavillaccama)

    Ho @webnus

    The 502 error has been determined to be generated when the event has a shorcode in its content.

    modern-events-calendar-lite\app\libraries\main.php line 334

            $content = apply_filters('the_content', $post->post_content);
            return str_replace(']]>', ']]>', do_shortcode($content));

    Example : https://ibb.co/L57GyNf

    Please let me know if this helps so they can resolve the issue.

    Regards

    Plugin Contributor webnus

    (@webnus)

    Hi @llavillaccama,

    MEC developer team did a complete analysis of this issue but they didn’t find the problem you are talking about in this topic. Can you please provide more details on how we can encounter that issue?

    Let us know what steps you take that leads to that and make screenshots or a short video for us.

    Also can you please provide some info on the plugins and the theme you have?

    There is nothing to be worried about, we will fix the issues, I also appreciate you for reporting the issues.

    Please provide us with more details, screenshots, or any documentation so we can find the issue.

    Best Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘502 error generated plugin in /wp-admin’ is closed to new replies.