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

    Hey guys,

    two days ago, I’ve updated the Enfold theme on on of my sites. Since then, I’m reveiving plenty of messages in the corresponding debog.log:
    PHP Notice: Undefined offset: 0 in /usr/www/users/voskuh/PCsicher.com/www/wp-content/themes/enfold/framework/php/font-management/class-avia-type-fonts.php on line 875

    Can you check that, please?

    THX in advance,
    Juergen

    #1083735

    Hey Jürgen,

    What is your php version of the web site?

    Best regards,
    Basilis

    #1083755

    Hi Basilis,

    we’re using PHP 7.1.27.

    Regards,
    Jürgen

    #1085004

    Hi Jürgen,

    Sorry for the late reply. Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply. Also please point out where we can see the problem, and note that what you are getting is a notice and should not affect anything on your site.

    Best regards,
    Rikard

    #1090684

    Hi Rikard,

    I’m a software developer, so I know that the notices don’t affect anything. It’s just annoying, because it’s fills the disk quota for nothing and you might easily miss a real problem between all this garbage.

    Please find the login details in the Private content section.

    Cheers,Jürgen

    #1091062

    Hi Jürgen,

    You can configure error reporting to not log the notices or run the cron job for removing all logs. We understand it can get really annoying but we’re not sure that the check will be added there any soon.

    Best regards,
    Victoria

    #1091117

    Don’t worry, I’ve disabled logging of PHP notices at that particular line.
    So just solve it whenever it suits you guys.

    Removing all logs by a cron job is not a good idea: normally you want to see the errors (and notices, since there you’ll find e.g. hints of deprecated PHP functions being used, which might be not available in a future version) on the page.

    Best,
    Jürgen

    #1091564

    Hi,

    Please replace enfold\framework\php\font-management\class-avia-type-fonts.php line 875:

    
    $name = $uploaded[ $font_key ]['config'][0]['name'] . ' (' . implode( ', ', $weight ) . ')';
    

    with

    
    			$name = isset( $uploaded[ $font_key ]['config'][0]['name'] ) ? $uploaded[ $font_key ]['config'][0]['name'] : $font_key;
    			$name .= ' (' . implode( ', ', $weight ) . ')';
    

    This will remove the notice.

    Best regards,
    Günter

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