S
S
Shimpanze2021-10-06 08:16:49
WordPress
Shimpanze, 2021-10-06 08:16:49

How to overcome this WordPress magic?

Hello

I'm including the file with the class on the test page - everything works as it should.

I connect the same file with the class through functions.php - it gives errors on the second and fifth lines of this code fragment:

$m_l = $m;
$st_pos = strpos($this->a_u, $m[0]); // Warning:  Uninitialized string offset 0
if ($st_pos !== false) {
    $ll = $this->left_limit_uc;
    $m_l[0] = $this->a[$st_pos]; // Warning:  Trying to access array offset on value of type null
}


What can be wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question