Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1123324

    Hello guys,

    when I want to edit a post in the backend the chrome console shows the following error:

    Uncaught TypeError: $.avia_utilities.supports is not a function
        at avia_hover_effect (avia.js?ver=2:536)
        at Object.$.avia_utilities.avia_ajax_call (avia.js?ver=2:85)
        at HTMLDocument.<anonymous> (avia.js?ver=2:44)
        at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.2.2:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.2.2:2)
        at Function.ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.2.2:2)
        at HTMLDocument.J (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.2.2:2)

    What can I do? You can test it for yourself with the login data which are in private content.

    The background of my question is because the post backend dont shows up yoasts’ primary category feature on the category module. Maybe fixing this error will be the solution!?

    Thanks!

    #1123707

    Hey coolicious,

    Thanks for the login details. Why do you have avia.js in your child theme? What exactly are you trying to override or change?

    Best regards,
    Rikard

    #1123988

    I needed a class in my submenu and used this code in my child theme functions.php:

    /* Add Class to Submenu */
    function wp_change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );

    Therefore I need the avia.js. Do you know an other way to do this?

    #1124499

    Hi coolicious,

    Is avia.js file from the fresh copy of Enfold?

    Best regards,
    Victoria

    #1124886

    Hey Victoria,

    what do you mean with fresh copy?

    Best regards
    Sandro

    #1124903

    Hi Sandro,

    Is it from the latest version of Enfold? Was it updated manually with the theme update?

    Best regards,
    Victoria

    #1124925

    I have version 4.5.7 – why?

    • This reply was modified 5 years, 4 months ago by coolicious.
    #1125361

    Hi,

    Thank you for the update.

    What did you add in the avia.js file? You need to use the latest version of that file, which can be acquired from the parent the theme folder. You will then have to redo the modifications.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.