elementor / elementor/elementor
🐞 Bug report: Elementor incorrectly interprets the PHP memory limit when set to -1
- Dominant language
- PHP
- Stars
- 7.1k
- Forks
- 1.6k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 193
Description
### Prerequisites
- [X] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- [X] The issue still exists against the latest stable version of Elementor.
### Description
The Elementor >> System Info page raises a warning about a low memory limit when the PHP Memory Limit is set to -1. According to the PHP manual, the -1 setting indicates that there is no limit, and PHP will be able to use the memory available to the server: https://www.php.net/manual/en/ini.core.php#ini.memory-limit.
WordPress is happy with -1, and does not display warnings on the Site Health page.
### Steps to reproduce
Set the PHP Memory limit in a php.ini file to -1. Open the Elementor >> System Info page.
### Isolating the problem
- [X] This bug happens with only Elementor plugin active (and Elementor Pro).
- [X] This bug happens with a Blank WordPress theme active ([Hello theme](https://wordpress.org/themes/hello-elementor/)).
- [X] I can reproduce this bug consistently using the steps above.
### System Info
== Server Environment ==
Operating System: Linux
Software: Apache
MySQL version: MySQL Community Server (GPL) v5.7.36-39
PHP Version: 7.4.28
PHP Memory Limit: -1
PHP Max Input Vars: 1000
PHP Max Post Size: 20M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected
== WordPress Environment ==
Version: 5.9.3
WP Multisite: No
Max Upload Size: 20 MB
Memory limit: 40M
Max Memory limit: -1
Permalink Structure: /%year%/%monthnum%/%day%/%postname%/
Language: en-US
Timezone: 0
Debug Mode: Inactive
== Theme ==
Name: Twenty Twenty-Two
Version: 1.1
Author: the WordPress team
Child Theme: No
== User ==
Role: administrator
WP Profile lang: en_US
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36
== Active Plugins ==
Elementor
Version: 3.6.5
Author: Elementor.com
Server-Side Cache AutoPurge
Version: 1.0.1
Author:
WooCommerce
Version: 6.4.1
Author: Automattic
== Elements Usage ==
== Elementor Experiments ==
Optimized DOM Output: Active by default
Improved Asset Loading: Active by default
Improved CSS Loading: Active by default
Inline Font Icons: Inactive by default
Accessibility Improvements: Active by default
Import Export Template Kit: Active by default
Additional Custom Breakpoints: Active by default
Hide native WordPress widgets from search results: Active by default
: Inactive by default
Flexbox Container: Inactive by default
Landing Pages: Active by default
Color Sampler: Active by default
Favorite Widgets: Active by default
Admin Top Bar: Active by default
== Log ==
PHP: showing 1 of 1PHP: 2022-05-10 09:21:07 [notice X 6][/home/www/wpinstall/wp-content/plugins/elementor/core/experiments/experiments-reporter.php::89] Undefined index: title [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
== Elementor - Compatibility Tag ==
Contributor guide
Assessment
This issue has not been assessed yet.