• Resolved Jack All

    (@jack-all)


    Fancybox does not work anymore on my site. It did but I don’t check it very often.

    I get 4 errors in console when loading fancybox sources. One of them is this:
    Refused to execute script from 'https://<mywebsite>/wp-content/plugins/easy-fancybox/fancybox/F/jquery.fancybox.min.js?ver=4.9.1' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

    Folder F does not exist. Where does the Folder /F/ come from? In that folder only fancybox versions are visible.

    What can be wrong here? I cleared cache, disabled other plugins etc.

    If I create the F folder manually, and place the missing files in it, Fancybox works. But which version should go in there?

    Thanks for taking the time to help me,

    Jack.

    • This topic was modified 2 years, 3 months ago by Jack All.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @jack-all that /F/ does not make sense and should not be there. Could you disable, then uninstall and re-install the Easy FancyBox plugin? If that solves the issue, then somehow the plugin files on your site were modified. But if it remains, then somehow the script version number is being replaced by the letter F.

    Let me know ??

    I have not heard back from you so I’ll mark this as resolved for now. Let me know if you still need help!

    Thread Starter Jack All

    (@jack-all)

    Thanks Rolf,
    I completely forgot about this. I’ve just put the folder and files from a specific version in the /F/ folder, and it worked. It took me too long searching for specific changes in the files or code.

    Kind regards,
    Jack

    So you never found out where that /F/ is coming from? It looks like it has replaced the Facnybox version number, which is a “constant” defined in the main plugin file easy-fancybox.php

    Come to think of it, the constant is an array. Only PHP 5.6+ accepts array values for constants. Is your PHP version older than 5.6? You can check this by going to Tools > Site health and switch to the Info tab. There under the Server section, you should be able to find the PHP version number.

    And if it is older than 5.6, please update PHP (or ask your provider) as soon as possible! Preferably to 7.4 or above.

    If it is not possible to upgrade (or change) your PHP version, then you can also downgrade the Easy FancyBox plugin to version 1.8.19

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘scripts and css don’t load’ is closed to new replies.