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

    Dear Support,

    I’m receiving the following (private section with login creds) errors on my site when debugging is enabled. I’ve searched the content and can’t find anything (like improperly closed styles) that would cause this. Do you have any ideas? Any help would be appreciated. Thanks.

    #1495235

    Hey Audica1,

    Thank you for the inquiry.

    We’re not seeing the errors or notices in the dashboard. Is this occurring on your error logs? What happens when you add the following code to the functions.php file?

    add_action( 'wp_enqueue_scripts', function() {
      if ( ! wp_style_is( 'avia-layout', 'registered' ) ) {
          wp_register_style( 'avia-layout', false );
      }
    }, 5 );

    Make sure to create a site backup before adding the code. If the issue persists, please provide the SFTP login detail in the private field so we can check the issue further.

    Best regards,
    Ismael

    #1495449

    Thanks, Ismael. I’ve tried adding that and it’s still throwing errors. I’m providing you with the sFTP info privately. Thanks so much.

    TB

    #1495473

    Hi,

    Thank you for the info.

    We have updated the code and confirmed that this removes the notices.

    add_action( 'admin_enqueue_scripts', function() {
    
        if ( ! wp_style_is( 'avia-layout', 'registered' ) ) {
            wp_register_style( 'avia-layout', false );
        }
    
        if ( ! wp_style_is( 'avia-shortcodes', 'registered' ) ) {
            wp_register_style( 'avia-shortcodes', false );
        }
    
        if ( ! wp_script_is( 'avia-shortcodes', 'registered' ) ) {
            wp_register_script( 'avia-shortcodes', false );
        }
    
    }, 1 );

    Let us know the result.

    Best regards,
    Ismael

    #1495544

    Sorry, Ismael. The issue still remains. You will see the issue if you try to go to the Posts or Pages page.

    #1495554

    Hi,

    How did you add the code before? We didn’t find a functions.php file in the child theme, so we created one and added the admin_enqueue_scripts hook, which removed the notices in the Pages panel. Please make sure to purge the cache before checking.

    Best regards,
    Ismael

    #1495709

    Ismael,

    It looks like clearing cache did it. Thanks so much!

    #1495713

    Hi,

    Great! Glad this has been resolved. Please don’t hesitate to open another thread if you have more questions.

    Have a nice day.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘“Avia Module” errors being thrown’ is closed to new replies.