PHP Notices
-
Hi,
The only way i can get this plugin to work is to turn off PHP notices. If you have wp_debug switched on you get a load of “undefined index” errors. This is because
$html[‘url’] and $html[‘url’][$counter] are not set when the code is trying to append data to them with ‘.=’ . They really need to be initialised first so that these errors don’t occur.i.e
if(!isset($html[‘url’][$counter]))
$html[‘url’][$counter] = “”;This should be put before line 126 in functions.php in the plugin and the equivalents for titles and categories on the relevant lines also.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Notices’ is closed to new replies.