• paviland

    (@paviland)


    Whilst one of my sites now works flawlessly after recent updates, I have issues with three other sites where Lightroom is not working. It fails to open Photo of the Day (in the Footer), Slideshow images and video. Moreover, it no longer displays the Gallery in 3 column format, though oddly does display sub-galleries correctly as 3 columns.

    This occurs with Google Chrome, Edge and FireFox. The example given is for one of these websites but all sites have the following:

    WordPress Version 7.0
    Database Version MySQL 8.0.36
    PHP 8.3.31
    WP Photo Album Plus 9.2.03.001

    I have compared the site plugins for any pattern that might explain this, but deactivating those that are not in the working site makes no difference. Oddly, whilst comparing the contents of the wp-config.php files, I altered the permissions to match that for my working site and for a brief few minutes of testing, the Gallery display and Lightroom worked.

    Can you please guide me as to what to try next. Thank you Jacob.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Its even worse: the page of your link initially stays is blank in firefox and chrome
    The browser console tells me that ‘https://pagead2.googlesyndication.com/apps/domainpark/show_afd_ads.js’ can not be loaded because the MIME-type (‘text/html’) mismatch.

    After an extra enter in the address line, it says:
    Error establishing a database connection. or Database error
    Almost every pageload i have to agree the use of cookies

    When i finally habe a page with thumbnails and click one, i get another Error establishing a database connection.

    So, at this moment i can not troubleshoot your issue. Maybe a temporarely server issue?

    Thread Starter paviland

    (@paviland)

    Hmm. What a pain. It works for me now though is running a bit slower than usual

    Thread Starter paviland

    (@paviland)

    ps working from the point of view of accessing the web pages; same issues as reported

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I can now see the issue.

    If you have ftp access to the site, please delete
    https://www.icknieldwaymorrismen.org.uk/wp-content/plugins/wp-photo-album-plus/js/wppa-all.js

    It then loads the uncompressed js files so i can see where the error happens

    error:
    Uncaught TypeError: can’t access property “src”, document.getElementById(…) is null

    Do not forget to clear all caches after you delete wppa-all.js

    • This reply was modified 2 weeks, 5 days ago by Jacob N. Breetvelt. Reason: clear cache added
    Thread Starter paviland

    (@paviland)

    Thank you for looking. Now done.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Thanx. i see what happens and will investigate further. pls keep it this way until further notce.

    Thread Starter paviland

    (@paviland)

    Will do.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    What is colorbox (cbox) ??

    What is hu-blocked ??

    The wppa javascript is not properly loaded/executed (hu-blocked)

    So, if you can imagine where hu-blocked comes from, de-activate it
    Also, if you have a different lightbox (colorbox?) de-activate it.

    Thread Starter paviland

    (@paviland)

    I could not find where colorbox came from but it is hu-blocked that is the culprit. It comes from the plugin Compliance by Hu-manity.co used to set cookie preferences. I have not reactivated it, just so you can see for yourself. Interestingly, the following site also uses this plugin … but wppa+ works flawlessly if you go to the Gallery or click on Photo of the day:
    https://www.sunwheelgrove.co.uk/

    Curiouser and curiouser! Can you please suggest what is the next step. Thank you for your persistence with this.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Thanx for this info
    I will try Compliance by Hu-manity.co on my test site

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I can not reproduce the problem.
    Are there any difference in the settings of the Compliance plugin between the sites that has and has not the problem?

    Thread Starter paviland

    (@paviland)

    Unfortunately, I do not see any differences. When I originally set them up, all settings were the same for each site and there were no problems.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Can you change it back so that it shows the issue again? then i can pick up the wrong code from the pagesource to further investigate, and maybe ask the compliance people to chamge something

    As soon i have it, i will inform you.

    Thread Starter paviland

    (@paviland)

    Thank you for that. It is now restored.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Got it. You can revert.

    This is the offender:

    <script id="wppa-js-after" class="hu-blocked" type="javascript/blocked" data-script="&quot;\njQuery(\&quot;body\&quot;).append(' <div id=\&quot;wppa-overlay-bg\&quot;...

    It should read:

    <script id="wppa-js-after">
    jQuery("body").append(' <div id="wppa-overlay-bg" style="...

    <script id="wppa-js-after" ... is my inline js. but it is damaged by the hu compliance plugin, see:
    class="hu-blocked" type="javascript/blocked"

    Therefor the jQuery().append() is not executed, and that is the code for lightbox.

    This is my proof that hu compliance damages it.

Viewing 15 replies - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.