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
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
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