New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃З 馃悶 Media file is not allowed to be uploaded for security reasons within Elementor in Local installation #25077
Comments
Just confirming I've started having the same problem. Issue happens when adding an image to the carousel and slider widgets. Does not happen with the Gallery Widget. Otherwise, uploading images is fine in the media gallery. This happens on my live multisite. Elementor System InfoClick to reveal== Server Environment ==
Operating System: WINNT
Software: Microsoft-IIS/10.0
MySQL version: MySQL Community Server (GPL) v5.7.34
PHP Version: 7.4.33
PHP Memory Limit: 812M
PHP Max Input Vars: 1000
PHP Max Post Size: 32M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected
== WordPress Environment ==
Version: 6.4.3
Site URL: https://xxxxxxxxxxxx.com
Home URL: https://xxxxxxxxxxxx.com
WP Multisite: Yes
Max Upload Size: 10 MB
Memory limit: 64M
Max Memory limit: 812M
Permalink Structure: /%category%/%postname%/
Language: en-NZ
Timezone: Pacific/Auckland
Debug Mode: Inactive
== Theme ==
Name: Astra Child Theme
Version: 1.0.0
Author: Astra Child Theme
Child Theme: Yes
Parent Theme Name: Astra
Parent Theme Version: 4.6.4
Parent Theme Author: Brainstorm Force
== User ==
Role: administrator
WP Profile lang: en_NZ
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0
== Active Plugins ==
Astra Pro
Version: 4.6.3
Author: Brainstorm Force
Disable Author Archives
Version: 1.3.2
Author: freemp
Elementor
Version: 3.19.2
Author: Elementor.com
Elementor Pro
Version: 3.19.2
Author: Elementor.com
Favicon by RealFaviconGenerator
Version: 1.3.28
Author: Philippe Bernard
GuardGiant Brute Force Protection
Version: 2.2.6
Author: GuardGiant Brute Force Protection
Premium Starter Templates
Version: 4.0.9
Author: Brainstorm Force
Prime Slider
Version: 3.11.13
Author: BdThemes
Recent Posts Widget With Thumbnails
Version: 7.1.1
Author: Kybernetik Services
Super Page Cache for Cloudflare
Version: 4.7.5
Author: Optimole
Ultimate Addons for Elementor
Version: 1.36.29
Author: Brainstorm Force
WP Media folder
Version: 5.8.2
Author: Joomunited
WPS Hide Login
Version: 1.9.13.2
Author: WPServeur, NicolasKulka, wpformation
== Network Plugins ==
Activity Log
Version: 2.9.0
Author: Activity Log Team
Admin Menu Editor Pro
Version: 2.23.3
Author: Janis Elsts
AME Branding Add-on
Version: 1.3.7
Author: Janis Elsts
AME Toolbar Editor
Version: 1.4.3
Author: Janis Elsts
Autoremove Attachments
Version: 1.3.1
Author: Polygon Themes
Beehive Analytics
Version: 3.4.11
Author: WPMU DEV
Better Search Replace
Version: 1.4.5
Author: WP Engine
Branda
Version: 3.4.15
Author: WPMU DEV
Code Snippets Pro (Premium)
Version: 3.6.3
Author: Code Snippets Pro
Defender
Version: 4.5.0
Author: WPMU DEV
Imsanity
Version: 2.8.3
Author: Exactly WWW
Mail logging - WP Mail Catcher
Version: 2.1.7
Author: James Ward
Multisite Enhancements
Version: 1.6.1
Author: Frank B眉ltge
NS Cloner - Site Copier
Version: 4.4.2
Author: Never Settle
Optimize Database after Deleting Revisions
Version: 5.2.2
Author: NerdPress
SmartCrawl
Version: 3.9.2
Author: WPMU DEV
User Role Editor Pro
Version: 4.64.1
Author: Vladimir Garagulia
WP-DBManager
Version: 2.80.9
Author: Lester 'GaMerZ' Chan
WP Crontrol
Version: 1.16.1
Author: John Blackbourn & crontributors
Yoast Duplicate Post
Version: 4.5
Author: Enrico Battocchi & Team Yoast
== Elements Usage ==
popup : 1
form : 1
heading : 1
icon : 1
text-editor : 2
wp-page : 3
form : 1
gallery : 1
heading : 2
image-box : 2
slides : 1
social-icons : 1
text-editor : 1
== Settings ==
cpt_support: page, e-landing-page
disable_color_schemes: yes
disable_typography_schemes: yes
allow_tracking: yes
load_fa4_shim: yes
== Features ==
Custom Fonts: 0
Custom Icons: 0
== Integrations ==
google_maps: Active
recaptcha: Active
recaptcha_v3: Active
== Elementor Experiments ==
Improved Asset Loading: Active by default
Improved CSS Loading: Active by default
Inline Font Icons: Inactive by default
Additional Custom Breakpoints: Active by default
admin_menu_rearrangement: Inactive by default
Flexbox Container: Inactive by default
Upgrade Swiper Library: Inactive by default
Grid Container: Inactive by default
Default to New Theme Builder: Active by default
Editor Top Bar: Inactive by default
Optimized Gutenberg Loading: Active by default
Build with AI: Inactive
Landing Pages: Active by default
Nested Elements: Inactive by default
Lazy Load Background Images: Inactive by default
Optimize Image Loading: Active by default
Global Style Guide: Active by default
Page Transitions: Active by default
Notes: Active by default
Display Conditions: Inactive by default
Form Submissions: Inactive
Scroll Snap: Active by default
Menu: Inactive by default
Taxonomy Filter: Inactive by default
== Log ==
Log: showing 20 of 422024-01-31 13:53:41 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.18.3',
'to' => '3.19.0',
)]
2024-01-31 13:53:42 [info] elementor-pro::elementor_pro_updater Started
2024-01-31 13:53:42 [info] Elementor Pro/Upgrades - _on_each_version Start
2024-01-31 13:53:42 [info] Elementor Pro/Upgrades - _on_each_version Finished
2024-01-31 13:53:42 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.18.2',
'to' => '3.19.0',
)]
2024-01-31 13:53:43 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor Pro',
'from' => '3.18.2',
'to' => '3.19.0',
)]
2024-02-07 15:11:04 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.19.0',
'to' => '3.19.1',
)]
2024-02-07 15:11:06 [info] elementor::elementor_updater Started
2024-02-07 15:11:06 [info] Elementor/Upgrades - _on_each_version Start
2024-02-07 15:11:06 [info] Elementor/Upgrades - _on_each_version Finished
2024-02-07 15:11:06 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.19.0',
'to' => '3.19.1',
)]
2024-02-08 15:14:09 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.19.1',
'to' => '3.19.2',
)]
2024-02-08 15:14:11 [info] elementor::elementor_updater Started
2024-02-08 15:14:11 [info] Elementor/Upgrades - _on_each_version Start
2024-02-08 15:14:11 [info] Elementor/Upgrades - _on_each_version Finished
2024-02-08 15:14:11 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.19.1',
'to' => '3.19.2',
)]
2024-02-08 15:14:20 [info] elementor-pro::elementor_pro_updater Started
2024-02-08 15:14:20 [info] Elementor Pro/Upgrades - _on_each_version Start
2024-02-08 15:14:20 [info] Elementor Pro/Upgrades - _on_each_version Finished
2024-02-08 15:14:20 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.19.0',
'to' => '3.19.2',
)]
JS: showing 1 of 1JS: 2024-02-09 04:46:33 [error X 1][../wp-admin/load-scripts.php?c=0&loadchunk_0=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.4.3:2:28760] Cannot read properties of undefined (reading 'value')
== Elementor - Compatibility Tag ==
Elementor Pro: Compatible
Prime Slider: Compatible
Ultimate Addons for Elementor: Compatible
== Elementor Pro - Compatibility Tag ==
Ultimate Addons for Elementor: Compatible
|
i have the same problem with my elementor pro 3.19.2 |
Updating this: I have a second non-multisite instance with the same issue and so I rolled Elementor and Elementor Pro back, first to 3.19.1 where the problem still happened, and then to 3.19.0 where the problem is gone. That may help narrow it down. Note that my sites are all live. This isn't necessarily a local installation issue. |
Yes, I also can upload using Media, however on versions 3.19.1 & 3.19.2 it's impossible to upload from Elementor editor. I guess it has something to do with the latest image upload security fix. |
i don't have that problem you have with your elementor pro 3.19.2 |
also have this problem on local, very annoying |
If it's any help, it works fine for me on arch linux, it doesn't on Windows |
Ok I see. |
Hello I have a similar problem I investigated it a bit and came to the conclusion the problem lied in $is_tmp_name_valid = empty( $file['tmp_name'] ) || realpath( $file['tmp_name'] ) !== false; I verified the file exists physically and through file_exists which returns true $is_tmp_name_valid = empty( $file['tmp_name'] ) || realpath( $file['tmp_name'] ) !== false || file_exists($file['tmp_name']); Don't know if it can help you |
That fix works great kertechs, thanks! |
Appreciate the fix! Thanks! |
Prerequisites
Description
After updating to 3.19.2 I can't upload images in Elementor editor anymore. I'm getting This file is not allowed for security reasons when trying to upload a jpeg image.
I'm using Local by FlyWheel for development. When testing on my hosting it works without any issues. So I guess this is related to a local environment only
Steps to reproduce
Expected behavior
The image is uploaded
Isolating the problem
Elementor System Info
Click to reveal
Agreement
The text was updated successfully, but these errors were encountered: