Thanks for the issue report. Its fixed now, please update to 2.1 and let me know if this fix worked for you.
Alternatively, change line 19 of index.php (within plugin’s folder) to:
wp_enqueue_style( ‘readmorestyle’, plugins_url( ‘/style.css’, __FILE__) );
and save your changes. It should work just fine.
I’m sorry to report that this did not seem to correct the problem in my case–same error code is being thrown. I updated the plugin, and checked out line 19 in the plugin’s index.php file, and your (modified) code was there. Again, if I deactivate the plugin, the error code disappears.
As I’ve researched this, I discovered that the generation and display of PHP debugging error messages is typically benign (informational, only), and does not affect the program operation, proper. Because I really like the plugin, I decided to disable the display of PHP error messages, by adding the following code to my wp-config.php file:
/*enable the debugging log, but DISABLE writing error codes to the HTML (do not display them)*/
define(‘WP_DEBUG_LOG’, true);
define( ‘WP_DEBUG_DISPLAY’, false );
Now, I’m back to using the plugin and not dealing with having the error codes appear at the top of my screen. Bottom line: in my case, the plugin is still a bit “broken”, but it’s essentially a non-issue as long as I remember to place that little code snippet in the wp-config.php file.
Thanks again for a great plugin.
Richard Raymond
I understand. Actually, there are no issues from our end, even on our demo. No warnings at all and also, this is not reported by other users.
Not really sure why you need debug on, on a live website, but this is all about your business.
Hi gkouvousisg,
I also had the same issue as the OP. I took a quick look at your code and was able to identify the following problem:
This line is being called incorrectly:
wp_enqueue_style( 'readmorestyle', plugins_url( '/style.css', __FILE__) );
I have removed that line and updated the bottom of your index.php to this:
function load_style() {
wp_enqueue_style( 'readmorestyle', plugins_url( '/style.css', __FILE__) );
}
/* header actions */
add_action('wp_head', 'read_javascript');
add_action('init', 'read_register_shortcodes');
add_action('wp_enqueue_scripts', 'load_style');
This will resolve the issue.
-
This reply was modified 8 years, 9 months ago by
Diamons.
-
This reply was modified 8 years, 9 months ago by
Diamons.
Thats true. Since I prefer having users not involved in coding stuff, i’ve escalated this for a quick update, instead of guiding them here. But anyway, thanks for spending time on this. Next update wont affect your backend with such a notification.