• Resolved loosefast

    (@loosefast)


    All Elementor pages showing Undefined index: counts in preview. Only able to edit in safe mode. Any clues? Changed Theme to WP 2025, disabled Plugins. No change.

    • This topic was modified 1 year, 2 months ago by loosefast. Reason: removed link in text

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Milos

    (@miloss84)

    Hi there,

    Thank you for contacting us.

    The error “Undefined index: counts” in Elementor preview usually indicates a PHP notice due to an uninitialized array index.

    1. Check Debug Logs

    Enable debugging in wp-config.php to see detailed errors:

    define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors', 0);

    Then check the wp-content/debug.log file for any additional details.

    2. Increase PHP Memory Limit

    Try increasing the PHP memory limit in wp-config.php:

    define('WP_MEMORY_LIMIT', '512M');

    define('WP_MAX_MEMORY_LIMIT', '512M');

    Then check if the issue persists.

    3. Reinstall Elementor

    Even if Elementor is up to date, reinstall it manually:

    • Deactivate and delete Elementor from the WordPress admin panel.
    • Download the latest version from Elementor’s website.
    • Reinstall and activate it.

    4. Check PHP Version and Errors

    Ensure your server is running PHP 8.0 or 8.1 (Elementor doesn’t fully support 8.2 yet). Also, check your server error logs for additional details.

    5. Test a Fresh Database

    If possible, set up a staging site with a fresh WordPress installation and import only Elementor-related data to see if the issue persists.

    Hope this helps.

    Thread Starter loosefast

    (@loosefast)

    Hi, PHP is increased to 8.1. Memory Limit is at 512. debug info below. Thanks

    Wait a minute! Just updated Elementor and Essential Add-Ons Plugins to Version 3.27.7 and Version 6.1.5 and I can now EDIT PAGES!!!

    [13-Mar-2025 15:16:46 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>email-log</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /home/site/public_html/wp-includes/functions.php on line 6114
    [13-Mar-2025 15:16:54 UTC] PHP Warning: Undefined array key "numPreferredServices" in /home/site/public_html/wp-content/plugins/addthis/backend/AddThisSharingButtonsInlineTool.php on line 72
    [13-Mar-2025 15:16:54 UTC] PHP Warning: Undefined array key "counts" in /home/site/public_html/wp-content/plugins/addthis/backend/AddThisSharingButtonsInlineTool.php on line 73
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Undefined index: counts’ is closed to new replies.