-
Hi
We recently experienced problems with editing pages with Elementor Pro. After getting support from them, we identified the problem to be a fatal PHP error, that occurred when we tried to edit a page (independent of wether Elementor was activated or not, but only causing a problem with Elementor…). The error in the apache error_log file was:
PHP Warning: Undefined array key “posts_per_page” in ~/htdocs/wp-admin/includes/ajax-actions.php on line 3006, referer: https://our-site.url/wp-admin/post.php?post=120&action=edit
[Thu Aug 26 11:02:46.632192 2021] [php:error] [pid 1947057] [client 10.6.219.40:56145] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in ~/htdocs/wp-admin/includes/ajax-actions.php:3006
Stack trace:
#0 ~/htdocs/wp-includes/class-wp-hook.php(303): wp_ajax_query_attachments()
#1 ~/htdocs/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#2 ~/htdocs/wp-includes/plugin.php(470): WP_Hook->do_action()
#3 ~/htdocs/wp-admin/admin-ajax.php(187): do_action()
#4 {main}
thrown in ~/htdocs/wp-admin/includes/ajax-actions.php on line 3006, referer: https://our-site.url/wp-admin/post.php?post=120&action=editDisabling Rank MATH CEO plugin resolved the issue. Do you know what could be the problem here?
Thanks for your support,
Christian Schaffner.PS: Here is the system Info:
`
### rank-math ###version: 1.0.70
database_version: 1
plugin_plan: Free
active_modules: link-counter, analytics, seo-analysis, sitemap, rich-snippet, acf, role-manager, local-seo
refresh_token: No token
permissions:
Search Console: Not Given
rank_math_404_logs: Created
rank_math_redirections: Created
rank_math_redirections_cache: Created
rank_math_internal_links: Created
rank_math_internal_meta: Created
rank_math_analytics_gsc: Doesn’t exists
rank_math_analytics_objects: Created### wp-core ###
version: 5.8
site_language: en_US
user_language: en_US
timezone: Europe/Zurich
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: undefined
environment_type: production
user_count: 80
dotorg_communication: true### wp-active-theme ###
name: NanoSpaceChild (NanoSpaceChild)
version: 1.0
author:
author_website: (undefined)
parent_theme: NanoSpace (nanospace)
theme_features: core-block-patterns, tha_hooks, widgets-block-editor, menus, customize-selective-refresh-widgets, custom-header, child-theme-stylesheet, editor-style, title-tag, custom-logo, automatic-feed-links, html5, custom-background, post-thumbnails, widgets
theme_path: ~/htdocs/wp-content/themes/NanoSpaceChild
auto_update: Disabled### wp-parent-theme ###
name: NanoSpace (nanospace)
version: 1.2.1
author: Labinator
author_website: https://labinator.com/
theme_path: ~/htdocs/wp-content/themes/nanospace
auto_update: Disabled### wp-mu-plugins (1) ###
Health Check Troubleshooting Mode: author: (undefined), version: 1.7.2
### wp-plugins-active (31) ###
301 Redirects: version: 2.70, author: WebFactory Ltd, Auto-updates enabled
Advanced Custom Fields: version: 5.10, author: Delicious Brains, Auto-updates enabled
Check & Log Email: version: 1.0.2, author: WPChill, Auto-updates enabled
Child Theme Generator: version: 2.2.7, author: Serafino Corriero, Auto-updates enabled
Classic Editor: version: 1.6.2, author: WordPress Contributors, Auto-updates enabled
Defender Pro: version: 2.5.7, author: WPMU DEV, Auto-updates enabled
Ele Custom Skin: version: 3.1.2, author: Dudaster.com, Auto-updates enabled
Elementor: version: 3.4.2, author: Elementor.com, Auto-updates enabled
Elementor Pro: version: 3.3.7, author: Elementor.com (latest version: 3.3.8), Auto-updates enabled
Element Pack Lite – Addon for Elementor: version: 3.1.1, author: BdThemes, Auto-updates enabled
EmbedPress: version: 3.1.2, author: WPDeveloper, Auto-updates enabled
Essential Addons for Elementor: version: 4.8.4, author: WPDeveloper, Auto-updates enabled
File Manager Advanced: version: 4.0, author: modalweb, Auto-updates enabled
Filester – File Manager Pro: version: 1.7.3, author: Ninja Team, Auto-updates enabled
Health Check & Troubleshooting: version: 1.4.5, author: The WordPress.org community, Auto-updates enabled
Image Hover Effects – Elementor Addon: version: 1.3.4, author: Blocksera, Auto-updates enabled
LoginPress – Customizing the WordPress Login: version: 1.5.5, author: WPBrigade, Auto-updates enabled
Polylang: version: 3.1.1, author: WP SYNTEX, Auto-updates enabled
Polylang Connect for Elementor: version: 1.0.6, author: David Decker – DECKERWEB, Auto-updates enabled
Rank Math SEO: version: 1.0.70, author: Rank Math, Auto-updates enabled
Self-Hosted Google Fonts: version: 1.0.1, author: asadkn, Auto-updates enabled
Shibboleth: version: 2.2.2, author: Michael McNeill, mitcho (Michael č³č²“ Erlewine), Will Norris (latest version: 2.3), Auto-updates disabled
Ultimate Member: version: 2.2.3, author: Ultimate Member, Auto-updates enabled
Visibility Logic for Elementor: version: 2.1.7, author: StaxWP, Auto-updates enabled
WP Downgrade | Specific Core Version: version: 1.2.2, author: Reisetiger, Auto-updates enabled
WP File Manager: version: 7.1.2, author: mndpsingh287, Auto-updates enabled
WP Mail SMTP: version: 3.0.3, author: WPForms, Auto-updates enabled
Wp Maximum Upload File Size: version: 1.0.6, author: CodePopular, Auto-updates enabled
WPMU DEV Dashboard: version: 4.11.2, author: WPMU DEV, Auto-updates enabled
WP Rollback: version: 1.7.1, author: Impress.org, Auto-updates enabled
WP Statistics: version: 13.1, author: VeronaLabs, Auto-updates enabled### wp-server ###
server_architecture: Linux 4.18.0-305.10.2.el8_4.x86_64 x86_64
httpd_software: Apache
php_version: 8.0.8 64bit
php_sapi: apache2handler
max_input_variables: 1000
time_limit: 300
memory_limit: 2048M
admin_memory_limit: 4096M
max_input_time: 300
upload_max_filesize: 2048M
php_post_max_size: 2048M
curl_version: 7.61.1 OpenSSL/1.1.1g
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true### wp-database ###
extension: mysqli
server_version: 5.1.35-community-log
client_version: mysqlnd 8.0.8### wp-constants ###
WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: ~/htdocs/wp-content
WP_PLUGIN_DIR: ~/htdocs/wp-content/plugins
WP_MEMORY_LIMIT: 2048M
WP_MAX_MEMORY_LIMIT: 4096M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_LOCAL_DEV: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined### wp-filesystem ###
wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
mu-plugins: writable
The ticket ‘Rank Math SEO causing issues with WP Editor (PHP Fatal error)’ is closed to new replies.