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
The same meta field is used twice, is this intentional or is another meta field meant to be retrieved? If not this is redundant.
for name in ["rank_math_facebook_image","rank_math_facebook_image"]:
post_og_images.append(post.get("meta", {}).get(name))
Stacktrace:
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.12.8/x64/bin/wp-md", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/click/core.py", line 14[43](https://github.com/xebia/xebia-blog/actions/runs/12963664305/job/36161510439?pr=127#step:9:44), in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/wordpress_markdown_blog_loader/upload.py", line 112, in command
upsert_post(wordpress, blog)
File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/wordpress_markdown_blog_loader/upload.py", line [45](https://github.com/xebia/xebia-blog/actions/runs/12963664305/job/36161510439?pr=127#step:9:46), in upsert_post
if not next(
^^^^^
File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/wordpress_markdown_blog_loader/upload.py", line [46](https://github.com/xebia/xebia-blog/actions/runs/12963664305/job/36161510439?pr=127#step:9:47), in <lambda>
filter(lambda b: b and b.get("url") == og_image.url, post_og_images), None
^^^^^
AttributeError: 'str' object has no attribute 'get'
error_occurred
The text was updated successfully, but these errors were encountered:
Problem:
Xebia blog WordPress uploads fail using the latest release 1.5.5
Reason:
Here a dict object with a URL attribute is expected in the code while a string URL is returned for meta field
rank_math_facebook_image
reference: https://wordpress.org/support/topic/meta-key-names-postmeta-for-title-description-etc/ (only doc I could find...)
Note:
The same meta field is used twice, is this intentional or is another meta field meant to be retrieved? If not this is redundant.
Stacktrace:
The text was updated successfully, but these errors were encountered: