Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#44020 new defect (bug)

WordPress Installation Error

Reported by: Benjamin_Zekavica Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Upgrade/Install Keywords: needs-testing reporter-feedback
Focuses: Cc:


On all my new project I have this error message if I want to install WordPress:
Fatal error: Uncaught Error: Call to undefined function wp() ..... wp-blog-header.php on line 16

Please fix it.

Change History (4)

#1 @SergeyBiryukov
2 years ago

  • Component changed from General to Upgrade/Install

#2 @swissspidy
2 years ago

#44480 was marked as a duplicate.

#3 @SergeyBiryukov
2 years ago

  • Keywords reporter-feedback added

Hi @Benjamin_Zekavica, welcome to WordPress Trac! Thanks for the report.

In #44480 you mention creating a wp-config.php file. Does the issue happen with the file you've created manually, or with the file created by the WordPress installer?

I can only reproduce the error if I create a file without the necessary lines at the end, see wp-config-sample.php:

/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
	define( 'ABSPATH', dirname( __FILE__ ) . '/' );

/** Sets up WordPress vars and included files. */
require_once( ABSPATH . 'wp-settings.php' );

Could you make sure these lines are present in your wp-config.php file?

#4 @Benjamin_Zekavica
2 years ago

Thank your @SergeyBiryukov :)
This bug cames with wp 4.9.6 - in different versions I dont have any problems.

After I upload WP Files on server i open the path of the installation in the browser - normaly cames a installation screen but for still 7 Weeks I have alwasy this bug.

I have try it on local machine and a live server its a same error message.
More and more my friends who works with WP say this error with the new version.

To fix it i create manually a wp-config.php and copy the code for example config. Than it works. But the installer message dont came direcly.

I hope it can be fixed.

Best wishes from Germany :)

Note: See TracTickets for help on using tickets.