[wp-trac] [WordPress Trac] #56906: Media Library Grid mode no media items shown if debug true
WordPress Trac
noreply at wordpress.org
Sun Jan 29 11:40:18 UTC 2023
#56906: Media Library Grid mode no media items shown if debug true
--------------------------+------------------------
Reporter: ipajen | Owner: joedolson
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.2
Component: Media | Version: 6.0.3
Severity: normal | Resolution:
Keywords: php81 | Focuses:
--------------------------+------------------------
Comment (by ipajen):
Replying to [comment:7 joedolson]:
> I can't reproduce this in WP 6.2-alpha-55155, and can't identify where
those deprecated messages were coming from - the line numbers don't match
up with anything relevant in 6.0.3, 6.0.2, 6.0.1, or 6.0.0.
>
> @ipajen Can you confirm whether this issue still exists with no plugins
active and a default theme?
Yes, Made a fresh install of WP 6.0.3, uploaded two pictures and enabled
debug and the problem is still there with not showing any media items
(works fine in list mode.
{{{
Deprecated: setcookie(): Passing null to parameter #5 ($domain) of type
string is deprecated in /home/xxx/public_html/blog/wp-includes/option.php
on line 1112
Deprecated: setcookie(): Passing null to parameter #5 ($domain) of type
string is deprecated in /home/xxx/public_html/blog/wp-includes/option.php
on line 1113
}}}
After upgrading to 6.1.1 no PHP warnings are shown and the Media items is
shown correctly. So the part of PHP warnings are solved but I believe any
warnings/Errors will trigger that the pictures in Media grid will not
show. Maybe you can generate a warning that are shown in latest code to
reproduce the problem that grid not shows the pictures if a debug warning
is shown?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56906#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list