Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Bob

    (@rfgoetz)

    What version of PHP are you using?

    Bob

    Plugin Author Bob

    (@rfgoetz)

    I cannot replicate when I turn debug on.

    in wp-topbar.php, try changing this:

    wptb::init();

    to this:

    $wptb = new wptb();
    $wptb->init();

    I absolutely need you to validate this removes the error message, since I cannot fully test it.

    If it works for you, I will push the change in the next release.

    Bob

    Thread Starter BackuPs

    (@backups)

    Hi Bob

    that works.

    It left me only with six warnings from your plugin…. which i forgot to mention in my first reply. I was working through all my warnings and admin backend messages and overlooked this one last time. I am so sorry about that.

    I had to many plugins running so i need to strip all messages one by one. The lasts ones where yours which all have been fixed now.

    see below my next message and solution to those warnings.

    Thanks !

    Thread Starter BackuPs

    (@backups)

    found total six warnings which need to be fixed.

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method wptb::wptb_enqueue_admin_scripts() should not be called statically in /home/myserver.com/public_html/wp-includes/plugin.php on line 429
    
    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method wptb::wptb_debug_check() should not be called statically in /home/myserver.com/public_html/wp-includes/plugin.php on line 429
    
    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method wptb::wptb_options_panel() should not be called statically in /home/myserver.com/public_html/wp-includes/plugin.php on line 429
    
    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method wptb::wptb_plugin_action_links() should not be called statically in /home/myserver.com/public_html/wp-includes/plugin.php on line 199
    
    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method wptb::wptb_plugin_donate_link() should not be called statically in /home/myserver.com/public_html/wp-includes/plugin.php on line 199
    
    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method wptb::wptb_enqueue_jquery() should not be called statically in /home/myserver.com/public_html/wp-includes/plugin.php on line 429
    
    on the front end i found these
    
    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method wptb::wptb_activate_TopBar_html_js() should not be called statically in /home/myserver.com/public_html/wp-includes/plugin.php on line 429
    
    Strict Standards: Non-static method wptb::wptb_build_cacheable_html_js() should not be called statically in /home/myserver.com/public_html/wp-content/plugins/wp-topbar/wp-topbar.php on line 226
    
    Strict Standards: Non-static method wptb::wptb_inject_TopBar_html_js() should not be called statically in /home/myserver.com/public_html/wp-content/plugins/wp-topbar/wp-topbar.php on line 696
    
    Strict Standards: Non-static method wptb::wptb_check_options_to_show_row() should not be called statically in /home/myserver.com/public_html/wp-content/plugins/wp-topbar/wp-topbar.php on line 236
    
    Strict Standards: Non-static method wptb::wptb_destory_cookie_js() should not be called statically in /home/myserver.com/public_html/wp-content/plugins/wp-topbar/wp-topbar.php on line 701
    
    Strict Standards: Non-static method wptb::wptb_build_original_topbar_js() should not be called statically in /home/myserver.com/public_html/wp-content/plugins/wp-topbar/wp-topbar.php on line 716
    
    Strict Standards: Non-static method wptb::wptb_random_selection_js() should not be called statically in /home/myserver.com/public_html/wp-content/plugins/wp-topbar/wp-topbar.php on line 732

    all can be fixed the same way by adding public static to the function

    public static function wptb_debug_check() {	
    
    public static function wptb_enqueue_admin_scripts() {
    
    public static function wptb_options_panel() {
    
    public static function wptb_plugin_action_links () {
    
    public static function wptb_plugin_donate_link($links, $file) {
    
    public static function wptb_enqueue_jquery() {
    
    public static function wptb_activate_TopBar_html_js() {
    
    public static function wptb_build_cacheable_html_js() {
    
    public static function wptb_inject_TopBar_html_js($wptbOptions, $wptbTopBarNumber) {

    That got rid of all backend messages.

    have a nice weekend !!

    Thanks for the great plugin.

    Thread Starter BackuPs

    (@backups)

    Here is the complete list. I found 7 more in the front end but could not edit my message anymore. Out of time.

    public static function wptb_debug_check() {	
    
    public static function wptb_enqueue_admin_scripts() {
    
    public static function wptb_options_panel() {
    
    public static function wptb_plugin_action_links () {
    
    public static function wptb_plugin_donate_link($links, $file) {
    
    public static function wptb_enqueue_jquery() {
    
    public static function wptb_activate_TopBar_html_js() {
    
    public static function wptb_build_cacheable_html_js() {
    
    public static function wptb_inject_TopBar_html_js($wptbOptions, $wptbTopBarNumber) {
    
    public static function wptb_check_options_to_show_row($wptbOptions) {
    
    public static function wptb_destory_cookie_js($bar_id) {
    
    public static function wptb_build_original_topbar_js($wptbOptions, $wptbTopBarNumber) {
    
    public static function wptb_random_selection_js ($wptbNumberSelected,$wptbTotalWeightingPoints) {

    have a nice weekend.

    Plugin Author Bob

    (@rfgoetz)

    Thanks for your help, really appreciate it.

    I’ll push it out on the next release.

    Bob

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘back and front end message with debug mode on’ is closed to new replies.