pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 264 forks source link

"Function is_current_page was called incorrectly" after updating to 2.9.11 #6987

Closed paoloimpelluso closed 1 year ago

paoloimpelluso commented 1 year ago

Description

After updating pods from 2.9.10.2 to 2.9.11, this message popped out (WP_DEBUG true in wp-config.php): "Function is_current_page was called incorrectly. Function was called before it is possible to accurately determine what the current page is. ... wp-includes/functions.php on line 5835".

Version

2.9.11

Testing Instructions

No response

Screenshots / Screencast

No response

Possible Workaround

No response

Site Health Information

`
### wp-core ###

version: 6.1.1
site_language: it_IT
user_language: it_IT
timezone: Europe/Rome
permalink: /%year%/%monthnum%/%day%/%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 0
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: /var/www/html/site.com
wordpress_size: 52,58 MB (55133928 bytes)
uploads_path: /var/www/html/site.com/wp-content/uploads
uploads_size: 1,31 MB (1373097 bytes)
themes_path: /var/www/html/site.com/wp-content/themes
themes_size: 10,02 MB (10507709 bytes)
plugins_path: /var/www/html/site.com/wp-content/plugins
plugins_size: 29,19 MB (30607452 bytes)
database_size: 1,77 MB (1851392 bytes)
total_size: 94,87 MB (99473578 bytes)

### wp-active-theme ###

name: Site Theme
version: 1.0.0
author: ****
author_website: ****
parent_theme: none
theme_path: /var/www/html/site.com/wp-content/themes/site_theme
auto_update: Disabilitato

### wp-plugins-active (5) ###

Contact Form 7: version: 5.7.2, author: Takayuki Miyoshi, Aggiornamenti automatici disabilitati
hCaptcha for WordPress: version: 2.4.0, author: hCaptcha, Aggiornamenti automatici disabilitati
Lazy Blocks: version: 3.3.0, author: Lazy Blocks Team, Aggiornamenti automatici disabilitati
Pods - Custom Content Types and Fields: version: 2.9.11, author: Pods Framework Team, Aggiornamenti automatici disabilitati
Pods Admin Columns: version: 1.0.2, author: joker-x, Aggiornamenti automatici disabilitati

### wp-plugins-inactive (5) ###

Autoptimize: version: 3.1.5, author: Frank Goossens (futtta), Aggiornamenti automatici disabilitati
Classic Editor: version: 1.6.2, author: WordPress Contributors, Aggiornamenti automatici disabilitati
Comet Cache: version: 170220, author: WP Sharks, Aggiornamenti automatici disabilitati
SendGrid: version: 1.11.8, author: SendGrid, Aggiornamenti automatici disabilitati
WP Cerber Security, Anti-spam & Malware Scan: version: 9.3.3, author: Cerber Tech Inc., Aggiornamenti automatici disabilitati

### wp-media ###

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1690
imagemagick_version: ImageMagick 6.9.10-68 Q16 x86_64 2021-10-14 https://imagemagick.org
imagick_version: 3.4.4
file_uploads: File uploads is turned off
post_max_size: 20M
upload_max_filesize: 20M
max_effective_size: 20 MB
max_file_uploads: 20
imagick_limits: 
    imagick::RESOURCETYPE_AREA: 15 GB
    imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
    imagick::RESOURCETYPE_FILE: 768
    imagick::RESOURCETYPE_MAP: 15 GB
    imagick::RESOURCETYPE_MEMORY: 8 GB
    imagick::RESOURCETYPE_THREAD: 4
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, 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, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, 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, MPEG, 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, 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, VIFF, VIPS, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: not available

### wp-server ###

server_architecture: Linux 6.0.2-x86_64-linode157 x86_64
httpd_software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.3.33
php_version: 7.3.33 64bit
php_sapi: apache2handler
max_input_variables: 1000
time_limit: 1200
memory_limit: 128M
admin_memory_limit: 256M
max_input_time: 60
upload_max_filesize: 20M
php_post_max_size: 20M
curl_version: 7.29.0 NSS/3.53.1
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: false

### wp-database ###

extension: mysqli
server_version: 5.6.51
client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
max_allowed_packet: 524288000
max_connections: 151

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/html/site.com/wp-content
WP_PLUGIN_DIR: /var/www/html/site.com/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Non definito
DB_CHARSET: utf8mb4
DB_COLLATE: undefined

### wp-filesystem ###

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

### pods ###

pods-server-software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.3.33
pods-user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
pods-session-save-path: /var/lib/php/mod_php/session
pods-session-save-path-exists: Sì
pods-session-save-path-writable: Sì
pods-session-max-lifetime: 1440
pods-opcode-cache-apc: No
pods-opcode-cache-memcached: No
pods-opcode-cache-opcache: Sì
pods-opcode-cache-redis: No
pods-object-cache-apc: No
pods-object-cache-apcu: No
pods-object-cache-memcache: No
pods-object-cache-memcached: No
pods-object-cache-redis: Sì
pods-memory-current-usage: 14,912M
pods-memory-current-usage-real: 6,000M
pods-network-wide: No
pods-install-location: /wp-content/plugins/pods/
pods-developer: No
pods-tableless-mode: No
pods-relationship-table-enabled: Sì
pods-light-mode: No
pods-strict: No
pods-allow-deprecated: Sì
pods-api-cache: Sì
pods-shortcode-allow-evaluate-tags: No
pods-sessions: Disable sessions
pods-can-use-sessions: Sì
pods-relationship-table-status: 0

`

Pods Package

No response

cweagans commented 1 year ago

I'm also seeing this.

datgausaigon commented 1 year ago

Hi, I got it too. I use:

oldrup commented 1 year ago

Confirmed same error on my WordPress multisite. PHP 8.0, WP 6.1.1

StevenP94 commented 1 year ago

Confirmed same error, I added a 'return false;' as workaround to make the site operative.

paoloimpelluso commented 1 year ago

After updating to 2.9.11.1 the warning has gone.

oldrup commented 1 year ago

Uh! Thanks for the feedback ✌ Was postponing the update - the release notes did not appear to address this issue.

Update tested here as well. No errors (debug on).