• Resolved A3Smit

    (@a3smit)


    There is an error and I cannot even log into WP. Can someone assist please.

    I have manually updated WordPress aswell as the theme but it is not making a difference

    Warning: Constant WP_CONTENT_DIR already defined in /usr/www/users/wscacrushd/wp-config.php on line 49 Warning: Constant WP_CONTENT_URL already defined in /usr/www/users/wscacrushd/wp-config.php on line 50 Warning: Cannot modify header information – headers already sent by (output started at /usr/www/users/wscacrushd/wp-config.php:49) in /usr/www/users/wscacrushd/wp-login.php on line 464 Warning: Cannot modify header information – headers already sent by (output started at /usr/www/users/wscacrushd/wp-config.php:49) in /usr/www/users/wscacrushd/wp-login.php on line 480 Warning: Cannot modify header information – headers already sent by (output started at /usr/www/users/wscacrushd/wp-config.php:49) in /usr/www/users/wscacrushd/wp-includes/functions.php on line 6865 Warning: Cannot modify header information – headers already sent by (output started at /usr/www/users/wscacrushd/wp-config.php:49) in /usr/www/users/wscacrushd/wp-includes/pluggable.php on line 1078 Warning: Cannot modify header information – headers already sent by (output started at /usr/www/users/wscacrushd/wp-config.php:49) in /usr/www/users/wscacrushd/wp-includes/pluggable.php on line 1079 Warning: Cannot modify header information – headers already sent by (output started at /usr/www/users/wscacrushd/wp-config.php:49) in /usr/www/users/wscacrushd/wp-includes/pluggable.php on line 1080

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • It appears that you are having an issue with your WordPress installation. The error message Warning: Constant WP_CONTENT_DIR already defined indicates that the WP_CONTENT_DIR constant has been defined more than once in your WordPress configuration file (wp-config.php). This can occur if the constant has been defined in multiple places or if a plugin or theme has defined the constant.

    To resolve this issue, you can try the following steps:

    1. Inspect your wp-config.php file for any lines of code that define the WP_CONTENT_DIR constant. If you find more than one instance of this constant being defined, remove all instances except those at the top of the file.

    2. Examine your active plugins and theme for any code that defines the WP_CONTENT_DIR constant. If you find any, try deactivating the plugin or switching to a different theme to see if this resolves the issue.

    If the issue persists after attempting the above steps, you may need to perform a fresh install of WordPress. Before doing so, back up your website and database so that you can restore your content and settings after the installation.

    If you have any further questions or require additional assistance, please do not hesitate to reach out. I’m here to help!

    Thread Starter A3Smit

    (@a3smit)

    Thank you very much. It is now sorted. Appreciate your fast response.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: Constant WP_CONTENT_DIR already defined’ is closed to new replies.