Latest update on the plugin just chrassed my site.
Warning: include_once(/var/www/virtual/jack-daniels.is/skandall.is/htdocs/wp-content/plugins/jm-breaking-news/admin/breaking-news-rest-api.php): failed to open stream: No such file or directory in /var/www/virtual/jack-daniels.is/skandall.is/htdocs/wp-content/plugins/jm-breaking-news/jm-breaking-news.php on line 36
Warning: include_once(): Failed opening ‘/var/www/virtual/jack-daniels.is/skandall.is/htdocs/wp-content/plugins/jm-breaking-news/admin/breaking-news-rest-api.php’ for inclusion (include_path=’.:/usr/share/php’) in /var/www/virtual/jack-daniels.is/skandall.is/htdocs/wp-content/plugins/jm-breaking-news/jm-breaking-news.php on line 36
Fatal error: Uncaught Error: Call to undefined function is_plugin_active() in /var/www/virtual/jack-daniels.is/skandall.is/htdocs/wp-content/plugins/jm-breaking-news/jm-breaking-news.php:272 Stack trace: #0 /var/www/virtual/jack-daniels.is/skandall.is/htdocs/wp-settings.php(360): include_once() #1 /var/www/virtual/jack-daniels.is/skandall.is/htdocs/wp-config.php(77): require_once(‘/var/www/virtua…’) #2 /var/www/virtual/jack-daniels.is/skandall.is/htdocs/wp-load.php(37): require_once(‘/var/www/virtua…’) #3 /var/www/virtual/jack-daniels.is/skandall.is/htdocs/wp-blog-header.php(13): require_once(‘/var/www/virtua…’) #4 /var/www/virtual/jack-daniels.is/skandall.is/htdocs/index.php(17): require(‘/var/www/virtua…’) #5 {main} thrown in /var/www/virtual/jack-daniels.is/skandall.is/htdocs/wp-content/plugins/jm-breaking-news/jm-breaking-news.php on line 272
There has been a critical error on your website.
]]>Hello,
It doesn’t work!!, I didn’t find where is the short cut code?
Please advice.
Thank you
Mazen
I have the Breaking News Bar installed but I want it to run 24/7 until I manually remove..
How is this done?
]]>I have installed this plugin.. Im using an external RSS feed to my site and showing the feeds on my page. However, I want to show the latest feed as a “Breaking News” type highlighted (as a banner) on top of my page? Is this plugin helpful.. can this do it?
In short, can i feed the RSS feed URL (XML) to this plugin, so that the latest feed is shown as hero banner?
Thanks!
]]>Hello, I would like to know if this plugin is constantly looking for a new message and uses all the time server resources all the time. Thank you
]]>Love your plugin, it looks awesome! I tried to use it but it causes CPU spikes and a large memory leak when enabled. My memory usage went from 9MB up to 25MB according to the memory monitor. Turn if off and it goes back to normal. There is some issue somewhere causing a stress on a high traffic server. Perhaps it doesn’t play nice with W3 Total Cache or some other issue. I can provide more information, just tell me what you need.
]]>Hello , I like this theme but I have problems with the translation to spanish. Anyone know how can I to translate breaking news? Thanks
]]>Previously suggested that a shortcode be provided to list all breaking news records. See https://www.ma4jr.org/broken-news/
This just copies code from your plugin, but I’m sure there is a more portable way to implement this.
[insert_php]
$html = '';
$jm_breaking_news_args = array(
'post_type' => 'jm_breaking_news',
'posts_per_page' => -1,
);
$current_time = strtotime(current_time('mysql'));
echo date('l dS \o\f F Y h:i:s A', $current_time);
$jm_breaking_news = new WP_Query($jm_breaking_news_args);
if ($jm_breaking_news->have_posts()) : while ($jm_breaking_news->have_posts()) : $jm_breaking_news->the_post();
$post_time = strtotime(get_the_date('r'));
echo date('l dS \o\f F Y h:i:s A', $post_time);
if (get_post_meta(get_the_ID(), 'jm_breaking_news_target', true) == 1) {
$target = 'target="_blank"';
} else {
$target = '';
}
if (get_post_meta(get_the_ID(), 'jm_breaking_news_in_ex', true) == 1) {
$link = get_post_meta(get_the_ID(), 'jm_breaking_news_internal_link', true);
} else {
$link = get_post_meta(get_the_ID(), 'jm_breaking_news_link', true);
}
if (get_post_meta(get_the_ID(), 'jm_breaking_news_color', true)) {
$style = 'style="background-color:' . get_post_meta(get_the_ID(), 'jm_breaking_news_color', true) . ';"';
} else {
$style = '';
}
$html = '<section class="breaking-news-box">';
$html .= '<div class="breaking-news-left" ' . $style . '>';
$html .= '<h2 class="breaking-news-left-h2">' . __('Breaking News', 'jm-breaking-news') . '</h2>';
$html .= '</div>';
$html .= '<div class="breaking-news-right">';
$html .= '<h2 class="breaking-news-right-h2"><a href="' . $link . '" ' . $target .'>' . get_the_title() . '</a></h2>';
$html .= '</div>';
$html .= '</section>';
echo $html;
endwhile; endif;
wp_reset_query();
[/insert_php]
]]>
Installed and working fine.
But what are the units for the “Time Limit to Show Breaking News” Is it days?
i am trying to edit the plugin using an if else statement to adjust how the link is displayed so that if no link is entered in the box in the settings, there will not be a blank link show on the ticker, instead just show the text.
i cant seem to get it to work correctly. any hints on what the code should look like?
]]>Can i edit width and height of this plugin. reply asap.
]]>Hey Jacob,
I’m trying to activate your plugin on one of my websites, but the activation fails with a fatal error.
Activating the WP debug log shows the below:
Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /var/www/www.abcde.com/wp-includes/functions.php on line 3622
This error gets repeated multiple times.
Deactivating most of the plugins did not give any better results.
Any thoughts on what might be causing this?
Thanks!
Matt
Hello,
i install and activate correct jm breaking news… a week later i deactivated for just one day and then next day when i try to activate it says: “The additive is not activated due to critical error .”
I deactivate all plugins but still nothing, i change theme same thing.
I re-install but nothing.. i try to optimize and fix mysql but still nothing.. what happend ? Am i doing something wrong?
]]>Is there any way to incorporate a rss feed with this plugin?
]]>Your update just broke our site. We had to uninstall it and the site was back on. I hope you will fix your update. Too bad, it was a good plug in.. I hope you will fix it.
]]>