WPIntell

Source evidence

There has been a critical error on this website.

MultiSite Clone Duplicator · support · 2023-03-30T02:58:00+00:00

complaintsentiment
highseverity
0.96relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 26 rows with source links

15.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

22 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
hydie27 unresolved
I am trying to duplicate and it doesn’t complete, just ends up with a “There has been a critical error on this website.”. I’ve got a log file if required. Hi. I got the same problem. Were you able to find a solution? Same problem here, debugged this into the issue with PHP 8.2 + Polylang which causes an error “cannot call translate on null” on line if ( $mo->translate( $old_values ) === $values ) { in polylang. TLDR: if polylang related try adding // Disable some Polylang filters to avoid errors during the process global $wp_filter; foreach ($wp_filter as $hook_name => $hook) { if (isset($hook->callbacks)) { foreach ($hook->callbacks as $priority => $callbacks) { foreach ($callbacks as $callback) { if (is_array($callback[‘function’]) && isset($callback[‘function’][0]) && $callback[‘function’][0] instanceof PLL_Translate_Option) { $wp_filter[$hook_name][$priority][] = $callback[‘function’]; remove_filter($hook_name, $callback[‘function’], $priority); } } } } } After switch_to_blog(1); in file duplicate.php I’m not sure what Polylang is? I haven’t tried it again recently but need to duplicate a site in the next few days.

Comments

3 shown
alphafux 2023-06-15T14:49:00+00:00

Hi. I got the same problem. Were you able to find a solution?

repli2dev 2023-07-11T11:25:00+00:00

Same problem here, debugged this into the issue with PHP 8.2 + Polylang which causes an error “cannot call translate on null” on line if ( $mo->translate( $old_values ) === $values ) { in polylang. TLDR: if polylang related try adding // Disable some Polylang filters to avoid errors during the process global $wp_filter; foreach ($wp_filter as $hook_name => $hook) { if (isset($hook->callbacks)) { foreach ($hook->callbacks as $priority => $callbacks) { foreach ($callbacks as $callback) { if (is_array($callback[‘function’]) && isset($callback[‘function’][0]) && $callback[‘function’][0] instanceof PLL_Translate_Option) { $wp_filter[$hook_name][$priority][] = $callback[‘function’]; remove_filter($hook_name, $callback[‘function’], $priority); } } } } } After switch_to_blog(1); in file duplicate.php

hydie27 2023-07-11T11:27:00+00:00

I’m not sure what Polylang is? I haven’t tried it again recently but need to duplicate a site in the next few days.