Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1198653

    Greetings

    I am receiving these errors and my host asked me to send them to you maybe you can help

    PHP Warning: array_keys() expects parameter 1 to be array, bool given in /home/wp_vgbfwm/per-vurt.com/wp-content/themes/enfold/framework/php/font-management/class-avia-type-fonts.php on line 856

    PHP Warning: sort() expects parameter 1 to be array, null given in /home/wp_vgbfwm/per-vurt.com/wp-content/themes/enfold/framework/php/font-management/class-avia-type-fonts.php on line 857

    PHP Warning: Invalid argument supplied for foreach() in /home/wp_vgbfwm/per-vurt.com/wp-content/themes/enfold/framework/php/font-management/class-avia-type-fonts.php on line 858

    Thank you

    #1199603

    Hey Mohamad,

    Sorry for the late reply. Those are warnings and should not affect any functionality on your site, if you want us to have a closer look then please post admin WordPress login details in private.

    Best regards,
    Rikard

    #1199784

    Hello
    If i type in per-vurt.com/shows it goes to a non secure web page rather than converting it to https://per-vurt.com/shows
    and they said it is because of the above mentioned errors

    Shouldnt anything typed in the internet browser be converted automatically to https ?

    Thank you

    #1200023

    Hi,

    If you have an SSL certificate then it should be used yes, and it looks like that is the case on your site as well: https://imgur.com/a/eCrwEQb

    Best regards,
    Rikard

    #1209152

    ok thank you @rikard . but these warnings keep on showing and my host warns me about them .. what are they exactly and how to remove them (fix them)
    SSL fixed .. just these warnings how to solve them

    #1209666

    Hi Cloudypro,

    Please edit the file enfold/framework/php/font-management/class-avia-type-fonts.php and add this code:

    
    
    		if (!is_array($uploaded) || count($uploaded) < 1) {
    			return $fonts;
    		}
    

    after:

    
    $uploaded = $this->get_font_list();
    

    Image 2020-05-04 at 20.13.59.png

    Best regards,
    Victoria

    #1209710

    Thank you @victoria !! i did it and on will be checking with the host provider in our next support ticket if the error is still showing

    #1209721

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1209732

    Hi
    Yes you can close
    thank you

    #1209734

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘PHP Error’ is closed to new replies.