Hey @xprojectsx,
I can’t replicate this straight away. Can you confirm which version of PHP you are running?
My theory at the moment (just a guess) is that you are using a version of PHP older than the plugin currently supports and it doesn’t like the way I’ve nested a function in a function.
function exlog_modify_repeater_data_for_view_use($repeater_data) {
function exlog_modify_repeater_item_data_for_view_use($repeater_data) {
$formatted_data = array();
if (is_array($repeater_data)) {
foreach ($repeater_data as $repeater_item_data) {
$formatted_repeater_items_data = array();
foreach ($repeater_item_data as $repeater_item_datum) {
if ($repeater_item_datum['repeater_field']) {
$value = exlog_modify_repeater_item_data_for_view_use($repeater_item_datum['value']);
} else {
$value = $repeater_item_datum['value'];
}
$formatted_repeater_items_data[$repeater_item_datum['name']] = $value;
}
array_push($formatted_data, $formatted_repeater_items_data);
}
return $formatted_data;
} else {
return $repeater_data;
}
}
return exlog_modify_repeater_item_data_for_view_use($repeater_data);
}
I am guessing each time exlog_modify_repeater_data_for_view_use()
is run it is trying to redeclare exlog_modify_repeater_item_data_for_view_use()
.
The issue is in the following file:
/wp-content/plugins/external-login/options/wpconfig_options.php
If your able to, you could test if this theory is correct by modifying the code to this:
function exlog_modify_repeater_item_data_for_view_use($repeater_data) {
$formatted_data = array();
if (is_array($repeater_data)) {
foreach ($repeater_data as $repeater_item_data) {
$formatted_repeater_items_data = array();
foreach ($repeater_item_data as $repeater_item_datum) {
if ($repeater_item_datum['repeater_field']) {
$value = exlog_modify_repeater_item_data_for_view_use($repeater_item_datum['value']);
} else {
$value = $repeater_item_datum['value'];
}
$formatted_repeater_items_data[$repeater_item_datum['name']] = $value;
}
array_push($formatted_data, $formatted_repeater_items_data);
}
return $formatted_data;
} else {
return $repeater_data;
}
}
function exlog_modify_repeater_data_for_view_use($repeater_data) {
return exlog_modify_repeater_item_data_for_view_use($repeater_data);
}
If you could still let me know which version of PHP or even better, if you’re running a lower version than the currently supported “5.6.34 or higher” to up your version.
Thanks,
Tom