From 6c3912c0f8f8396068dbb8559057fff469d9260d Mon Sep 17 00:00:00 2001 From: JR Tashjian Date: Wed, 22 Jan 2025 23:22:25 -0500 Subject: [PATCH 1/4] Update blueprint.json --- .wordpress-org/blueprints/blueprint.json | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.wordpress-org/blueprints/blueprint.json b/.wordpress-org/blueprints/blueprint.json index 94fc6ff5..8e437360 100644 --- a/.wordpress-org/blueprints/blueprint.json +++ b/.wordpress-org/blueprints/blueprint.json @@ -1,5 +1,5 @@ { - "landingPage": "/wp-admin/post.php?post=6&action=edit", + "landingPage": "/wp-admin/post.php?post=4&action=edit", "preferredVersions": { "php": "8.0", "wp": "latest" @@ -11,6 +11,11 @@ "networking": true }, "steps": [ + { + "step": "login", + "username": "admin", + "password": "password" + }, { "step": "installPlugin", "pluginZipFile": { @@ -21,10 +26,9 @@ "activate": true } }, - { - "step": "login", - "username": "admin", - "password": "password" - } + { + "step": "runPHP", + "code": " 'omniform','post_status' => 'publish','post_name' => 'contact','post_title' => 'Contact','post_content' => '

If you have any questions or comments, or if you\\'d like to work with me or collaborate on a project, please don\\'t hesitate to get in touch. I look forward to hearing from you!<\/p>

<\/div><\/div>',)); ?>" + } ] -} \ No newline at end of file +} From b8a4e41c1deb6490ac2de38e26f8765d00f37761 Mon Sep 17 00:00:00 2001 From: JR Tashjian Date: Fri, 14 Mar 2025 22:17:52 -0400 Subject: [PATCH 2/4] Fix jsonSerialize return type to array for proper JSON serialization --- includes/Plugin/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Plugin/Response.php b/includes/Plugin/Response.php index f44776e5..cdb52314 100644 --- a/includes/Plugin/Response.php +++ b/includes/Plugin/Response.php @@ -215,7 +215,7 @@ private function flatten( array $data, string $path_prefix = '' ) { * * @return array The response data. */ - public function jsonSerialize(): mixed { + public function jsonSerialize(): array { return array( 'response' => array_filter( $this->request_params, array( $this, 'filter_request_params' ), ARRAY_FILTER_USE_KEY ), 'fields' => array_filter( $this->fields, array( $this, 'filter_request_params' ), ARRAY_FILTER_USE_KEY ), From 8b2bec7248dff4838e7d4f81459e033011ac632a Mon Sep 17 00:00:00 2001 From: JR Tashjian Date: Fri, 14 Mar 2025 23:25:05 -0400 Subject: [PATCH 3/4] Update changelog --- changelog.txt | 8 +++++--- readme.txt | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 22a7b684..b4f4fee7 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ +1.3.2 / 2025-03-14 +================== + + * Fixed a fatal error on PHP 7.4 servers by correcting data serialization [Bug Report](https://wordpress.org/support/topic/getting-a-php-fatal-error-2) + 1.3.0 / 2025-01-22 ================== @@ -15,14 +20,12 @@ * Corrected various issues with form submissions and improved error management. * Fixed inconsistencies in buttons, textareas, and required field indicators. - 1.2.1 / 2024-04-10 ================== * Fixed improper check for success/error message blocks * Resolved array to string conversion warning - 1.2.0 / 2024-04-09 ================== @@ -34,7 +37,6 @@ * Fixed display of form blocks in the Style Book * Allowed form to be rendered while previewing - 1.1.0 / 2024-04-01 ================== diff --git a/readme.txt b/readme.txt index 84f7eaf5..247b0d6f 100644 --- a/readme.txt +++ b/readme.txt @@ -61,6 +61,10 @@ Manual installation method requires downloading the OmniForm plugin and uploadin == Changelog == += 1.3.2 / 2025-03-14 = + + * Fixed a fatal error on PHP 7.4 servers by correcting data serialization [Bug Report](https://wordpress.org/support/topic/getting-a-php-fatal-error-2) + = 1.3.0 / 2025-01-22 = * Introduced multiple form types with customizable submission methods and settings. [#28](https://github.com/jrtashjian/omniform/pull/28) From f51e5f5e492dc151c0350c36e5943d3e77b6bb84 Mon Sep 17 00:00:00 2001 From: JR Tashjian Date: Fri, 14 Mar 2025 23:25:12 -0400 Subject: [PATCH 4/4] 1.3.2 --- includes/Application.php | 2 +- omniform.php | 2 +- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/Application.php b/includes/Application.php index 6b529649..797cdf04 100644 --- a/includes/Application.php +++ b/includes/Application.php @@ -26,7 +26,7 @@ class Application extends Container { * * @var string */ - const VERSION = '1.3.1'; + const VERSION = '1.3.2'; /** * The base path for the plugin. diff --git a/omniform.php b/omniform.php index 17e1cfa8..7cacfd2d 100644 --- a/omniform.php +++ b/omniform.php @@ -3,7 +3,7 @@ * Plugin Name: OmniForm * Plugin URI: https://omniform.io * Description: Easily create and manage custom forms with the block editor, customizable fields, and form submission management for your website. - * Version: 1.3.1 + * Version: 1.3.2 * Requires at least: 6.3 * Requires PHP: 7.4 * Author: JR Tashjian diff --git a/package-lock.json b/package-lock.json index 7515fce9..49dbbc7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "omniform", - "version": "1.3.1", + "version": "1.3.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "omniform", - "version": "1.3.1", + "version": "1.3.2", "license": "GPL-2.0-or-later", "dependencies": { "@wordpress/base-styles": "^5.8.3", diff --git a/package.json b/package.json index 568b5ba5..f6a2379a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "omniform", - "version": "1.3.1", + "version": "1.3.2", "license": "GPL-2.0-or-later", "private": true, "scripts": { diff --git a/readme.txt b/readme.txt index 247b0d6f..ec2bcdef 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: contact form, block editor, form builder, forms, email Requires at least: 6.3 Tested up to: 6.7 Requires PHP: 7.4 -Stable tag: 1.3.1 +Stable tag: 1.3.2 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html