Bug 244382 - www/wordpress: Add missing php72-json dependency
Summary: www/wordpress: Add missing php72-json dependency
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jochen Neumeister
URL: https://make.wordpress.org/core/2019/...
Keywords: needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2020-02-24 21:47 UTC by bgdnlp
Modified: 2020-03-03 08:52 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (joneum)
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bgdnlp 2020-02-24 21:47:39 UTC
Without php-json extension Wordpress 5.3.2 fails during a fresh install with the following in Nginx error log:


[error] 9437#100173: *5 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function json_decode() in /usr/local/www/wordpress/wp-includes/class-wp-block-parser.php:232
Stack trace:
#0 /usr/local/www/wordpress/wp-includes/blocks.php(521): WP_Block_Parser->parse('email@address.spam')
#1 /usr/local/www/wordpress/wp-includes/blocks.php(274): parse_blocks('email@address.spam')
(...)


Also, with php72-json installed it suggests a password during install and warns against weak passwords. Without php72-json it just asked for the password twice. There are probably more differences later.


This post has more details: https://make.wordpress.org/core/2019/10/15/php-native-json-extension-now-required/
Comment 1 Jochen Neumeister freebsd_committer 2020-03-03 08:52:21 UTC
thanks for the PR. I'll put that in the next wordpress update. Then all wordpress ports have to be adjusted here