• Resolved jpr105

    (@jpr105)


    Sorry to reopen this thread but I can’t solve this issue (WP 5.8) …
    It’s really a pity because it’s one of the rare plugins to offer to publish SQL query results directly in a post!
    Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Eli

    (@scheeeli)

    Thanks for the reminder about this. I am working on a fix for this and I will try and get a update released real soon…

    There are two obvious solutions:
    The first just hides the error message,
    The second fixes it, but may not stick after an update.
    Roy

    1) In the wp_config.php file change “wp_debug = ture” to “wp_debug=false”
    2) try changing the line on 881 from:
    add_action(‘widgets_init’, create_function(”, ‘return register_widget(“ELISQLREPORTS_Widget_Class”);’));

    to:
    add_action(‘widgets_init’, function() {return register_widget(“ELISQLREPORTS_Widget_Class”); } );

    Thread Starter jpr105

    (@jpr105)

    When I edit ‘elisqlreports/index.php’ I get this message:
    “Something has gone wrong. Your change may not have been saved. Please try again. It is also possible that you need to correct manually and upload the file via FTP.”
    If I use cPanel, I can edit it but:

    1 – I get this error after activating it: ”
    Warning: Use of undefined constant ‘widgets_init’ – assumed ”widgets_init” (this will throw an Error in a future version of PHP) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3. wptiger.co.uk/wp-content/plugins/elisqlreports/index.php on line 883 ” (you have to do +2 on the line number because I put line 881 as a comment and I added a blank line)

    2 – I can’t load my publications with Elementor

    3 – I get these errors when I log out:

    Warning: Use of undefined constant ‘widgets_init’ - assumed '‘widgets_init’' (this will throw an Error in a future version of PHP) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php on line 883
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-login.php on line 400
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-login.php on line 416
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/functions.php on line 6362
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1020
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1021
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1022
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1023
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1024
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1025
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1028
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1029
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1032
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1033
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1034
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1035
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1038
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1039
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1040
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1041
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1044
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1329
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/pluggable.php on line 1332

    4 – I get these messages when I log in again:

    Warning: Use of undefined constant ‘widgets_init’ - assumed '‘widgets_init’' (this will throw an Error in a future version of PHP) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php on line 883
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-login.php on line 400
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-login.php on line 416
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-content/plugins/elisqlreports/index.php:883) in /home/pnzw2003/myTiger-Preprod/e021-702d742396d3.wptiger.fr/wp-includes/functions.php on line 6362

    5 – impossible to log in

    6 – I have tu uninstall your plugin

    Hope that can help you

    Best regards – Jean-Paul

    • This reply was modified 3 years, 3 months ago by jpr105.
    • This reply was modified 3 years, 3 months ago by jpr105.
    Plugin Author Eli

    (@scheeeli)

    You just need to replace the fancy quote marks in rweil55’s example code with actual quote marks. This silly forum automatically changes the real quotation marks that people use with special fancy quotes that will break your code.

    Plugin Author Eli

    (@scheeeli)

    I just released an update that fixes this issue. Please download the latest version 5.21.35 and you will not get that error any more.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘create_function() is deprecated in /elisqlreports/index.php on line 881’ is closed to new replies.