changes to json decoding can not #1

Open
opened 2025-05-29 12:03:51 +00:00 by zzkt · 1 comment
zzkt commented 2025-05-29 12:03:51 +00:00 (Migrated from codeberg.org)

Looks like the compatibility changes a902c62e51 to json decoding are causing PHP errors.

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /var/www/libarynth/dokuwiki/lib/plugins/oembed/syntax.php:157

probably near... 35a5e2ab30/syntax.php (L150) or 35a5e2ab30/syntax.php (L157)

(imported from https://github.com/zzkt/dokuwiki-oembed/issues/1)

Looks like the compatibility changes https://github.com/zzkt/dokuwiki-oembed/commit/a902c62e510814e5c66bd0284fbf9e86a8479ff2 to json decoding are causing PHP errors. AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /var/www/libarynth/dokuwiki/lib/plugins/oembed/syntax.php:157 probably near... https://github.com/zzkt/dokuwiki-oembed/blob/35a5e2ab30cf12ad8e93636a4fa970e598dd65f1/syntax.php#L150 or https://github.com/zzkt/dokuwiki-oembed/blob/35a5e2ab30cf12ad8e93636a4fa970e598dd65f1/syntax.php#L157 (imported from https://github.com/zzkt/dokuwiki-oembed/issues/1)
zzkt commented 2025-05-29 12:04:05 +00:00 (Migrated from codeberg.org)

specifically youtube embeds

e.g. {{>http://www.youtube.com/watch?v=zgA4GzRsldI}}

specifically youtube embeds e.g. `{{>http://www.youtube.com/watch?v=zgA4GzRsldI}}`
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: zzkt/dokuwiki-oembed#1
No description provided.