This should be solved by adding the following on each already existing functions:
if (!function_exists('thefunction')) {
// ... proceed to declare the function
}
I think it would be better to prefix the meta functions in the plugin.
hfgr_add_term_meta() {
}
Fact is I cant access my admin because of the error. Suggestions?
I’m trying to find the folder to change it on my ftp but I can’t >.<
Where is it located?
Thanks!
Hi @eiteews, it’s located at /www/wp-content/plugins/hide-for-group-roles
Rename the file “index.php” or modify the functions (around line 938)
from
function [thefunctionname]($term_id, $meta_key, $meta_value, $unique = false) {
return add_metadata('taxonomy', $term_id, $meta_key, $meta_value, $unique);
}
to
if (!function_exists('[thefunctionname]')) {
function add_term_meta($term_id, $meta_key, $meta_value, $unique = false) {
return add_metadata('taxonomy', $term_id, $meta_key, $meta_value, $unique);
}
}
And it’s done
Shemzone
i am getting the same type of error for tranposh and freeCDN plugin .
Fatal error: Cannot redeclare file_get_html() (previously declared in /home/kings1001/public_html/wp-content/plugins/transposh-translation-filter-for-wordpress/core/shd/simple_html_dom.php:39) in /home/kings1001/public_html/wp-content/plugins/free-cdn/simple_html_dom.php on line 41
I dont know much about programming . I have removed both plugins but still getting this error . Please guide me step by step so that it will be easy for me to understand what to do
i changed name of function in Plugin to avoid conflict .
but Now i am getting this error
Warning: require_once(/home/kings1001/public_html/wp-content/plugins/free-cdn/simple_html_dom1.php): failed to open stream: No such file or directory in /home/kings1001/public_html/wp-content/plugins/free-cdn/free_cdn.php on line 173
Fatal error: require_once(): Failed opening required ‘/home/kings1001/public_html/wp-content/plugins/free-cdn/simple_html_dom1.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/kings1001/public_html/wp-content/plugins/free-cdn/free_cdn.php on line 173