Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

❌ Function utf8_decode() is deprecated #27308

Closed
1 of 6 tasks
jamieburchell opened this issue May 13, 2024 · 1 comment
Closed
1 of 6 tasks

❌ Function utf8_decode() is deprecated #27308

jamieburchell opened this issue May 13, 2024 · 1 comment
Labels

Comments

@jamieburchell
Copy link

jamieburchell commented May 13, 2024

Prerequisites

  • I have searched for similar issues in open and closed tickets and cannot find a duplicate.
  • I have troubleshooted my issue, and it still exists against the latest stable version of Elementor.

Description

PHP Deprecated:  Function utf8_decode() is deprecated in ../app/plugins/elementor-pro/modules/screenshots/module.php on line 33
PHP Stack trace:
PHP   1. {main}() ../index.php:0
PHP   2. require() ../index.php:6
PHP   3. require_once() ../wp/wp-blog-header.php:13
PHP   4. require_once() ../wp/wp-load.php:55
PHP   5. require_once() ../wp-config.php:10
PHP   6. do_action($hook_name = 'init') ../wp/wp-settings.php:695
PHP   7. WP_Hook->do_action($args = [0 => '']) ../wp/wp-includes/plugin.php:517
PHP   8. WP_Hook->apply_filters($value = '', $args = [0 => '']) ../wp/wp-includes/class-wp-hook.php:348
PHP   9. Elementor\Plugin->init('') ../wp/wp-includes/class-wp-hook.php:324
PHP  10. do_action($hook_name = 'elementor/init') ../app/plugins/elementor/includes/plugin.php:658
PHP  11. WP_Hook->do_action($args = [0 => '']) ../wp/wp-includes/plugin.php:517
PHP  12. WP_Hook->apply_filters($value = '', $args = [0 => '']) ../wp/wp-includes/class-wp-hook.php:348
PHP  13. ElementorPro\Plugin->on_elementor_init('') ../wp/wp-includes/class-wp-hook.php:324
PHP  14. ElementorPro\Core\Modules_Manager->__construct() ../app/plugins/elementor-pro/plugin.php:361
PHP  15. Elementor\Core\Base\Module::instance() ../app/plugins/elementor-pro/core/modules-manager.php:93
PHP  16. ElementorPro\Modules\Screenshots\Module->__construct() ../app/plugins/elementor/core/base/module.php:85
PHP  17. ElementorPro\Modules\Screenshots\Module->get_proxy_data($url = 'https://fonts.googleapis.com/css?family=Open Sans:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic') ../app/plugins/elementor-pro/modules/screenshots/module.php:265

Steps to reproduce

  1. PHP 8.2 with Elementor & Pro
  2. Create a new template
  3. Open the Theme Builder / trigger template screenshot generation

Expected behavior

  1. No deprecation

Isolating the problem

  • This bug happens when only the Elementor (and Elementor Pro) plugins are active.
  • This bug happens with the Hello Elementor theme active.
  • I can reproduce this bug consistently by following the steps I described above.

Elementor System Info

Click to reveal
### wp-core ###

version: 6.5.3
site_language: en_GB
user_language: en_GB
timezone: Europe/London
permalink: /%category%/%year%/%monthnum%/%day%/%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: undefined
default_comment_status: undefined
environment_type: production
user_count: 5
dotorg_communication: true

### wp-active-theme ###

name: Hello Elementor (hello-elementor)
version: 3.0.1
author: Elementor Team
author_website: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
parent_theme: none
theme_features: core-block-patterns, widgets-block-editor, menus, post-thumbnails, automatic-feed-links, title-tag, html5, custom-logo, editor-style, align-wide, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider

### wp-themes-inactive (1) ###

Twenty Twenty-Four: version: 1.0, author: the WordPress team (latest version: 1.1)

### wp-mu-plugins (3) ###

Bedrock Autoloader: version: 1.0.3, author: Roots
Disable status tests: version: 1.0.0, author: Roots
Register Theme Directory: version: 1.0.0, author: Roots

### wp-plugins-active (2) ###

Elementor: version: 3.21.5, author: Elementor.com
Elementor Pro: version: 3.21.2, author: Elementor.com

### wp-plugins-inactive (9) ###

Code Snippets: version: 3.6.4, author: Code Snippets Pro
Converter for Media: version: 5.12.5, author: matt plugins
DCO Comment Attachment: version: 2.4.0, author: Denis Yanchevskiy
Pods - Custom Content Types and Fields: version: 3.2.1.1, author: Pods Framework Team
Post Types Order: version: 2.2.1, author: Nsp Code
Rank Math SEO with AI Best SEO Tools: version: 1.0.218, author: Rank Math
Spreaker Shortcode: version: 1.8.1, author: Spreaker
W3 Total Cache: version: 2.7.2, author: BoldGrid
Wordfence Security: version: 7.11.5, author: Wordfence

### wp-media ###

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1691
imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
imagick_version: 3.7.0
file_uploads: 1
post_max_size: 64M
upload_max_filesize: 16M
max_effective_size: 16 MB
max_file_uploads: 20
imagick_limits: 
	imagick::RESOURCETYPE_AREA: 122 MB
	imagick::RESOURCETYPE_DISK: 1073741824
	imagick::RESOURCETYPE_FILE: 768
	imagick::RESOURCETYPE_MAP: 512 MB
	imagick::RESOURCETYPE_MEMORY: 256 MB
	imagick::RESOURCETYPE_THREAD: 1
	imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HEIC, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
gd_version: 2.3.3
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
ghostscript_version: 9.55.0

### wp-server ###

server_architecture: Linux 5.15.146.1-microsoft-standard-WSL2 x86_64
httpd_software: Apache/2.4.52 (Ubuntu)
php_version: 8.2.17 64bit
php_sapi: fpm-fcgi
max_input_variables: 10000
time_limit: 120
memory_limit: 256M
max_input_time: 60
upload_max_filesize: 16M
php_post_max_size: 64M
curl_version: 7.81.0 OpenSSL/3.0.2
suhosin: false
imagick_availability: true
pretty_permalinks: true
current: 2024-05-13T15:32:46+00:00
utc-time: Monday, 13-May-24 15:32:46 UTC
server-time: 2024-05-13T16:32:45+01:00

### wp-database ###

extension: mysqli
server_version: 10.6.16-MariaDB-0ubuntu0.22.04.1
client_version: mysqlnd 8.2.17
max_allowed_packet: 16777216
max_connections: 151

### wp-constants ###

WP_HOME: https://dmtt.local.test
WP_SITEURL: https://dmtt.local.test/wp
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: true
SCRIPT_DEBUG: true
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
mu-plugins: writable

Agreement

  • I agree that my issue may be closed without action if it doesn't meet all the requirements.
@jamieburchell jamieburchell added the status/awaiting_triage Indicates when an Issue, Pull Request, or Discussion awaits to be triaged. label May 13, 2024
@nicholaszein nicholaszein changed the title Function utf8_decode() is deprecated ❌ Function utf8_decode() is deprecated May 24, 2024
@nicholaszein nicholaszein added mod* and removed status/awaiting_triage Indicates when an Issue, Pull Request, or Discussion awaits to be triaged. labels May 24, 2024
@nicholaszein
Copy link
Member

Hi Jamie...

Elementor does not use this function. This is not coming from Elementor... Please, troubleshoot your issue before submitting it here, and make sure to provide the full ELEMENTOR SYSTEM INFO.

Issues that do not follow our requirements in the Bug Report form will be closed without resolution going forward.

Kind regards

@nicholaszein nicholaszein closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2024
@elementor elementor locked and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants