Title: Download WordPress PHP Errors in wp-config.php
Last modified: July 24, 2020

---

# Download WordPress PHP Errors in wp-config.php

 *  Resolved [Alkorr](https://wordpress.org/support/users/alkorr/)
 * (@alkorr)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/download-wordpress-php-errors-in-wp-config-php/)
 * Hi, I just downloaded WP 5.4.2 from [https://wordpress.org/download/](https://wordpress.org/download/)
   and when editing the wp-config.php I noticed there was a PHP error: the PHP tag
   is open on line 1 (<?php) but is not closed on the last line (?> is missing)…
 * I checked with wp-config.php files from other sites, I guess parentheses may 
   be missing as well:
 *     ```
       /** Sets up WordPress vars and included files. */
       require_once ABSPATH . 'wp-settings.php';
       ```
   
 * Is it a problem? Should I close the php tag or is it ok to leave it open? Same
   for the ‘missing’ parentheses. I’m not a coder so I’m asking. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 9 months ago](https://wordpress.org/support/topic/download-wordpress-php-errors-in-wp-config-php/#post-13165878)
 * GEnerally, one does not close a .php file. If there’s anything after the closing`?
   >` it can generate errors as it’s output as HTML.
 * Don’t add a closing tag.
 * However, the file should end with
 *     ```
       /** Sets up WordPress vars and included files. */
       require_once( ABSPATH . 'wp-settings.php' );
       ```
   
 * with parens.
 *  Thread Starter [Alkorr](https://wordpress.org/support/users/alkorr/)
 * (@alkorr)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/download-wordpress-php-errors-in-wp-config-php/#post-13165912)
 * Hi Steven, thank you! I asked because I checked the other (older WP version) 
   wp-config.php and there is a `?>` in all of them. So fine, I won’t close it!
 * As for the missing parentheses in the file, I will add them then. Thank you very
   much! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Download WordPress PHP Errors in wp-config.php’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [Alkorr](https://wordpress.org/support/users/alkorr/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/download-wordpress-php-errors-in-wp-config-php/#post-13165912)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
