Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hey Mike,

    Just wanted to share that I managed to find the cause of my problem. The plugin All In One SEO Pack PRO v2.4.9.2, once deactivated showed all available updates.

    There is a new update available for the All In One SEO plugin, but I’ve read there are issues with the upgrade version too. For now, I will continue to go through the deactivate/activate process when there are updates needed for other plugins etc. Not ideal, but it’s a way forward until a new stable version of the All In One SEO Pack version is available.

    I hope this is of help you & others.

    Thanks,

    WP

    Hi Mike,

    Did you manage to resolve this? I’m getting a similar problem and your findings may help point me in the right direction.

    Thanks,

    WP

    Thread Starter wpinster

    (@wpinster)

    Hi Mike,

    Looks like if I leave the link and button text as blank the button is not displayed. Did;t think that was possible, but it works. Thanks. marking as resolved.

    Thread Starter wpinster

    (@wpinster)

    Hi Mike,

    Thanks. Yes, that is correct. I need to remove that button that holds the link & text. But only from External/Affiliate product types.

    Thanks

    Thread Starter wpinster

    (@wpinster)

    Thanks Rajesh. I’ll take a look at these.

    Thread Starter wpinster

    (@wpinster)

    Hi socialdude,

    Im afraid I can’t help you. I spent 3 weeks re-coding my site from scratch to remove the Ultimate Social Media and Share Icons plugin. The plugin is no longer on my site and I won’t risk installing it again.

    Thanks for the follow up though. I wish you guys success.

    Thread Starter wpinster

    (@wpinster)

    OK. Thanks for all your help. I’ll take a look at what the next update offers. FYI, the changes you helped me make improved my PageSpeed score by 3%, and got me to 92%.

    If it helps, I’d like to suggest the following:

      1. make the removal of the ? permanent (how ever you can). This will help the plugin users overcome some Page Speed & YSlow issues
      2. if you must make the file dynamic, can I suggest you use only the js files that are actually needed, instead of the whole library being merged. Again, this will aid in improving performance
      3. how about generating the file only at the point when someone saves / edits a ‘form’ rather than at every time the page is hit. This way, the file can be cached and even saved to a CDN. Yep, you guessed it – to help improve performance

    Thanks again for all your help. I really appreciate your efforts, and your plugin (with the exception of the performance issue) is perfect IMHO.

    Thanks.

    Thread Starter wpinster

    (@wpinster)

    Hiya,

    That seems to have done the trick. The ‘?’ no longer appears. Thank you so very much. Will you be incorporating these changes into the next release, or is this something that I’ll have to redo each time a new release of CFF is made?

    My only other question is where is the cp_cff_resources file located? I can’t find it anywhere. I would like the location so I can manually place it on my CDN (at the moment it’s not getting there). If the file is dynamically created, is there a chance that you will be changing the plugin so it gets created/changed each time you make a change to a saved form

    Thanks.

    Thread Starter wpinster

    (@wpinster)

    Hi, thanks for that. I’ve made the changes as suggested, but the form times out now.

    When I look at Developer Tools, I see this error message:

    GET https://mywebsite.comhttps//mywebsite.com/cp_cff_resources_public net::ERR_CONNECTION_TIMED_OUT

    It looks like the website is being repeated twice in the url.

    This is what I have in my .htaccess file.

    # Begin modification to remove ? from calculated field form url
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule (cp_cff_resources_public) /index.php?cp_cff_resources=public [L]
    </IfModule>
    
    # End modification to remove ? from calculated field form url

    This is the edited line in cp_calculatedfieldsf.php (at approx line 510):

    wp_enqueue_script( 'cp_calculatedfieldsf_buikder_script',
            cp_calculatedfieldsf_get_site_url().trim(cp_calculatedfieldsf_get_site_url(),'/').'/cp_cff_resources_public',array("jquery","jquery-ui-core","jquery-ui-button","jquery-ui-datepicker","jquery-ui-widget","jquery-ui-position","jquery-ui-tooltip","query-stringify","cp_calculatedfieldsf_validate_script", "jquery-ui-slider"), false, true );

    This is the edited line in cp_calculatedfieldsf.php (at approx line 565):

    </script>
         <script type='text/javascript' src='<?php echo cp_calculatedfieldsf_get_site_url().trim(cp_calculatedfieldsf_get_site_url(),'/').'/cp_cff_resources_public'; ?>'></script>
    <?php
        }
    }

    I’m sure I’ve made a mistake. I’ve tried it twice, but same results. Can you suggest what might be wrong.

    Thanks.

    Thread Starter wpinster

    (@wpinster)

    Hiya, sorry about that. I’ve used the suggested code the correct way now, but the problem persists.

    To the best of my ability, I did check Chrome Developer Tools and saw the “304 Not Modified” statement appear in the header. But the ‘?’ that precedes the cp_cff_resources still shows and prevents caching (i think).

    When I removed the suggested code, the header reverted to ‘200 OK’ .

    Thanks.

    Thread Starter wpinster

    (@wpinster)

    Hi,

    Thanks so much for getting back. You guys do an awesome job of supporting your users.

    I tried the solution suggested, but there was no change. Just to be sure, i’ve pasted a code sample from the .php file (after the change) below, in case i did something wrong:

    <?php header('Content-Type: application/x-javascript; charset=UTF-8'); ?>
    
    <?php
    $lastModified=filemtime(__FILE__);
    $etagFile = md5_file(__FILE__);
    $ifModifiedSince=(isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? $_SERVER['HTTP_IF_MODIFIED_SINCE'] : false);
    $etagHeader=(isset($_SERVER['HTTP_IF_NONE_MATCH']) ? trim($_SERVER['HTTP_IF_NONE_MATCH']) : false);
    header("Last-Modified: ".gmdate("D, d M Y H:i:s", $lastModified)." GMT");
    header("Etag: $etagFile");
    header('Cache-Control: public');
    
    if (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE'])==$lastModified || $etagHeader == $etagFile)
    {
           header("HTTP/1.1 304 Not Modified");
           exit;
    }
    ?>
    
    fbuilderjQuery = (typeof fbuilderjQuery != 'undefined' ) ? fbuilderjQuery : jQuery;
    fbuilderjQuery(function(){
    (function($) {
    	// Namespace of fbuilder
    	$.fbuilder = $.fbuilder || {};
    	$.fbuilder[ 'objName' ] = 'fbuilderjQuery';

    Also, I did change my site to HTTPS recently. Would this make a difference to your suggested code?

    Thanks again for your help.

    Thread Starter wpinster

    (@wpinster)

    Hi,

    Im not a coder so I am not able to investigate this, but if anyone is able to help I would be grateful. The issue is being picked up in multiple areas by both Page Speed and YSlow.

    I think the issue is because of the ? that precedes script name (cp_cff_resources). I think it prevents the script being cached. If it is, is there a way it can be removed safely without causing disruption to the CFF plugin?

    If there is additional information needed, please let me know. Alternatively, if there is another post/forum that this should be placed in, please point me in the right direction.

    Cheers.

    Thread Starter wpinster

    (@wpinster)

    Hi, just a quick addition. Gtmetrix is also showing this in Keep-Alive:

    ————
    The host should enable Keep-Alive. It serves the following resources.

    http://mywebsite.com/?cp_cff_resources=public&ver=4.1.1
    ————

    Thanks.

    Hi StanLight, did you find an alternative? Can you share? I’m looking at using a cookie plugin and the page speed impact is an important factor for me.

    RichardAshby. The plugin is great. Clean and Simple. I am/was using this plugin, but busy rebuilding my site and reevaluating what plugins to use.

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