Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter cielzhao

    (@cielzhao)

    Help needed.

    Plugin Contributor Yoav Kadosh

    (@ykadosh)

    Hey there, thank you for reporting. This error has been fixed in 1.3.7.
    Let me know if you have additional issues.

    Thread Starter cielzhao

    (@cielzhao)

    Another problem…It’s slow to connect the CDNs which mivhak uses in China.

    I hope to let mivhak request all required files from my own VPS, not from any CDN.

    Maybe it won’t become a release feature. I just want to know the way to edit its code.

    Thanks so much.

    Plugin Contributor Yoav Kadosh

    (@ykadosh)

    You’ll need to store all of the Ace Editor files locally (including all the language files) and then change the line where is says ace.config.set("basePath","https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.3") in the file assets/js/mivhak.min.js and point it to you local ace.js file.

    Thread Starter cielzhao

    (@cielzhao)

    I stored ace.js in wp-content/plugins/mivhak/cache/ and changed mivhak.min.js, but It still request from cloudflare. This way didn’t work.

    Even worse, this plugin also request font-awesome from bootstrapcdn.

    There’re three files load from cdn:
    https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.3/ace.js?ver=1.2.3
    https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/fonts/fontawesome-webfont.woff2?v=4.6.2
    https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css?ver=0.3.7

    these are now the lowest part of my site.

    Test Page: https://ciel.pro/algorithm101/

    I know it’s not easy to solve this problem caused by China’s network, so I’m considering donate if you could help me and Chinese users to solve this problem

    Thanks again!

    Plugin Contributor Yoav Kadosh

    (@ykadosh)

    The way Ace Editor works kinda forces me to use a CDN since there are 140+ separate language files, and I would have to update all the files every time Ace has a new release.

    There is also a line in includes/Mivhak.php:74 that loads Ace from a CDN. Try to change that and see if that helps.

    As for font-awesome, this should only be called in the admin section. It is used by the options framework that Mivhak is based on. We are transitioning into a new framework but I can’t tell you how long it will take.

    Thread Starter cielzhao

    (@cielzhao)

    With your help I found that line and my site now request ace.js from my own VPS.

    As for font-awesome, this is called on all pages, even including homepage…

    So I’m trying to find out where requested it.

    Thank so much for your help!

    Plugin Contributor Yoav Kadosh

    (@ykadosh)

    I’m glad you were able to resolve this. As for font-awesome, you can take a look at vendor/askupa-software/amarkal-framework/Core/config.inc.php:68

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘ReferenceError: mivhak_settings is not defined’ is closed to new replies.