You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is on a self-hosted ElasticSearch install which was previously running 6.8, which was upgraded to 7.10.
When running ./wp --allow-root --url=<example.com> elasticpress sync --force --setup --show-errors --yes, the following error message shows in the log:
Warning: Function pcntl_signal not available. Make sure to run `wp elasticpress clear-sync` in case the process is killed.
Sync cleared.
Success: Indexing posts…
Sync cleared.
Error: Mapping failed: Failed to parse mapping [_doc]: Dynamic template syntax error. An array of named objects is expected.
Mapping has failed, which will cause ElasticPress search results to be incorrect. Please click `Delete all Data and Start a Fresh Sync` to retry mapping.
If I go to Dashboard > ElasticPress > Sync, and click the "Sync" button, it fails immediately:
2024-11-19 11:06:46
Starting sync…
2024-11-19 11:06:50
Indexing posts…
2024-11-19 11:06:51
Mapping failed: Failed to parse mapping [_doc]: Dynamic template syntax error. An array of named objects is expected.
Mapping has failed, which will cause ElasticPress search results to be incorrect. Please click `Delete all Data and Start a Fresh Sync` to retry mapping.
2024-11-19 11:06:51
Sync failed
Then ElasticPress offers the "Delete all Data and Start a Fresh Sync" button. Clicking the "Sync" button with that checked will cause the sync to run again, which results in the same error:
2024-11-19 11:06:57
Starting sync…
2024-11-19 11:07:00
Indexing posts…
2024-11-19 11:07:01
Mapping failed: Failed to parse mapping [_doc]: Dynamic template syntax error. An array of named objects is expected.
Mapping has failed, which will cause ElasticPress search results to be incorrect. Please click `Delete all Data and Start a Fresh Sync` to retry mapping.
2024-11-19 11:07:01
Sync failed
Steps to Reproduce
From the server, run ./wp --allow-root --url=<example.com> elasticpress sync --force --setup --show-errors --yes
Describe the bug
This is on a self-hosted ElasticSearch install which was previously running
6.8
, which was upgraded to7.10
.When running
./wp --allow-root --url=<example.com> elasticpress sync --force --setup --show-errors --yes
, the following error message shows in the log:If I go to Dashboard > ElasticPress > Sync, and click the "Sync" button, it fails immediately:
Then ElasticPress offers the "Delete all Data and Start a Fresh Sync" button. Clicking the "Sync" button with that checked will cause the sync to run again, which results in the same error:
Steps to Reproduce
./wp --allow-root --url=<example.com> elasticpress sync --force --setup --show-errors --yes
Screenshots, screen recording, code snippet
No response
Environment information
WordPress and ElasticPress information
Failed Queries
https://stvp-staging.tcg.stanford.edu/wp-json/elasticpress/v1/sync?include&indexables&put_mapping=true&post_type&trigger=manual (2024-11-19 14:07:01)
error: Dynamic template syntax error. An array of named objects is expected.
recommended_solution: We did not recognize this error. Please consider opening a GitHub Issue so we can add it to our list of supported errors.
es_req: PUT https://vpc-stvp-es-stag-zysgekl2jyrhb42bal64o3pzta.us-west-2.es.amazonaws.com/stvpstagingtcgstanfordedu-post-3
request_id: 12717d71de2a4fd2b2788ddc1b18a804
query_time: 64.836025238037
wp_args: array (
)
status_code: 400
body:
WordPress
WordPress Environment
wp_version: 6.7
home_url: https://stvp-staging.tcg.stanford.edu
site_url: https://stvp-staging.tcg.stanford.edu
is_multisite: true
theme: STVP Theme (1.0)
plugins: 10up Experience (1.12.1), 10up UI Kit (1.2.4), Advanced Custom Fields (6.3.11), BDC Migration (0.1.0), Column Shortcodes (1.0.1), Custom Post Type UI (1.17.1), ElasticPress (5.1.3), ElasticPress Debugging Add-On (3.1.0), Extra Menu Item Attributes (0.1), FileBird Lite (6.4.2), Gravity Forms (2.8.18), Gravity Forms Digest Bulk Reports (0.3.0), Gravity Forms Directory (4.2), Gravity Forms Mailchimp Add-On (5.5.0), Gravity Forms Placeholder Add-On (1.1.0), Gravity Forms Signature Add-On (4.6.0), Gravity Forms Survey Add-On (4.1.0), Gravity Forms Zapier Add-On (4.3.0), Public Post Preview (2.10.0), Query Monitor (3.16.4), Rewrite Rules Inspector (1.4.0), S3 Uploads (3.0.3), Safe Redirect Manager (2.2.0), Sign-up Sheets (2.2.14), STVP Featured Image Extended (999.000), STVP Shortcodes (1.0), wpautop-control (1.6), Yoast Duplicate Post (4.5), and Yoast SEO (23.8)
revisions: all
Server Environment
php_version: 8.3.13
memory_limit: 64M
timeout: 30
Indexable Content
Stanford Technology Ventures Program — https://stvp-staging.tcg.stanford.edu
post_count: 192
page_count: 137
dlssus_sheet_count: 0
dlssus_task_count: 0
dlssus_signup_count: 0
user-collection_count: 0
video-podcast-feed_count: 0
team_member_count: 194
student_count: 528
publication_count: 11
event_count: 84
press_count: 35
hpb_count: 4
student_activity_count: 59
sa_test_count: 0
news_count: 200
doc_content_count: 11
course_count: 68
student_activity_ins_count: 27
persona_count: 4
article_count: 202
video_count: 1,877
podcast_count: 541
snippet_count: 2,183
contributor_count: 687
collection_count: 0
post_meta_keys: 0
page_meta_keys: 1
dlssus_sheet_meta_keys: 0
dlssus_task_meta_keys: 0
dlssus_signup_meta_keys: 0
user-collection_meta_keys: 0
video-podcast-feed_meta_keys: 0
team_member_meta_keys: 0
student_meta_keys: 0
publication_meta_keys: 1
event_meta_keys: 0
press_meta_keys: 0
hpb_meta_keys: 0
student_activity_meta_keys: 0
sa_test_meta_keys: 0
news_meta_keys: 0
doc_content_meta_keys: 1
course_meta_keys: 0
student_activity_ins_meta_keys: 0
persona_meta_keys: 0
article_meta_keys: 0
video_meta_keys: 0
podcast_meta_keys: 0
snippet_meta_keys: 0
contributor_meta_keys: 0
collection_meta_keys: 0
total-all-post-types: 1
distinct-meta-keys: ep_exclude_from_search
ElasticPress
Settings
host: https://vpc-stvp-es-stag-zysgekl2jyrhb42bal64o3pzta.us-west-2.es.amazonaws.com/
index_prefix:
language: site-default
per_page: 350
network_active: false
Timeouts
request_timeout: 5
index_document_timeout: 15
bulk_request_timeout: 30
Elasticsearch Indices
stvpstagingtcgstanfordedu-post-3
0: true
Last Sync
2024/11/19 2:06:58 pm
method: WP Dashboard
is_full_sync: Yes
end_date_time: 2024/11/19 2:07:01 pm
total_time: 0 hours, 0 minutes, 4 seconds
total: 0
synced: 0
skipped: 0
failed: 0
errors: array (
0 =>
array (
'root_cause' =>
array (
0 =>
array (
'type' => 'mapper_parsing_exception',
'reason' => 'Dynamic template syntax error. An array of named objects is expected.',
),
),
'type' => 'mapper_parsing_exception',
'reason' => 'Failed to parse mapping [_doc]: Dynamic template syntax error. An array of named objects is expected.',
'caused_by' =>
array (
'type' => 'mapper_parsing_exception',
'reason' => 'Dynamic template syntax error. An array of named objects is expected.',
),
),
)
trigger: manual
final_status: failed
Feature Settings
Custom Search Results
active: true
force_inactive: false
Filters
active: true
force_inactive: false
match_type: all
Post Search
active: true
decaying_enabled: 1
force_inactive: false
highlight_enabled: 0
highlight_excerpt: 0
highlight_tag: mark
synonyms_editor_mode: simple
synonyms:
weighting:
Related Posts
active: true
force_inactive: false
Code of Conduct
The text was updated successfully, but these errors were encountered: