A
A
Alexey Ruzanov2018-11-27 16:44:35
Adobe Photoshop
Alexey Ruzanov, 2018-11-27 16:44:35

PHP error after version update. How to fix?

After updating PHP version from 5.6 to 7.1 the following errors occurred:
1. In template file includes.php Warning: A non-numeric value encountered in
$h5_line_height = 'line-height: ' . $this->params->get('h5_font_size')+0 . 'px;';
2. In the file params.php Warning: A non-numeric value encountered in
$mainContentWidth = 12 - ($aside_left_width + $aside_right_width);
Please tell me how to fix. Joomla engine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2018-11-27
@Alex-Ruz

$h5_line_height	= 'line-height: ' . (int)$this->params->get('h5_font_size') . 'px;';
$mainContentWidth = 12 - ((int)$aside_left_width + (int)$aside_right_width);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question