Forum Replies Created

Viewing 15 replies - 46 through 60 (of 109 total)
  • Thread Starter mcyzyk

    (@mcyzyk)

    OK, I think there may be Nothing To See Here, WordPress Folks:

    A thought occurred to me: What if this weird behavior is due to the last moment application of CSS?

    I disabled the CSS going against the main class in the div surrounding the shortcode output. (I disabled it by temporarily renaming the class…)

    And now, all three numbers are on screen, i.e.,

    Three shortcodes, called with three unique IDs — three results on screen.

    My conclusion: Weird behavior due to final application of CSS.

    Thread Starter mcyzyk

    (@mcyzyk)

    Yeah, sorry about that.

    It is still suspicious to me because it looks like it’s changing thing by class, not unique ID.

    Searching for something that is changing things by class such that at all three instances of shortcode output would be changed….

    Thread Starter mcyzyk

    (@mcyzyk)

    Thanks so much! Good advice.

    I just found this, in their Javascript include:

    $('<style>').text('.occupancy-report .occ-graph .circle-fill {stroke-dashoffset: '+cssFill+' !important;}').appendTo(document.head);

    Suspicious to me!

    Thread Starter mcyzyk

    (@mcyzyk)

    Thanks. It’s a part of a Vendor’s custom Theme, written for us. They have a shortcode that uses an API to call to get information about Room Occupancy here in our Buildings. It’s all working great, except this last, weird, refresh thing.

    Thread Starter mcyzyk

    (@mcyzyk)

    Thanks! It’s not my code, it’s a Vendor’s code, so I can ‘t really post it here.

    That said, I’ve been over it again and again and it is working as expected: Witness, if I put three different shortcodes on three different pages, I get the expected results.

    The unexpected issue happens when I have multiple shortcodes on a single page. (Hence my concentration when looking at the Vendor code, making sure ob_start()/return ob_get_clean(); was correct. It is.)

    I feel like there is some kind of final stage DOM refresh that’s happening, resulting in this weird behavior. The Page sez, “Yeah, I’ve loaded the content of all three shortcodes, as you can briefly see, but now I’m going to go back, clear everything, and render all three with the value of the first one on the page.”

    ?!

    Thread Starter mcyzyk

    (@mcyzyk)

    Any idea on how to remedy this Permalinks Issue?

    Thread Starter mcyzyk

    (@mcyzyk)

    More: While I’m trying to figure this out, I decided to Deactivate Polylang on my site.

    404s went away and did not come back! I.e., Permalinks are stable.

    However, while my homepage is in English, everything else is in French.

    Thinking. Searching….

    Got it! That may just be the Clue I need!

    Looking at server config more closely…

    I am able to get directly to the PDF file via its URL in the Media Library.

    Thanks, Burt!

    My original issue persists:

    I have a weird situation related to this:
    I have a Prod and a Dev server.
    In both, I’ve added the “AddType application/javascript .mjs” line to .htaccess.
    This solved my problem on Prod, but did not solve my problem on Dev. On Dev I get a “Forbidden. You don’t have permission to access this resource” error.
    File system permissions on Prod and Dev are identical.
    AND, on Dev, I CAN get directly to a PDF file via its URL.
    So for some reason, this plugin cannot get to it and is throwing an error. Don’t know why!

    MIME type added, cache cleared, trying with multiple browsers. Inspector sez: 403 Forbidden

    Again, weirdly, this is only on my Dev server, not Prod.

    Puzzled,

    Mark

    Still not working for me.

    …and yet I have no problem with the plugin with MIME type configured on one of my hosts, while I do have the problem with the plugin with MIME type configured on another one of my hosts — both while using the same browser.

    I have a weird situation related to this:

    I have a Prod and a Dev server.

    In both, I’ve added the “AddType application/javascript .mjs” line to .htaccess.

    This solved my problem on Prod, but did not solve my problem on Dev. On Dev I get a “Forbidden. You don’t have permission to access this resource” error.

    File system permissions on Prod and Dev are identical.

    AND, on Dev, I CAN get directly to a PDF file via its URL.

    So for some reason, this plugin cannot get to it and is throwing an error. Don’t know why!

    Thread Starter mcyzyk

    (@mcyzyk)

    Thanks!

    Is there any way to make this happen directly in my code above rather than in functions.php?

    Much appreciated,

    Mark

    Thread Starter mcyzyk

    (@mcyzyk)

    Just reporting back….

    This:

    “I think for Prudence’ Sake I’m just going to do everything at once (rather than try a DNS Switcheroo at the very end): Take snapshot on Old. change DNS on New, build fresh single WP instance, promote to Multisite, restore snapshot into it.”

    That’s what I did last evening and this morning. All up and running on new RHEL9/PHP8 VM with new IP but same old DNS! Migration complete.

Viewing 15 replies - 46 through 60 (of 109 total)