• Resolved nattpyre

    (@nattpyre)


    I’m using the free Virtue, which so far has been a breeze to work with. I’m working locally so can’t provide you with a link to the project. The problem isn’t with the site itself though, I’m just starting to feel silly for not figuring this out..
    At the top of every admin page (Dashboard and so on) I get a notification:

    Redux Framework Notice: There are references to the Redux Framework support site in your config’s share_icons argument. This is sample data. Please change or remove this data before shipping your product.

    I simply cannot find the config or location where I’m supposed to remove this reference. I’m going to use Virtue with woocommerce.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Hey,
    Do you have the redux framework plugin installed?

    What other plugins do you have installed?

    Kadence Themes

    Thread Starter nattpyre

    (@nattpyre)

    Hello! I do not have the redux framework plugin installed.
    I have the following plugins:

    • Akismet
    • Contact Form 7
    • Virtue / Pinnacle ToolKit
    • WooCommerce
    • WordPress Importer

    Of those, only Virtue / Pinnacle Toolkit and WooCommerce are activated. I tried deactivating them as well, but it doesn’t seem to change anything.

    That is really odd. I can’t see how this would be. I can’t recreate it. Your using the latest version of the theme right?
    Is this a notice that you can’t dismiss?

    Can you send a screen shot? https://tinygrab.com/

    Kadence Themes

    Thread Starter nattpyre

    (@nattpyre)

    Odd indeed, I’ve been googling like crazy.. I’ve not seen it before and it showed up when I installed the Virtue theme. I have version 2.5.8 of the theme. I can dismiss the notice. I’m just not sure if there actually is something, somewhere, that really shouldn’t be there ??
    It’s a fairly new installation of WordPress as well – haven’t had a lot of other weird stuff (plugins/themes) installed on it.

    I’m using a child theme, I tried switching to the actual Virtue theme but the notification was still there.

    Screenshot: https://grab.by/LN3w

    What all is in your child theme?
    Kadence Themes

    Thread Starter nattpyre

    (@nattpyre)

    It consists of:

    functions.php
    style.css
    /lib/custom-woocommerce.php
    /templates/header.php

    the last two because I wanted to change the text for the cart, only change made in those.

    functions.php only has this:

    <?php
    function theme_enqueue_styles() {
    
        $parent_style = 'parent-style';
    
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array( $parent_style )
        );
    }
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    
    ?>

    The notification shows when using the parent theme as well.
    I downloaded the theme via WordPress, figured I’d try the one you’ve got on your site instead (version 2.5.2). The notification doesn’t show up in that one. I then proceeded to update to 2.5.8 again – which failed (couldn’t remove old theme). So I downloaded 2.5.8 from www.ads-software.com and .. well it’s back to showing the notification.

    What type of local server are you on?

    For now I suggest ignoring the message it’s not going to be creating any issues. But I’ll update to force it away if I can find a way to recreate. knowing what type of server might be the issue.

    Kadence Themes

    Thread Starter nattpyre

    (@nattpyre)

    It’s xampp (apache) on windows.

    I will simply ignore it then and see what happens with future updates – thank you so much for your time looking into this!

    Thread Starter nattpyre

    (@nattpyre)

    I’ve tried on another server running the same plugins without any problems, and you can’t recreate it so I’m pretty sure its something wonky with the local server/wordpress here.
    Going to mark this as resolved. ??

    I’m using same configuration, local xampp, woocommerce and virtue theme; latest versions.
    I’ve tried editing this file:

    ..\wp-content\themes\virtue\themeoptions\options.php

    and removed all this (line 83):

    // SOCIAL ICONS -> Setup custom links in the footer for quick links in your panel footer icons.
            $args['share_icons'][] = array(
                'url' => 'https://www.facebook.com/KadenceThemes',
                'title' => 'Follow Kadence Themes on Facebook',
                'icon' => 'icon-facebook',
            );
            $args['share_icons'][] = array(
                'url' => 'https://www.twitter.com/KadenceThemes',
                'title' => 'Follow Kadence Themes on Twitter',
                'icon' => 'icon-twitter',
            );
            $args['share_icons'][] = array(
                'url' => 'https://www.instagram.com/KadenceThemes',
                'title' => 'Follow Kadence Themes on Instagram',
                'icon' => 'icon-instagram',
            );
            $args = apply_filters('kadence_theme_options_args', $args);

    So far, so good and the annoying messages is gone.

    The problem is due to a bug in redux/framework.php (included in the Pinnacle theme). In two places, the strpos function is being used incorrectly by checking its return value against ‘>= 0‘ rather than ‘!== false‘ (note: there must be the extra equals, i.e. not ‘!=’). It’s an easy mistake to make. The condition will always be true if the check is made. Thus, the result is that if there is anything in the admin_bar_links or share_icons options a warning message will be printed. That’s why removing the share_icons data as previously suggested resulted in the message disappearing.

    The offending lines for the version I have (downloaded with Pinnacle 2016-05-21) are:

    3879: if (strpos(strtolower($y), 'redux') >= 0) {
    ...
    3894: if (strpos(strtolower($y), 'redux') >= 0) {

    I suggest that the $y value be included in the error message as it might make it easier for people to discover the cause should this happen in earnest. That would not only help people to understand and rectify the problem, but would clearly have demonstrated the existence of the bug. For example, in my case:

    Redux Framework Notice: There are references to the Redux Framework support site in your config’s share_icons argument: for key [url] found “redux” in [https://www.facebook.com/KadenceThemes]…

    P.S. Another (possibly harmless) incorrect usage of strpos (should be !== rather than !=):
    redux/inc/class.redux_admin_notices.php
    55: if ( strpos( $notice['type'], 'redux-message' ) <strong>!= false</strong> ) {

    FYI: There is also a problem in Pinnacle whereby it performs the get_header action twice. This is because it calls do_action(‘get_header’) in header.php, but that action has already been invoked before loading header.php.

    Updates coming, redux has some new update as well.

    Kadence Themes

    am facing the “config’s admin_bar_links” and “config’s share_icons argument”.what do i do? am new.

    I just downloaded the premium version of Virtue and I am getting the same thing about this;
    Redux Framework Notice: There are references to the Redux Framework support site in your config’s share_icons argument. This is sample data. Please change or remove this data before shipping your product.

    While I am signed in I noticed that there is Kadence people here. So I thought I would also add this. I just installed this and deactivated a genisis focus pro theme. I installed a couple of the recommended plugins and was ready to go. I have a screen that says welcome to wordpress and a big button that says customize your site. If I click that explorer opens and then crashes each time. I am running this on my own computer using instantwp. So another day another thing that doesn’t work. Any ideas and will this eventually work?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Redux Framework Notice, don't know how to get rid of it’ is closed to new replies.