athimm
Forum Replies Created
-
Hello,
WPML published a workaround which can be applied via their config file:
https://wpml.org/forums/topic/wpml-alters-attribute-strings-and-breaks-html-and-json/#post-16977237
<wpml-config>
<gutenberg-blocks>
<gutenberg-block type="gutsliders/content-slider" translate="1">
<xpath>//div/h3</xpath>
<xpath>//div/h2</xpath>
<xpath>//div/p</xpath>
<xpath>//div/a</xpath>
<key name="slideItems">
<key name="*">
<key name="panelTitle" />
<key name="subtitle" />
<key name="title" />
<key name="description" />
<key name="btnLabel" />
<key name="sbtnLabel" />
</key>
</key>
</gutenberg-block>
</gutenberg-blocks>
</wpml-config>Hello @binsaifullah,
did you manage to create the workaround you were refering to?
Thanks, Axel.FYI I filed a bug with WPML:
WPML alters attribute strings and breaks HTML (and json) – WPMLHello @binsaifullah & @marcizus,
I see the same issue with WPML. It actually prevents us from going live with languages other than the main one.
This seems to be due to WPML altering data-swiper-options from
data-swiper-options=”{"slidesPerView":1,"spaceBetween":0…
to
data-swiper-options=”{“slidesPerView”:1,”spaceBetween”:0,…
I.e. the quotation is changed.
I am not sure gutslider can fix that.Thank you for the fast turnaround!
The key now registers, but trying to use it fails with error 500. The UI displays
An error occurred
There may be issues with the server or internet connection, or it’s possible that an incorrect API KEY has been specified.debug.log traces out with
[05-Apr-2025 05:03:22 UTC] PHP Warning: Undefined array key "error" in <path to plugins>/aibuddy-openai-chatgpt/src/OpenAi/Api.php on line 229
[05-Apr-2025 05:03:53 UTC] PHP Warning: Undefined array key "error" in <path to plugins>/aibuddy-openai-chatgpt/src/OpenAi/Api.php on line 229
[05-Apr-2025 05:09:36 UTC] PHP Warning: Undefined array key "error" in <path to plugins>/aibuddy-openai-chatgpt/src/OpenAi/Api.php on line 229
[05-Apr-2025 05:09:36 UTC] PHP Warning: Undefined array key "data" in <path to plugins>/aibuddy-openai-chatgpt/src/AiContentGenerator.php on line 81
[05-Apr-2025 05:09:36 UTC] PHP Fatal error: Uncaught TypeError: array_column(): Argument #1 ($array) must be of type array, null given in <path to plugins>/aibuddy-openai-chatgpt/src/AiContentGenerator.php:81
Stack trace:
#0 <path to plugins>/aibuddy-openai-chatgpt/src/AiContentGenerator.php(81): array_column(NULL, 'url')
#1 <path to plugins>/aibuddy-openai-chatgpt/src/Rest.php(500): AiBuddy\AiContentGenerator->exec(Object(AiBuddy\OpenAi\ImageQuery))
#2 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1292): AiBuddy\Rest->generate_images(Object(WP_REST_Request))
#3 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/ai-buddy/v1/ai...', Array, NULL)
#4 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request))
#5 /var/www/html/wp-includes/rest-api.php(449): WP_REST_Server->serve_request('/ai-buddy/v1/ai...')
#6 /var/www/html/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP))
#7 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#8 /var/www/html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#9 /var/www/html/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)
#10 /var/www/html/wp-includes/class-wp.php(813): WP->parse_request('')
#11 /var/www/html/wp-includes/functions.php(1336): WP->main('')
#12 /var/www/html/wp-blog-header.php(16): wp()
#13 /var/www/html/index.php(17): require('/var/www/html/w...')
#14 {main}
thrown in <path to plugins>/aibuddy-openai-chatgpt/src/AiContentGenerator.php on line 81Hello,
I couldn’t check what @yuriinalivaiko wrote, but I assume that is correct.
Nevertheless it is still an issue – when I apply a content restriction I assume that it is fulfilled. Now with two excluding content restrictions where the site is supposed to have two different versions depending on logged in/out status I see both sets of conflicting elements active.
IOW the assumption of this being tied to the authentication method was incorrect, but the issue still stands. If I wanted to treat Admins differently the plugin gives me that option (or if the above is correct it actually does not – admins are forced to be presented everything, whether it makes sense or not.
Hi @yuriinalivaiko,
we do have these users for quite a while, but I think they were created by the plugin as you say.
They have a profile and are shown on UM’s member list page, so I think they are recognized as real users by UM. Their roles are mixed (some contributors, some admins). On the “All users” WP page they all have the status approved and look indistinguishable from non-SAML users.