• Resolved Merkucio

    (@merkucio)


    Got this message after first scan:

    [JUN 02 18:38:26] Warning: Undefined variable $info in /home/xxxxxx/public_html/wp-content/themes/dt-the7/inc/mods/tgmpa/tgmpa.php on line 301

    Warning: Trying to access array offset on value of type null in /home/xxxxxx/public_html/wp-content/themes/dt-the7/inc/mods/tgmpa/tgmpa.php on line 301

    Warning: Undefined variable $index in /home/xxxxxx/public_html/wp-content/themes/dt-the7/inc/mods/tgmpa/tgmpa.php on line 301 0

    And in tgmpa.php on line 301:

    $plugins_list[ $index ][‘source’] = ‘https://gitlab.com/devopwp/the7/raw/master/’ . $info[‘slug’] . ‘.zip’;

    What does it mean and how to resolve?

    • This topic was modified 1 year, 5 months ago by Merkucio.
    • This topic was modified 1 year, 5 months ago by Merkucio.
Viewing 1 replies (of 1 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @merkucio, thanks for reaching out to us about this!

    When the scan is running, and it checks for plugin/theme updates, the dt-the7 theme’s code is running and causing the warnings. The theme author would have to fix it, by making sure?$info?is set before trying to use the variable.

    PHP warnings won’t stop the execution of other code like a fatal error would, so shouldn’t affect Wordfence’s scan. There is an exception that if the theme is trying display available updates for its own related plugins, it may not be showing them (which also means Wordfence can’t see them.)

    Thanks,
    Peter.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning: Undefined variable $info in’ is closed to new replies.