[wp-trac] [WordPress Trac] #55489: SHORTINIT define make error in the core
WordPress Trac
noreply at wordpress.org
Wed Mar 30 16:39:29 UTC 2022
#55489: SHORTINIT define make error in the core
-----------------------------+------------------------------
Reporter: gerendo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: 5.9.2
Severity: critical | Resolution:
Keywords: has-screenshots | Focuses: rest-api
-----------------------------+------------------------------
Changes (by sabernhardt):
* focuses: => rest-api
Old description:
> hi brothers and sisters
> I am a software developer .. in my current project i use WordPress as
> dashboard for web app using WordPress Rest-API .. for trying to minimize
> the response time of the API . I try to minimize the load of WordPress
> libraries by define this constant (SHORTINIT) in the wp-config.php .. I
> got that error [[https://prnt.sc/BCnjCnsmyv0k]]
>
> ''Error: Call to a member function main() on null in
> D:\wamp64\www\wordpress\wp-includes\functions.php on line 1310''
New description:
hi brothers and sisters
I am a software developer .. in my current project i use WordPress as
dashboard for web app using WordPress Rest-API .. for trying to minimize
the response time of the API . I try to minimize the load of WordPress
libraries by define this constant (`SHORTINIT`) in the wp-config.php .. I
got that error [[https://prnt.sc/BCnjCnsmyv0k]]
`Error: Call to a member function main() on null in
D:\wamp64\www\wordpress\wp-includes\functions.php on line 1310`
--
Comment:
Hi and welcome to Trac! Thanks for the report!
[https://core.trac.wordpress.org/browser/tags/5.9.2/src/wp-
includes/functions.php#L1310 Line 1310] is in the `wp()` function.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55489#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list