[wp-trac] [WordPress Trac] #40954: Create Category within posts screen error
WordPress Trac
noreply at wordpress.org
Wed Nov 6 18:11:27 UTC 2024
#40954: Create Category within posts screen error
-------------------------------+-------------------------
Reporter: cfastenrath | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Posts, Post Types | Version: 4.8
Severity: normal | Resolution: invalid
Keywords: close | Focuses: javascript
-------------------------------+-------------------------
Comment (by hmazadev000):
Replying to [comment:3 hmazadev000]:
> Replying to [comment:1 cfastenrath]:
> > There were additional lines after the closing php tag in an uploaded
file in the plugin folder.
> > Therefore headers were already sent which results in this error!.
> >
> This error happens when there are unintended characters or lines after
the closing ?> PHP tag in the file. Removing any extra lines or spaces
after the closing tag should resolve the issue.
In PHP files, it’s often recommended to avoid the closing ?> tag entirely,
especially for files that contain only PHP code. This helps prevent
accidental output of whitespace or new lines, which can cause the "headers
already sent" error.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40954#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list