PHP Notice: Undefined index: margin_tablet
-
A PHP warning about undefined array key is shown after editing any page with Elementor. After a page refresh, the error notice disappears.
Steps to reproduce:
- Edit any page
- Publish the page
- Immediately navigate to the edited page
- The warning will appear right after the HTML tag
- It disappears after page refresh
I can reproduce this bug consistently following the steps above.
Error message:
PHP Notice: Undefined index: margin_tablet in /public_html/wp-content/plugins/elementor/core/files/css/base.php on line 776
PHP Notice: Undefined index: margin_mobile in /public_html/wp-content/plugins/elementor/core/files/css/base.php on line 776
PHP Notice: Undefined index: padding_tablet in /public_html/wp-content/plugins/elementor/core/files/css/base.php on line 776
PHP Notice: Undefined index: padding_mobile in /public_html/wp-content/plugins/elementor/core/files/css/base.php on line 776The error happens with the Hello Theme (only Elementor v3.15.1 and ElementsKit Lite v2.9.0 plugins enabled) on PHP 7.4 and PHP 8.
-
I am facing the same issue mostly on mobile device, I am using astra free theme with elementor pagebuilder.
It’s probably conflict with another plugins.
you can check via following steps.
To make sure the issue is not being caused by Elementor and isolate this conflict please try these?Troubleshooting steps:???Make a Backup of your website before proceeding, and if possible do it in a staging environment!
- ???Isolate the problem:?Deactivate all of your plugins (except Elementor/Pro), and temporarily change your WordPress theme to?Hello theme. If this solves the problem, gradually activate your plugins and theme one by one, until you spot the conflicting plugin or theme.
- ??? Clear the cache: Clear all levels of cache, including but not limited to Server cache, WordPress (optimization plugin) cache, CDN cache, and Browser cache. Also, try visiting the front page of your website in incognito/private mode.
- ???Meet the Requirements?Make sure the server resources allocated to your site and WordPress installation meet our?Requirements.
- To check this information go to your WordPress
Dashboard
>Elementor
>System info
learn how to copy it here. We can’t accept issues without it.
- To check this information go to your WordPress
Hi @bobcost and @ferosek23,
Thanks for reaching out to us.
Most of the time this kind of issue happens due to caches or third-party theme/plugin conflicts. Will you please check by clearing the caches completely from your site and browser?
If that doesn’t solve the issue, you need to run a conflict test on your site to detect what actually causes the problem. To do so, first of all, switch your theme to a default theme like 2020 or Hello Elementor and check if the issue is still persists. If that solves your issue, that means the issue is related to the theme you are using. You need to consult with the Theme Author Regarding this matter. Hopefully, they can help you to solve the problem.
If switching to the default theme also doesn’t help, then please check if there are any conflicts between the installed plugin. To troubleshoot the issue, please deactivate other plugins except for Elementor and ElementsKit and check if the issue still persists. If that solves your problem, activate the plugins one by one, and continue checking the issue. In this way, you will be able to detect which one causes the problem.
Let me know if that helps or if you need any further assistance. I will be happy to assist you.
Regards,
Amir
I am facing the same issue, I am using hello theme with elementor pagebuilder.
I followed the Troubleshooting steps and it still persists the problem
Hi @georjed,
Hope you are doing fine and extremely sorry for the late response. Could you please share a video of the issue and also share your your website’s system info from Elementor > System Info for further investigation.
Waiting for your response.
Regards,
AmirHello, thank you very much for your response, I don’t know what you mean by making a video of the problem, since it is not a topic that is displayed on my site, however I have these logs that are constantly being generated in my system which are need to debug.
[13-Sep-2023 07:15:09 UTC] PHP Warning: Undefined array key “data” in /home/blendodo/public_html/wp-content/plugins/elementor/core/common/modules/ajax/module.php on line 175
[14-Sep-2023 05:19:59 UTC] PHP Warning: Undefined array key “margin_tablet” in /home/blendodo/public_html/wp-content/plugins/elementor/core/files/css/base.php on line 776[14-Sep-2023 05:19:59 UTC] PHP Warning: Undefined array key “margin_mobile” in /home/blendodo/public_html/wp-content/plugins/elementor/core/files/css/base.php on line 776[14-Sep-2023 05:19:59 UTC] PHP Warning: Undefined array key “padding_tablet” in /home/blendodo/public_html/wp-content/plugins/elementor/core/files/css/base.php on line 776[14-Sep-2023 05:19:59 UTC] PHP Warning: Undefined array key “padding_mobile” in /home/blendodo/public_html/wp-content/plugins/elementor/core/files/css/base.php on line 776
Site Info:
== Server Environment == Operating System: Linux Software: LiteSpeed MySQL version: MariaDB Server v10.6.15 PHP Version: 8.0.30 PHP Memory Limit: 512M PHP Max Input Vars: 11000 PHP Max Post Size: 512M GD Installed: Yes ZIP Installed: Yes Write Permissions: All right Elementor Library: Connected == WordPress Environment == Version: 6.3.1 Site URL: https://www.blendodontologia.cl Home URL: https://www.blendodontologia.cl WP Multisite: No Max Upload Size: 512 MB Memory limit: 40M Max Memory limit: 512M Permalink Structure: /%postname%/ Language: es Timezone: -4 Admin Email: [email protected] Debug Mode: Inactive == Theme == Name: Hello Elementor Version: 2.8.1 Author: Elementor Team Child Theme: No == User == Role: administrator WP Profile lang: es_ES User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 == Active Plugins == Advanced Database Cleaner PRO Version: 3.2.2 Author: Younes JFR. All-in-One WP Migration Version: 7.78 Author: ServMask All In One WP Security Version: 5.2.4 Author: All In One WP Security & Firewall Team Elementor Version: 3.15.2 Author: Elementor.com Elementor Pro Version: 3.15.1 Author: Elementor.com ElementsKit Lite Version: 2.9.2 Author: Wpmet FlowPaper Version: 2.0.4 Author: Devaldi Ltd Imagify Version: 2.1.1 Author: Imagify – Optimize Images & Convert WebP Joinchat Version: 5.0.9 Author: Creame LiteSpeed Cache Version: 5.6 Author: LiteSpeed Technologies Loco Translate Version: 2.6.6 Author: Tim Whitlock Meta pixel for WordPress Version: 3.0.13 Author: Facebook Performance Lab Version: 2.6.0 Author: WordPress Performance Team Plugin for Google Reviews Version: 2.8 Author: RichPlugins <[email protected]> Rank Math SEO Version: 1.0.201.1 Author: Rank Math Site Kit by Google Version: 1.109.0 Author: Google Slider Revolution Version: 6.6.14 Author: ThemePunch Tracking Code Manager Version: 2.0.16 Author: Data443 White Label Version: 2.9.0 Author: WhiteWP.com WPCode Lite Version: 2.1.2 Author: WPCode WP Crontrol Version: 1.15.3 Author: John Blackbourn & crontributors WP Mail Log Version: 1.1.2 Author: WPVibes Yoast Duplicate Post Version: 4.5 Author: Enrico Battocchi & Team Yoast == Caracteristicas == Custom Fonts: 0 Custom Icons: 0 == Integraciones == == Experimentos de Elementor == Salida del DOM optimizada: Activo por defecto Carga de recursos mejorada: Activo por defecto Carga de CSS mejorada: Activo por defecto Fuentes de iconos integradas: Inactivo por defecto Puntos de ruptura personalizados adicionales: Activo por defecto admin_menu_rearrangement: Inactivo por defecto Contenedor Flexbox: Inactivo por defecto Actualizar la librería Swiper: Inactivo por defecto Contenedor Grid: Inactivo por defecto Por defecto, el nuevo constructor de temas: Activo por defecto Cabecera y pie de página del tema Hello: Activo por defecto Barra superior del editor: Inactivo por defecto Páginas de destino: Activo por defecto Elementos anidados: Inactivo por defecto Carga diferida de imágenes de fondo: Inactivo por defecto Guía de estilo global: Inactivo por defecto Transiciones de páginas: Activo por defecto Notas: Activo por defecto Bucle: Activo por defecto Envíos de formulario: Activo por defecto Ajuste de scroll: Activo por defecto Menú: Inactivo por defecto Taxonomy Filter: Inactivo por defecto == Registro == Log: showing 20 of 352023-06-26 10:56:41 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.13.2', 'to' => '3.14.1', )] 2023-06-26 10:56:41 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.13.2', 'to' => '3.14.1', )] 2023-08-01 00:50:49 [info] elementor-pro::elementor_pro_updater Started 2023-08-01 00:50:49 [info] Elementor Pro/Upgrades - _on_each_version Start 2023-08-01 00:50:49 [info] Elementor Pro/Upgrades - _on_each_version Finished 2023-08-01 00:50:49 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.14.1', 'to' => '3.15.0', )] 2023-08-01 00:50:49 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.14.1', 'to' => '3.15.0', )] 2023-08-01 00:51:28 [info] elementor::elementor_updater Started 2023-08-01 00:51:28 [info] Elementor/Upgrades - _on_each_version Start 2023-08-01 00:51:28 [info] Elementor/Upgrades - _on_each_version Finished 2023-08-01 00:51:28 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '3.14.1', 'to' => '3.15.0', )] 2023-08-11 09:31:13 [info] elementor::elementor_updater Started 2023-08-11 09:31:13 [info] Elementor/Upgrades - _on_each_version Start 2023-08-11 09:31:13 [info] Elementor/Upgrades - _on_each_version Finished 2023-08-11 09:31:13 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '3.15.0', 'to' => '3.15.2', )] 2023-08-11 09:31:13 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor', 'from' => '3.15.0', 'to' => '3.15.2', )] 2023-08-11 21:35:52 [info] elementor-pro::elementor_pro_updater Started 2023-08-11 21:35:52 [info] Elementor Pro/Upgrades - _on_each_version Start 2023-08-11 21:35:52 [info] Elementor Pro/Upgrades - _on_each_version Finished 2023-08-11 21:35:52 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.15.0', 'to' => '3.15.1', )] PHP: showing 3 of 3PHP: 2023-06-05 21:46:02 [warning X 2][/home/blendodo/public_html/wp-content/plugins/elementor/modules/history/revisions-manager.php::363] Trying to access array offset on value of type null [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2023-06-06 11:26:48 [warning X 6][/home/blendodo/public_html/wp-content/plugins/elementor/core/common/modules/ajax/module.php::175] Undefined array key "data" [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2023-08-01 00:53:06 [warning X 235][/home/blendodo/public_html/wp-content/plugins/elementor/core/files/css/base.php::776] Undefined array key "padding_mobile" [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] JS: showing 4 of 4JS: 2023-07-02 04:54:27 [error X 8][https://www.blendodontologia.cl/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.2.2:2:31823] Cannot read properties of undefined (reading 'value') JS: 2023-07-02 15:38:48 [error X 3][https://www.blendodontologia.cl/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.14.1:3:1113620] Cannot read properties of null (reading 'getBoundingClientRect') JS: 2023-07-02 17:12:06 [error X 16][https://www.blendodontologia.cl/wp-content/plugins/elementor/assets/js/common-modules.min.js?ver=3.14.1:2:55595] Model.isValidChild() should be implemented, please provide 'isValidChild' functionality. JS: 2023-08-16 04:20:43 [error X 1][https://www.blendodontologia.cl/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.15.2:3:917015] elementorFrontend is not defined == Elementor - Compatibility Tag == Elementor Pro: Compatible == Elementor Pro - Compatibility Tag ==
Hi @georjed,
Currently, we are checking the issue for you. Please wait and we will get back to you with an update soon. Till then stay with us.
Regards,
AmirHi @georjed,
Hope you are doing fine. The issue has been fixed. Please update the Elementor plugin with the latest version( 3.16.3). Hopefully, you will not find the issue again.
Let us know if there is anything else that you need help with.
Regards,
AmirHello @bobcost,
I hope you’re doing fine.We haven’t received any update from you till the last response and assuming that the issue is resolved now. For that reason, I’m marking this thread as resolved. If you need further assistance, never hesitate to create a new thread. We are always here to assist you.
Best Regards,
MoinHello,
my website displays also a PHP warning about undefined array keys. In the Customizer it ist always displayed, in the editing mode in Elementor only when opening the demo page for the first time and on published pages the error is displayed at irregular intervals. (even though the page is always opened in the same browser on the phone or laptop).Elementor version: 3.18.3
Theme: Mestc (from Design Grid)
PHP: 8.3
Error:
Warning! Undefined array key “margin_tablet” in /home/.sites/459/site2723775/web/wp-content/plugins/elementor/core/files/css/base.php on line 778 Warning: Undefined array key “margin_mobile” in /home/.sites/459/site2723775/web/wp-content/plugins/elementor/core/files/css/base. php on line 778 Warning: Undefined array key “padding_tablet” in /home/.sites/459/site2723775/web/wp-content/plugins/elementor/core/files/css/base.php on line 778 Warning: Undefined array key “padding_mobile” in /home/.sites/459/site2723775/web/wp-content/plugins/elementor/core/files/css/base.php on line 778
What I have tried to fix the error:
1. clear cache
2. plugins were deactivated one after the other except Elementor (but the bug was still there)
3. changed theme to Elementor Hello (the error disappeared and when I switched back to the Metsc theme, the bug was there again)
4. contacted theme author with the feedback that it is an error of Elementor.
I hope you can help me to fix the problem. Thank you very much.
Best regards
Michelle
- The topic ‘PHP Notice: Undefined index: margin_tablet’ is closed to new replies.