d type, %4$s is the actual type sprintf( __("Custom field '%1\$s' with ID '%2\$d' expects type '%3\$s' but type '%4\$s' was provided.", 'mailpoet-premium'), $customField->getName(), $customField->getId(), $customField->getType(), $data['type'] ) ); } $subscriberCustomField = $this->subscriberCustomFieldRepository->findOneBy([ 'subscriber' => $subscriber, 'customField' => $customField, ]); if ($subscriberCustomField) { $subscriberCustomField->setValue($data['value']); } else { $subscriberCustomField = new SubscriberCustomFieldEntity($subscriber, $customField, $data['value']); $this->subscriberCustomFieldRepository->persist($subscriberCustomField); } } $this->subscriberCustomFieldRepository->flush(); } }
Fatal error: Uncaught Error: Class "Automattic\WooCommerce\Admin\DeprecatedClassFacade" not found in /htdocs/wp-content/plugins/woocommerce/src/Admin/Notes/DeprecatedNotes.php:20 Stack trace: #0 /htdocs/wp-content/plugins/woocommerce/src/Internal/Admin/FeaturePlugin.php(75): require_once() #1 /htdocs/wp-content/plugins/woocommerce/src/Admin/Composer/Package.php(65): Automattic\WooCommerce\Internal\Admin\FeaturePlugin->init() #2 /htdocs/wp-content/plugins/woocommerce/src/Packages.php(64): Automattic\WooCommerce\Admin\Composer\Package::init() #3 /htdocs/wp-content/plugins/woocommerce/src/Packages.php(44): Automattic\WooCommerce\Packages::load_packages() #4 /htdocs/wp-includes/class-wp-hook.php(310): Automattic\WooCommerce\Packages::on_init('') #5 /htdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #6 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /htdocs/wp-settings.php(495): do_action('plugins_loaded') #8 /htdocs/wp-config.php(96): require_once('/htdocs/wp-sett...') #9 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #10 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #11 /htdocs/index.php(17): require('/htdocs/wp-blog...') #12 {main} thrown in /htdocs/wp-content/plugins/woocommerce/src/Admin/Notes/DeprecatedNotes.php on line 20