Forum Replies Created

Viewing 15 replies - 16 through 30 (of 43 total)
  • Super, thanks!

    It’s not just product categories, but standard pages too.

    My URL structure (for example) is;
    home/vending-machines/coffee-machines/floor-standing/floor-standing-bean-to-cup-coffee-vending-machine/

    The breadcrumbs are showing;
    HOME > FLOOR STANDING > COFFEE MACHINES > VENDING MACHINES > FLOOR STANDING BEAN TO CUP COFFEE VENDING MACHINE

    The subpages (all pages, not product categories) are completely reversed…

    Me too.

    My URL structure (for example) is;
    home/vending-machines/coffee-machines/floor-standing/floor-standing-bean-to-cup-coffee-vending-machine/

    The breadcrumbs are showing;
    HOME > FLOOR STANDING > COFFEE MACHINES > VENDING MACHINES > FLOOR STANDING BEAN TO CUP COFFEE VENDING MACHINE

    The subpages are completely reversed…

    I’m also having a similar issue.

    URL structure is; https://westwaysnew-co-uk.stackstaging.com/vending-machines/water-coolers/table-top/

    But breadcrumbs are showing as;
    HOME WATER COOLERS VENDING MACHINES TABLE TOP

    Vending machines should be before water coolers. It seems to happen once you get 3/4 levels deep.

    Thread Starter badscooter1980

    (@badscooter1980)

    Update: March 21 2020

    So, it seems the code was incorrect at this part;

    function asl_full_content_in_results($results, $id, $is_ajax, $args) {

    I simply removed several parameters, so it looks like this;

    function asl_full_content_in_results($results) {

    And BINGO! It works on PHP 7.3

    For reference, the entire snippet inside my functions.php file is;

    add_filter('asl_results', 'asl_full_content_in_results', 1, 1);
    function asl_full_content_in_results($results) {  
      foreach ($results as $k=>&$r) {
        $r->flag = apply_filters('the_title', get_field('network_countries', $r->id));
        $r->website = apply_filters('the_title', get_field('network_website', $r->id));
      }
      return $results;
    }

    With my edits to the result.php template remaining unchanged at;

    <div class='asl_content'>
    
          <h3><div class="network-meta"><span class="flag-icon flag-icon-<?php echo $r->flag; ?>"></span> <a href="<?php echo $r->website; ?>" target="_blank"><?php echo $r->title; ?> <i class="fas fa-link"></i></a></div> <div class="network-check"><i class="fas fa-check"></i></div></h3>
    
        </div>
    Thread Starter badscooter1980

    (@badscooter1980)

    To add, the code I am using below works perfectly in PHP 7, so what is stopping it in 7.1?

    // Network dropdown functions
    add_filter('asl_results', 'asl_full_content_in_results', 10, 4);
    function asl_full_content_in_results($results, $id, $is_ajax, $args) {  
      foreach ($results as $k=>&$r) {
        $r->flag = apply_filters('the_title', get_field('network_countries', $r->id));
        $r->website = apply_filters('the_title', get_field('network_website', $r->id));
      }
      return $results;
    }

    And this, inside the result.php template;

    <div class='asl_content'>
    
          <h3><div class="network-meta"><span class="flag-icon flag-icon-<?php echo $r->flag; ?>"></span> <a href="<?php echo $r->content; ?>" target="_blank"><?php echo $r->title; ?> <i class="fas fa-link"></i></a></div> <div class="network-check"><i class="fas fa-check"></i></div></h3>
    
        </div>

    Screenshot of live site here; https://ibb.co/D1T6YXD

    Thread Starter badscooter1980

    (@badscooter1980)

    Hi,

    Sorry, I’m still unable to make this compatible.

    I followed your instructions layed out in this post https://www.ads-software.com/support/topic/show-entire-content/ which is what my code is based on.

    Thread Starter badscooter1980

    (@badscooter1980)

    I have this in my functions.php

    // Network dropdown functions
    add_filter(‘asl_results’, ‘asl_full_content_in_results’, 10, 4);
    function asl_full_content_in_results($results, $id, $is_ajax, $args) {
    foreach ($results as $k=>&$r) {
    $r->flag = apply_filters(‘the_title’, get_post_field(‘network_countries’, $r->id));
    $r->website = apply_filters(‘the_title’, get_post_field(‘network_website’, $r->id));
    }
    return $results;
    }

    Removing it makes it work, but I need this function to add some ACF data to the search results. What, in the above, isn’t working in PHP 7.1+?

    Thread Starter badscooter1980

    (@badscooter1980)

    Hi Fred,

    From my hosting company;

    “Thanks for your patience.

    I’ve conversed with our system administrators in relation to this and can confirm that on the Linux Platform, caching does not take plac, if we cache content we will insert the ‘x-cache-status’ http response header to be absolutely sure and we cannot see that this is happening here.

    We can see that the requests are being made to the webserver, here is a loadbalancer log to indicate this

    Feb 22 11:15:42 l4lb-133.ptl.stackcp.net haproxy[27158]: 109.69.82.40:60233 [22/Feb/2019:11:15:42.644] l4proxy-plain~ l7balancers/l7lb9.ptl.stackcp.net 0/0/0/26/29 200 24469 – – —- 533/533/89/41/0 0/0 {www.philltarling.com} “GET /wp-content/plugins/swift-performance-lite/css/styles.css?ver=2.0.6 HTTP/1.1”
    Feb 22 11:15:42 l4lb-133.ptl.stackcp.net haproxy[27158]: 109.69.82.40:60233 [22/Feb/2019:11:15:42.643] l4proxy-plain~ l7balancers/l7lb9.ptl.stackcp.net 0/0/0/32/32 200 1114 – – —- 532/532/87/39/0 0/0 {www.philltarling.com} “GET /wp-content/plugins/swift-performance-lite/includes/luv-framework/plugins/codemirror/theme/monokai.css?ver=b8f4f5093140b2c449d28459c6088d12 HTTP/1.1″

    The server configuration is the same as your other sites and we can only narrow this down for the developers to look into. If there is anything we need to do on our side, please let us know and we’ll see what we can do.”

    Thread Starter badscooter1980

    (@badscooter1980)

    I’m not sure where you are referring to? There is no ‘cache level’ in the WordPress general settings control panel?

    Thread Starter badscooter1980

    (@badscooter1980)

    Hi,

    Interesting, as Zircle.co.uk, plantsforeurope.com and aeromobile.net are on the exact same platform, and all seem to be working just fine.

    Thread Starter badscooter1980

    (@badscooter1980)

    Hi,

    Linux, Apache.

    There are no other caching plugins active and Curl/HTTP Loopbacks are also enabled.

    Thread Starter badscooter1980

    (@badscooter1980)

    I also removed the plugin (and settings) and reinstalled it, checked settings and still nothing.

    Thread Starter badscooter1980

    (@badscooter1980)

    So, to update, I ran this past my hosting company to check if they had anything that might be stopping this from working, and they don’t.

    Still hasn’t cached anything since my last post here :/

    Thread Starter badscooter1980

    (@badscooter1980)

    Yes, it is ticked, always has been.

    Still, clearing the cache, updating the page or clicking ‘start prebuild cache’ results in nothing. I have to manually click ‘cache page’ for each one.

Viewing 15 replies - 16 through 30 (of 43 total)