PHP Warning: Undefined variable $serialized_content
-
Hello, I have an issue/conflict with this plugin. Ever since the last update I have been getting this error. This error seems to occur every time I replace a file (usually PDFs).
I host on WPEngine, Genesis Theme using Beaver Builder as a page builder. Its literally removing all the content on the page, with no JS errors and when I open the page in the builder 1/2 of the formatting is removed.
-
` wp-core version: 6.3.1 site_language: en_US user_language: en_US timezone: UTC permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: undefined environment_type: production user_count: 19 dotorg_communication: true wp-paths-sizes wordpress_path: /nas/content/live/ wordpress_size: 1.13 GB (1217416046 bytes) uploads_path: /nas/content/live//wp-content/uploads uploads_size: 3.15 GB (3379922843 bytes) themes_path: /nas/content/live//wp-content/themes themes_size: 27.35 MB (28678337 bytes) plugins_path: /nas/content/live//wp-content/plugins plugins_size: 211.68 MB (221960185 bytes) database_size: 859.14 MB (900874240 bytes) total_size: 5.35 GB (5748851651 bytes) wp-dropins (1) advanced-cache.php: true wp-active-theme name: Genesis Sample (genesis-sample) version: 3.3.0 author: StudioPress author_website: https://www.studiopress.com/ parent_theme: Genesis (genesis) theme_features: core-block-patterns, menus, post-thumbnails, title-tag, automatic-feed-links, body-open, genesis-inpost-layouts, genesis-archive-layouts, genesis-admin-menu, genesis-import-export-menu, genesis-readme-menu, genesis-customizer-theme-settings, genesis-customizer-seo-settings, genesis-auto-updates, genesis-breadcrumbs, genesis-menus, genesis-structural-wraps, widgets, html5, genesis-accessibility, genesis-responsive-viewport, custom-header, custom-background, genesis-after-entry-widget-area, genesis-footer-widgets, widgets-block-editor, fl-theme-builder-headers, fl-theme-builder-footers, fl-theme-builder-parts theme_path: /nas/content/live/**/wp-content/themes/genesis-sample auto_update: Auto-updates are not available for this theme. genesis_recommendations: This theme uses theme supports that are no longer required in Genesis: "genesis-responsive-viewport" theme support can be removed, "404-page" no longer required in "genesis-accessibility" theme support array wp-parent-theme name: Genesis (genesis) version: 3.4.0 author: StudioPress author_website: https://www.studiopress.com/ theme_path: /nas/content/live/**/wp-content/themes/genesis auto_update: Enable update checks at Appearance → Customize → Theme Settings → Updates. wp-themes-inactive (4) Twenty Twenty: version: 2.2, author: the WordPress team, Auto-updates disabled Twenty Twenty-One: version: 1.8, author: the WordPress team, Auto-updates disabled Twenty Twenty-Three: version: 1.2, author: the WordPress team, Auto-updates disabled Twenty Twenty-Two: version: 1.4, author: the WordPress team, Auto-updates disabled wp-mu-plugins (5) Force Strong Passwords - WPE Edition: version: 1.8.0, author: Jason Cosper WP Engine Cache Plugin: version: 1.1.4, author: WP Engine WP Engine Seamless Login Plugin: version: 1.6.1, author: WP Engine WP Engine Security Auditor: version: 1.0.11, author: wpengine WP Engine System: version: 5.0.1, author: WP Engine wp-plugins-active (38) Advanced Custom Fields PRO: version: 6.2.1.1, author: WP Engine, Auto-updates disabled Beaver Builder Plugin (Standard Version): version: 2.7.2, author: The Beaver Builder Team, Auto-updates disabled Beaver Themer: version: 1.4.7.1, author: The Beaver Builder Team, Auto-updates disabled Better Search Replace: version: 1.4.3, author: WP Engine, Auto-updates disabled Breadcrumb NavXT: version: 7.2.0, author: John Havlik, Auto-updates disabled Classic Editor: version: 1.6.3, author: WordPress Contributors, Auto-updates disabled Custom Post Type UI: version: 1.14.0, author: WebDevStudios, Auto-updates disabled Duplicate Page: version: 4.5.3, author: mndpsingh287, Auto-updates disabled Enable Media Replace: version: 4.1.3, author: ShortPixel, Auto-updates disabled Featured Image In Rss Feed: version: 2.3, author: Dinesh Karki, Auto-updates disabled Font Awesome: version: 4.4.0, author: Font Awesome, Auto-updates disabled Get URL Cron: version: 1.4.8, author: Bernhard Kux, Auto-updates disabled Gravity Forms: version: 2.7.13, author: Gravity Forms, Auto-updates disabled Gravity Forms Mailchimp Add-On: version: 5.2.0, author: Gravity Forms, Auto-updates disabled Gravity Forms Signature: version: 2.6.2, author: Rednumber, Auto-updates disabled IndexNow: version: 1.0.1, author: Microsoft Bing, Auto-updates disabled JSON Content Importer: version: 1.5.2, author: Bernhard Kux, Auto-updates disabled JSON Content Importer Pro: version: 3.8.0, author: Bernhard Kux, Auto-updates disabled Media Library Assistant: version: 3.10, author: David Lingren, Auto-updates disabled Media Library Helper by Codexin: version: 1.2.0, author: Codexin Technologies, Auto-updates disabled Meta pixel for WordPress: version: 3.0.13, author: Facebook, Auto-updates disabled Poll Maker: version: 4.7.6, author: Poll Maker Team (latest version: 4.7.7), Auto-updates disabled Popup Maker: version: 1.18.2, author: Popup Maker, Auto-updates disabled PowerPack for Beaver Builder: version: 2.33.1, author: IdeaBox Creations, Auto-updates disabled Redirection: version: 5.3.10, author: John Godley, Auto-updates disabled Regenerate Thumbnails: version: 3.1.6, author: Alex Mills (Viper007Bond), Auto-updates disabled Relevanssi Premium: version: 2.24.2, author: Mikko Saari, Auto-updates disabled Safe SVG: version: 2.2.0, author: 10up, Auto-updates disabled Site Kit by Google: version: 1.109.0, author: Google, Auto-updates disabled Smart Slider 3 Pro: version: 3.5.1.19, author: Nextend, Auto-updates disabled TinyMCE Custom Styles: version: 1.1.5, author: Tim Reeves, Auto-updates disabled TranslatePress - Business: version: 1.3.2, author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Auto-updates disabled TranslatePress - Multilingual: version: 2.6.1, author: Cozmoslabs, Razvan Mocanu, Madalin Ungureanu, Cristophor Hurduban, Auto-updates disabled User Role Editor: version: 4.64, author: Vladimir Garagulya, Auto-updates disabled WP Engine Smart Plugin Manager: version: 5.10.23, author: WP Engine, Auto-updates disabled WP Last Modified Info: version: 1.8.8, author: Sayan Datta, Auto-updates disabled Yoast SEO: version: 21.1, author: Team Yoast (latest version: 21.2), Auto-updates disabled Yoast SEO Premium: version: 21.1, author: Team Yoast, Auto-updates disabled 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: File uploads is turned off post_max_size: 256M upload_max_filesize: 256M max_effective_size: 256 MB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 137 MB imagick::RESOURCETYPE_DISK: 1073741824 imagick::RESOURCETYPE_FILE: 786432 imagick::RESOURCETYPE_MAP: 512 MB imagick::RESOURCETYPE_MEMORY: 256 MB imagick::RESOURCETYPE_THREAD: 1 imagick::RESOURCETYPE_TIME: 9.22337203685E+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.0 gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM ghostscript_version: not available wp-server server_architecture: Linux 5.15.107+ x86_64 httpd_software: nginx php_version: 8.0.30 64bit php_sapi: fpm-fcgi max_input_variables: 10000 time_limit: 3600 memory_limit: 512M admin_memory_limit: 1024M max_input_time: -1 upload_max_filesize: 256M php_post_max_size: 256M curl_version: 7.81.0 OpenSSL/3.0.2 suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: true current: 2023-09-19T16:18:18+00:00 utc-time: Tuesday, 19-Sep-23 16:18:18 UTC server-time: 2023-09-19T16:18:18+00:00 wp-database extension: mysqli server_version: 5.7.42-46-log client_version: mysqlnd 8.0.30 max_allowed_packet: 16777216 max_connections: 500 wp-constants WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /nas/content/live//wp-content WP_PLUGIN_DIR: /nas/content/live//wp-content/plugins WP_MEMORY_LIMIT: 512M WP_MAX_MEMORY_LIMIT: 1024M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: Undefined WP_DEVELOPMENT_MODE: undefined DB_CHARSET: utf8 DB_COLLATE: utf8_unicode_ci wp-filesystem wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable genesis update: 1 blog_title: text site_layout: full-width-content entry_meta_before_content: [post_date] by [post_author_posts_link] [post_comments] [post_edit] entry_meta_after_content: [post_categories] [post_tags] content_archive: full image_size: featured-image image_alignment: aligncenter posts_nav: numeric header_scripts: footer_scripts: theme_version: 3.3.2 db_version: 3301 first_version: 3.3.2 blog_cat_num: 6 google-site-kit version: 1.109.0 php_version: 8.0.30 wp_version: 6.3.1 reference_url: https://.wpengine.com amp_mode: no site_status: connected-site user_status: authenticated verification_status: verified-file connected_user_count: 1 active_modules: site-verification, search-console, analytics, analytics-4, tagmanager recoverable_modules: none required_scopes: openid: ? https://www.googleapis.com/auth/userinfo.profile: ? https://www.googleapis.com/auth/userinfo.email: ? https://www.googleapis.com/auth/siteverification: ? https://www.googleapis.com/auth/webmasters: ? https://www.googleapis.com/auth/analytics.readonly: ? https://www.googleapis.com/auth/tagmanager.readonly: ? capabilities: googlesitekit_authenticate: ? googlesitekit_setup: ? googlesitekit_view_posts_insights: ? googlesitekit_view_dashboard: ? googlesitekit_manage_options: ? googlesitekit_update_plugins: ? googlesitekit_view_splash: ? googlesitekit_view_authenticated_dashboard: ? googlesitekit_view_wp_dashboard_widget: ? googlesitekit_view_admin_bar_menu: ? googlesitekit_view_shared_dashboard: ? googlesitekit_read_shared_module_data::["search-console"]: ? googlesitekit_read_shared_module_data::["analytics-4"]: ? googlesitekit_manage_module_sharing_options::["search-console"]: ? googlesitekit_manage_module_sharing_options::["analytics-4"]: ? googlesitekit_delegate_module_sharing_management::["search-console"]: ? googlesitekit_delegate_module_sharing_management::["analytics-4"]: ? enabled_features: adsenseSetupV2: ? enhancedMeasurement: ? ga4Reporting: ? gm3Components: ? userInput: ? search-console_shared_roles: none search-console_management: owner analytics-4_shared_roles: none analytics-4_management: owner search_console_property: https://.wpengine.com/ analytics_dashboard_view: google-analytics-4 analytics_account_id: 5972???? analytics_property_id: none analytics_profile_id: none analytics_use_snippet: no analytics_4_property_id: 3392845?? analytics_4_web_data_stream_id: 4179?????? analytics_4_measurement_id: G-PD???????? analytics_4_use_snippet: yes tagmanager_account_id: 6002?????? tagmanager_container_id: GTM-PG5???? tagmanager_amp_container_id: none tagmanager_use_snippet: yes
Hi sky4est,
Can you please tell us what options you used when replacing? A screenshot with the settings you used when replacing would be best.
Thanks, I look forward to hearing from you!
For what its worth, it fails out in the shortpixel Replacer class (method replaceContent) while looping over the post meta from beaver builder (meta_keys
_fl_builder_data
and_fl_builder_draft
) which is serialized. It ends up passing back corrupted serialization like this: https://www.dropbox.com/scl/fi/mjwlmq0zz1lt5msh4izec/Screenshot-2023-09-20-at-1.40.34-PM.png?rlkey=ruijp5fytc1pz5n46r123ct5i&dl=0Since this is could lead to a significant amount of data loss is it possible to exclude those meta_keys from this process with a filter or anything until this issue is resolved?
Also @sky4est, I found that in beaver builder you are able to restore previous versions of the page and it will restore the modules for normal editing
-
This reply was modified 1 year, 2 months ago by
Nate Reist. Reason: Spelling correction and more data
@natereist thank you! I honestly would love to know how you figured that out so specifically. Thank you for the tips about the version restore. It was very good to learn that WPEngine disables this by default ??
I’m also on WP Engine using Beaver Builder and just recently started having issues when replacing media.
Same setting as above and the same corrupted data.
Is there a solution yet?
Thanks,
Hello all and thanks for raising this to our awareness. The reason why this isn’t working anymore comes from a security patch that was applied in the latest version of our plugin. In other words, when the replacement happens at the DB level, the Beaver Builder runtime isn’t loaded and because of this the class name becomes incomplete and results in the warning and the corrupted data.
While we’re working on an integration with this plugin (which depends on the BB plugin code too), you can find below a version that prevents the corruption of data, but will only do replacements by keeping the same file name. If you choose the other option, it will not update the content to avoid data loss:
https://shortpixel.com/downloads/enable-media-replace-4.1.4-DEV01.zip
Thanks for your patience while we’re trying to find a solution for this situation that doesn’t open again a potential security issue when doing the replace.
Hello again,
I believe we managed to find a solution that should work properly now with all replacement options, without jeopardizing the plugin security. Here’s where you can download a version that includes the fix:
https://shortpixel.com/downloads/enable-media-replace-4.1.4-DEV02.zip
I would appreciate your feedback on this last version, it would help us release it faster. Thank you!
Thank you @petredobrescu this plugin is a very useful one and we thank you for supporting it.
Thank you!
Confirmed fixed the issue on our testing server.
Appears to work here as well
It appears to be working with our configurations, also. Thank you,
Confirmed it works in local testing for me as well! When do you anticipate a public release of this patch?
-
This reply was modified 1 year, 2 months ago by
- The topic ‘PHP Warning: Undefined variable $serialized_content’ is closed to new replies.