• Resolved PatrickV82

    (@patrickv82)


    I get the following warnings when the plugin is enabled:
    This is present on all the pages, including the front-end.

    Warning: wp-ffpc init starting in /home/XXXXXX/public_html/wp-content/plugins/wp-ffpc/wp-common/plugin_utils.php on line 126

    Warning: wp-ffpc 127.0.0.1:11211 added, persistent mode: 0 in /home/XXXXXX/public_html/wp-content/plugins/wp-ffpc/wp-common/plugin_utils.php on line 126

    Warning: wp-ffpc checking server statuses in /home/XXXXXX/public_html/wp-content/plugins/wp-ffpc/wp-common/plugin_utils.php on line 126

    Warning: wp-ffpc 127.0.0.1:11211 server is up & running in /home/XXXXXX/public_html/wp-content/plugins/wp-ffpc/wp-common/plugin_utils.php on line 126

    how can I solve this?

    https://ww.wp.xz.cn/plugins/wp-ffpc/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author petermolnar

    (@cadeyrn)

    hi,

    those should only show up when WP_DEBUG is enabled.

    Thread Starter PatrickV82

    (@patrickv82)

    are you sure?

    WP_DEBUG is not enabled, as far as i can tell.
    this is part of my config file:
    define(‘WP_DEBUG’, false);

    I edited the wp-ffpc/wp-common/plugin_utils.php file to add a extra if statement and the warnings do not show up anymore.

    switch ( $log_level ) {
                                    case LOG_ERR:
                                            trigger_error ( $identifier . " " . $message, E_USER_ERROR );
                                            break;
                                    case LOG_WARNING:
    /* Added this if */
                                             if ( defined( 'WP_DEBUG' ) && WP_DEBUG === true  )
                                             trigger_error ( $identifier . " " . $message, E_USER_WARNING );
                                            break;
                                    default:
                                            /* info level will only be fired if WP_DEBUG is active */
                                            if ( defined( 'WP_DEBUG' ) && WP_DEBUG == true  )
                                                    trigger_error ( $identifier . " " . $message, E_USER_NOTICE );
                                            break;
                            }

    from

    switch ( $log_level ) {
                                    case LOG_ERR:
                                            trigger_error ( $identifier . " " . $message, E_USER_ERROR );
                                            break;
                                    case LOG_WARNING:
                                             trigger_error ( $identifier . " " . $message, E_USER_WARNING );
                                            break;
                                    default:
                                            /* info level will only be fired if WP_DEBUG is active */
                                            if ( defined( 'WP_DEBUG' ) && WP_DEBUG == true  )
                                                    trigger_error ( $identifier . " " . $message, E_USER_NOTICE );
                                            break;
                            }
    Plugin Author petermolnar

    (@cadeyrn)

    ah, you were right.
    The log in the utils was set to notice by default, but not the log wrapper in the wp-ffpc-backend file.

    I’ll release a bugfix later on for this.

    Plugin Author petermolnar

    (@cadeyrn)

    fixed in 1.6.2

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘warnings when using with WP4.0’ is closed to new replies.