-
AuthorPosts
-
March 23, 2019 at 4:06 pm #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,
JuergenMarch 27, 2019 at 6:14 pm #1083735Hey Jürgen,
What is your php version of the web site?
Best regards,
BasilisMarch 27, 2019 at 6:37 pm #1083755Hi Basilis,
we’re using PHP 7.1.27.
Regards,
JürgenMarch 31, 2019 at 5:34 am #1085004Hi 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,
RikardApril 14, 2019 at 6:38 pm #1090684Hi 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
April 15, 2019 at 7:41 pm #1091062Hi 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,
VictoriaApril 15, 2019 at 10:54 pm #1091117Don’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ürgenApril 16, 2019 at 4:49 pm #1091564Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.