Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter powersnw

    (@powersnw)

    alexandrost you are my hero!!!!! Your script worked like a charm thank you, thank you, thank you!!!!

    Jules the gallery loads fine on any page outside of WP Bakery accordion or tabs, the script alex added fixes the problem and now loads fine. Thank you both for your feedback.

    Thread Starter powersnw

    (@powersnw)

    Here is the response after further investigation by my hosting company, any ideas?

    Hello,

    I’ve checked the POST request and poked around the code for the check boxes. I’m seeing the POST request sending that the check box is checked and the code (wp-store-locator/admin/class-settings.php) setting another variable with that information. How it passes that information to MySQL afterwards, I don’t know.

    I believe there is a problem somewhere else in the code as other things I update on the backend do update. I suggest reinstalling the plugin and see if that fixes the problem. Baring that, you may need to talk with the developers of the plugin to get a better idea what is causing the problem.

    Since I can’t find anything wrong with Apache, PHP, or WordPress itself, I’d like to let you know that wordpress pulgins are not covered under our Fully Managed Support. The plugin does fall under Best Effort Support, which means while we’ll can’t guarantee the installation, configuration, or maintenance of the software, we’ll do our best.

    Thread Starter powersnw

    (@powersnw)

    Here is the link to what secure server plus is:

    https://www.liquidweb.com/services/security/serversecure-linux.html

    Unfortunately they cant turn it off because its a whole server setting and they have to bring the server down and remove everything causing down time.

    I did have them turn the firewalls off and still got the same thing as before, no change.

    Thread Starter powersnw

    (@powersnw)

    I will ask them to turn it off and try again. Yes this is the first time since having this VPS that I have ever had issues with a plugins settings not saving. Its very weird to me too because I dont see any errors in the debug.log file other than what I posted and with the code you gave me to show whats being pushed to save its completely ignoring the check boxes. I will let you know the outcome of turning off the secure server plus as soon as I can. We also have a firewall, maybe that might be causing an issue as well… I cant think of anything else.

    Thread Starter powersnw

    (@powersnw)

    Here is the response from the hosting support:

    We will continue to look into this for you. I have searched the apache error logs, domain error logs and still can’t find the error you are seeing. Let us know if you have any further questions.

    They have a ticket open, but who knows if and when they find anything. They dont technically offer plugin support and the fact no errors are being thrown to me seems like this wont go anywhere with them.

    Thread Starter powersnw

    (@powersnw)

    It doesn’t look like its even registering the fact I checked the boxes. I moved the first snippet of code down, not sure why my line numbering is off so bad but here is what it says:

    Array
    (
        [distance_unit] => mi
        [max_results] => [25],50,75,100
        [radius] => 10,25,50,[100],200,500
    )
    Array
    (
        [api_key] =>
        [api_language] => en
        [api_region] => us
        [api_geocode_component] => 0
        [results_dropdown] => 0
        [radius_dropdown] => 0
        [category_dropdown] => 0
    )

    We do have secureserver plus installed on our server, I will reach out to support and post what they say on here.

    Thread Starter powersnw

    (@powersnw)

    This is what displayed when all three boxes were checked.

    Array
    (
        [api_key] =>
        [api_language] => en
        [api_region] => us
        [api_geocode_component] => 0
        [results_dropdown] => 0
        [radius_dropdown] => 0
        [category_dropdown] => 0
    )

    This is what displayed when all three boxes were unchecked.

    Array
    (
        [api_key] =>
        [api_language] => en
        [api_region] => us
        [api_geocode_component] => 0
        [results_dropdown] => 0
        [radius_dropdown] => 0
        [category_dropdown] => 0
    )

    I want to check about 5 boxes. I would like to get this fixed though instead of hard coding it so any updates dont cause issues in the future.

    Thread Starter powersnw

    (@powersnw)

    Ok I added the code however it doesnt seem to be showing anything upon saving? Where is the output going to be located? Also the second code when adding to line 110 is being placed in the following:

    /**
    
             * Register the settings.
    echo '<pre>';
    print_r( $output );
    echo '</pre>';
    
    exit();
             * 
    
             * @since 2.0.0
    
             * @return void
    
             */
    Thread Starter powersnw

    (@powersnw)

    The other settings save when I enter items into the fields. I am comfortable editing PHP files to an extent. I am no pro by any means but with guidance can accomplish it.

    Thread Starter powersnw

    (@powersnw)

    It never worked from the beginning after installing yesterday. I already tried disabling all plugins and also reverting to the Twenty Thirteen and Twenty Fifteen theme still with no luck.

    Here is the debug.log code.

    [11-Mar-2016 14:18:43 UTC] PHP Notice:  Undefined index: key in /locator/wp-content/plugins/wp-store-locator/admin/class-settings.php on line 101
    [11-Mar-2016 14:18:43 UTC] PHP Notice:  Undefined index: map_style in /locator/wp-content/plugins/wp-store-locator/admin/class-settings.php on line 167
    [11-Mar-2016 14:19:38 UTC] PHP Notice:  Undefined index: key in /locator/wp-content/plugins/wp-store-locator/admin/class-settings.php on line 101
    [11-Mar-2016 14:19:38 UTC] PHP Notice:  Undefined index: map_style in /locator/wp-content/plugins/wp-store-locator/admin/class-settings.php on line 167

    Woocommerce has a registration option to display on the login option in the My Account page. You could edit the header.php file in the accesspress-store theme file structure from this:

    <div class="login-woocommerce">
                    <?php
                    if (is_user_logged_in()) {
                        global $current_user;
                        get_currentuserinfo();
                        ?>
    
                        <a href="<?php echo wp_logout_url( home_url() ); ?>" class="logout">
                            <?php _e(' LogOut', 'accesspress-store'); ?>
                        </a>
                        <?php
                    } else {
                        ?>
                        <a href="<?php echo get_permalink(get_option('woocommerce_myaccount_page_id')); ?>" class="account">
                            <?php _e('LogIn', 'accesspress-store'); ?>
                        </a>
                    <?php }
                    ?>
                </div>

    to this:

    <div class="login-woocommerce">
                    <?php
                    if (is_user_logged_in()) {
                        global $current_user;
                        get_currentuserinfo();
                        ?>
    
                        <a href="<?php echo wp_logout_url( home_url() ); ?>" class="logout">
                            <?php _e(' LogOut', 'accesspress-store'); ?>
                        </a>
                        <?php
                    } else {
                        ?>
                        <a href="<?php echo get_permalink(get_option('woocommerce_myaccount_page_id')); ?>" class="account">
                            <?php _e('LogIn/Register', 'accesspress-store'); ?>
                        </a>
                    <?php }
                    ?>
                </div>

    to display LogIn/Register in the option. I would recommend creating a child theme so when you update the theme you wont lose this feature. Hope this helps.

    Sorry, didnt put the code tags in the previous reply.

    Woocommerce has a registration option to display on the login option in the My Account page. You could edit the header.php file in the accesspress-store theme file structure from this:

    <div class=”login-woocommerce”>
    <?php
    if (is_user_logged_in()) {
    global $current_user;
    get_currentuserinfo();
    ?>

    ” class=”logout”>
    <?php _e(‘ LogOut’, ‘accesspress-store’); ?>

    <?php
    } else {
    ?>
    ” class=”account”>
    <?php _e(‘LogIn’, ‘accesspress-store’); ?>

    <?php }
    ?>
    </div>

    to this:

    <div class=”login-woocommerce”>
    <?php
    if (is_user_logged_in()) {
    global $current_user;
    get_currentuserinfo();
    ?>

    ” class=”logout”>
    <?php _e(‘ LogOut’, ‘accesspress-store’); ?>

    <?php
    } else {
    ?>
    ” class=”account”>
    <?php _e(‘LogIn/Register’, ‘accesspress-store’); ?>

    <?php }
    ?>
    </div>

    to display LogIn/Register in the option. I would recommend creating a child theme so when you update the theme you wont lose this feature. Hope this helps.

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