Fix: Avoid session_start() warning on PHP-FPM / cPanel environments#95
Closed
El-SaMa wants to merge 7 commits intoPostiDigital:developmentfrom
Closed
Conversation
Development v3.10.3
Development v3.10.4
Bumps [cookie](https://github.com/jshttp/cookie) to 0.7.1 and updates ancestor dependency [@wordpress/scripts](https://github.com/WordPress/gutenberg/tree/HEAD/packages/scripts). These dependencies need to be updated together. Updates `cookie` from 0.4.2 to 0.7.1 - [Release notes](https://github.com/jshttp/cookie/releases) - [Commits](jshttp/cookie@v0.4.2...v0.7.1) Updates `@wordpress/scripts` from 26.19.0 to 30.7.0 - [Release notes](https://github.com/WordPress/gutenberg/releases) - [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/scripts/CHANGELOG.md) - [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/scripts@30.7.0/packages/scripts) --- updated-dependencies: - dependency-name: cookie dependency-type: indirect - dependency-name: "@wordpress/scripts" dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
…nd_yarn/blocks-builder/multi-9af3a60bb5 Bump cookie and @wordpress/scripts in /blocks-builder
Development v3.10.5
Development v3.10.6
- Checks if session is not already active before calling session_start() - Verifies that session.save_path exists, and sets a fallback path if missing - Prevents session_start() warnings on EA-PHP 8.x with PHP-FPM and CloudLinux - Improves compatibility in shared hosting environments commonly used with cPanel Tested on EA-PHP 8.2 with WordPress + WooCommerce
cb18eb7 to
a83600b
Compare
Contributor
|
I think it's better to use transient instead of session. |
Contributor
|
In PR #137 changed to use Wordpress "transient" instead of session, which is not affected by the hosting environment. |
Contributor
|
Fix done in PR #137. This one is closed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tested on EA-PHP 8.2 with WordPress + WooCommerce