Ich versuche, per FormBuilder ein Abonnementformular für unseren Newsletter zu implementieren. Das funktioniert leider nicht. Obwohl in den Settings des Formulars anonyme Benutzer erlaubt sind und eine URL gesetzt ist und der Zugriff im Frontend erlaubt, führt ein Zugriffsversuch such einem „kritischen Fehler“ in WordPress. Im CiviCRM-Log sehe ich
2025-10-10 16:28:14+0000 [debug] $API Request Authorization failed = #0 /var/www/html/********/wp-content/plugins/civicrm/civicrm/Civi/API/Kernel.php(148): CRM_Core_Error::backtrace("API Request Authorization failed", TRUE)
#1 /var/www/html/********/wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/AbstractAction.php(251): Civi\API\Kernel->runRequest(Object(Civi\Api4\Action\Entity\Get))
#2 /var/www/html/********/wp-content/plugins/civicrm/civicrm/ext/afform/admin/Civi/AfformAdmin/AfformAdminMeta.php(222): Civi\Api4\Generic\AbstractAction->execute()
#3 /var/www/html/********/wp-content/plugins/civicrm/civicrm/ext/afform/core/Civi/Afform/FormDataModel.php(288): Civi\AfformAdmin\AfformAdminMeta::getMetadata()
#4 /var/www/html/********/wp-content/plugins/civicrm/civicrm/ext/afform/core/Civi/Afform/AfformMetadataInjector.php(124): Civi\Afform\FormDataModel::getInputTypeTemplate("Text")
#5 /var/www/html/********/wp-content/plugins/civicrm/civicrm/ext/afform/core/Civi/Afform/AfformMetadataInjector.php(221): Civi\Afform\AfformMetadataInjector::setFieldMetadata(Object(DOMElement), (Array:12))
#6 /var/www/html/********/wp-content/plugins/civicrm/civicrm/ext/afform/core/Civi/Afform/AfformMetadataInjector.php(75): Civi\Afform\AfformMetadataInjector::fillFieldMetadata("Individual", "create", Object(DOMElement))
#7 [internal function](): Civi\Afform\AfformMetadataInjector::{closure:Civi\Afform\AfformMetadataInjector::preprocess():27}(Object(phpQueryObject), "~/afformStayInformedAboutTheCampaign/afformStayInformedAboutTheCampaign.aff.html")
#8 /var/www/html/********/wp-content/plugins/civicrm/civicrm/Civi/Angular/ChangeSet.php(59): call_user_func(Object(Closure), Object(phpQueryObject), "~/afformStayInformedAboutTheCampaign/afformStayInformedAboutTheCampaign.aff.html")
#9 /var/www/html/********/wp-content/plugins/civicrm/civicrm/Civi/Angular/ChangeSet.php(19): Civi\Angular\ChangeSet::applyHtmlFilters((Array:5), (Array:1))
#10 /var/www/html/********/wp-content/plugins/civicrm/civicrm/Civi/Angular/Manager.php(257): Civi\Angular\ChangeSet::applyResourceFilters((Array:5), "partials", (Array:1))
#11 /var/www/html/********/wp-content/plugins/civicrm/civicrm/Civi/Angular/Page/Modules.php(167): Civi\Angular\Manager->getPartials("afformStayInformedAboutTheCampaign")
#12 /var/www/html/********/wp-content/plugins/civicrm/civicrm/Civi/Angular/Page/Modules.php(84): Civi\Angular\Page\Modules->getMetadata((Array:11), Object(Civi\Angular\Manager))
#13 /var/www/html/********/wp-content/plugins/civicrm/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php(230): Civi\Angular\Page\Modules::buildAngularModules(Object(Civi\Core\Event\GenericHookEvent), "hook_civicrm_buildAsset", Object(Civi\Core\UnoptimizedEventDispatcher))
#14 /var/www/html/********/wp-content/plugins/civicrm/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php(59): Symfony\Component\EventDispatcher\EventDispatcher->callListeners((Array:8), "hook_civicrm_buildAsset", Object(Civi\Core\Event\GenericHookEvent))
#15 /var/www/html/********/wp-content/plugins/civicrm/civicrm/Civi/Core/CiviEventDispatcher.php(263): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Civi\Core\Event\GenericHookEvent), "hook_civicrm_buildAsset")
#16 /var/www/html/********/wp-content/plugins/civicrm/civicrm/CRM/Utils/Hook.php(168): Civi\Core\CiviEventDispatcher->dispatch("hook_civicrm_buildAsset", Object(Civi\Core\Event\GenericHookEvent))
#17 /var/www/html/********/wp-content/plugins/civicrm/civicrm/CRM/Utils/Hook.php(2817): CRM_Utils_Hook->invoke((Array:4), "angular-modules.json", (Array:1), "application/json", NULL, NULL, NULL, "civicrm_buildAsset")
#18 /var/www/html/********/wp-content/plugins/civicrm/civicrm/Civi/Core/AssetBuilder.php(226): CRM_Utils_Hook::buildAsset("angular-modules.json", (Array:1), "application/json", NULL)
#19 /var/www/html/********/wp-content/plugins/civicrm/civicrm/Civi/Core/AssetBuilder.php(198): Civi\Core\AssetBuilder->render("angular-modules.json", (Array:1))
#20 /var/www/html/********/wp-content/plugins/civicrm/civicrm/Civi/Core/AssetBuilder.php(136): Civi\Core\AssetBuilder->build("angular-modules.json", (Array:1))
#21 /var/www/html/********/wp-content/plugins/civicrm/civicrm/Civi/Angular/AngularLoader.php(169): Civi\Core\AssetBuilder->getUrl("angular-modules.json", (Array:1))
#22 /var/www/html/********/wp-content/plugins/civicrm/civicrm/CRM/Core/Resources/CollectionTrait.php(394): Civi\Angular\AngularLoader->{closure:Civi\Angular\AngularLoader::loadAngularResources():146}()
#23 /var/www/html/********/wp-content/plugins/civicrm/civicrm/CRM/Core/Region.php(151): CRM_Core_Region->getSettings()
#24 /var/www/html/********/wp-content/plugins/civicrm/civicrm/CRM/Core/Region.php(166): CRM_Core_Region->{closure:CRM_Core_Region::render():81}((Array:9))
#25 /var/www/html/********/wp-content/plugins/civicrm/civicrm.php(1221): CRM_Core_Region->render("")
#26 /var/www/html/********/wp-includes/class-wp-hook.php(324): CiviCRM_For_WordPress->wp_head("")
#27 /var/www/html/********/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, (Array:1))
#28 /var/www/html/********/wp-includes/plugin.php(517): WP_Hook->do_action((Array:1))
#29 /var/www/html/********/wp-includes/general-template.php(3192): do_action("wp_head")
#30 /var/www/html/********/wp-content/themes/hello-elementor/header.php(23): wp_head()
#31 /var/www/html/********/wp-includes/template.php(810): require_once("/var/www/html/********/wp-content/themes/hello-elementor/header.php")
#32 /var/www/html/********/wp-includes/template.php(745): load_template("/var/www/html/********/wp-content/themes/hello-elementor/header.php", TRUE, (Array:0))
#33 /var/www/html/********/wp-includes/general-template.php(48): locate_template((Array:1), TRUE, TRUE, (Array:0))
#34 /var/www/html/********/wp-content/themes/hello-elementor/index.php(14): get_header()
#35 /var/www/html/********/wp-includes/template-loader.php(106): include("/var/www/html/********/wp-content/themes/hello-elementor/index.php")
#36 /var/www/html/********/wp-blog-header.php(19): require_once("/var/www/html/********/wp-includes/template-loader.php")
#37 /var/www/html/********/index.php(17): require("/var/www/html/********/wp-blog-header.php")
#38 {main}
Es ist also ein Zugriffsrechte-Problem, nur: Welche? Native CiviCRM-Formulare haben dieses Problem nicht.