D
D
DaNko882016-01-16 00:21:43
PHP
DaNko88, 2016-01-16 00:21:43

The template does not work on DLE with php7 how to fix it?

I installed the template, it works fine on php 5.6, I try it on php 7, it does not start, it gives an error (DLE 10.6)

Notice: Undefined index: all in /home/administrator/html/engine/modules/main.php on line 374

on this line is this:
if ($config['allow_links']) $tpl->result['main'] = replace_links ($tpl->result['main'], $replace_links['all']) ;

Do other templates work fine, regardless of php version,
or the template itself may not work under php7?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Taratin, 2016-01-16
@Taraflex

Add a check that the 'all' key is in the $replace_links array
Or suppress errors like E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);

D
DaNko88, 2016-01-16
@DaNko88

The problem was and remains that the template uses the bootstrap framework, it does not seem to support php7 yet

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question