Title: Line Error/ Parse Error
Last modified: August 30, 2016

---

# Line Error/ Parse Error

 *  Resolved [therembrandt](https://wordpress.org/support/users/therembrandt/)
 * (@therembrandt)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/)
 * Hi there, i have created a website which was not allowing me to change the login
   screen dimensions. while trying to edit the problem via the dashboard>appearance
   >editor method, i deleted some code accidently and now when i try to go to my
   URL it gives this message:
 * Parse error: syntax error, unexpected ‘(‘ in /home/content/n3pnexwpnas02_data02/
   38/2983638/html/wp-config.php on line 82
 * What is this to do with and how would i go about rectifying it? thanks

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/line-error-parse-error/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/line-error-parse-error/page/2/?output_format=md)

 *  [aterrav](https://wordpress.org/support/users/aterrav/)
 * (@aterrav)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878282)
 * Hi therembrandt,
 * What file were you editing when you got the error?
 *  Thread Starter [therembrandt](https://wordpress.org/support/users/therembrandt/)
 * (@therembrandt)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878367)
 * i was editing the login page function in the themes.php
 *  Thread Starter [therembrandt](https://wordpress.org/support/users/therembrandt/)
 * (@therembrandt)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878370)
 * `// define(‘WP_DEBUG’, true);
    //define( ‘WP_CACHE’, true ); require_once( dirname)(
   __FILE__ ) . define( ‘FS_METHOD’, ‘direct’); define(‘FS_CHMOD_DIR’), (0705 & 
   ~ umask())); define(‘FS_CHMOD_FILE’), (0604 & ~ umask()));
 * /* That’s all, stop editing! Happy blogging. */
 * these are my lines 80 to 88. can you see any obvious issue? im not a coding expert
 *  [neotechnomad](https://wordpress.org/support/users/neotechnomad/)
 * (@neotechnomad)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878371)
 * Perhaps one too many “)” in each of these:
    […spread them out to see better]
 *     ```
       ( 0705 & ~ umask() ) );
       define('FS_CHMOD_FILE'), ( 0604 & ~ umask() ) );
       ```
   
 * Should be:
 *     ```
       ( 0705 & ~ umask() );
       define('FS_CHMOD_FILE'), ( 0604 & ~ umask() );
       ```
   
 *  Thread Starter [therembrandt](https://wordpress.org/support/users/therembrandt/)
 * (@therembrandt)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878375)
 * Thanks for your response,
    just imported that line into the loop but same code
   error code still occurring.
 *  [neotechnomad](https://wordpress.org/support/users/neotechnomad/)
 * (@neotechnomad)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878376)
 * I missed this.
    Looked it up in Codex: [http://codex.wordpress.org/Editing_wp-config.php#Override_of_default_file_permissions](http://codex.wordpress.org/Editing_wp-config.php#Override_of_default_file_permissions)
 * The original on this link is:
 *     ```
       define( 'FS_CHMOD_DIR', ( 0755 & ~ umask() ) );
       define( 'FS_CHMOD_FILE', ( 0644 & ~ umask() ) );
       ```
   
 * So, for yours, instead of:
 *     ```
       define('FS_CHMOD_DIR'),
       (0705 & ~ umask()));
       define('FS_CHMOD_FILE'), (0604 & ~ umask()));
       ```
   
 * should it be:
 *     ```
       define( 'FS_CHMOD_DIR', ( 0705 & ~ umask() ) );
       define( 'FS_CHMOD_FILE', ( 0604 & ~ umask() ) );
       ```
   
 *  Thread Starter [therembrandt](https://wordpress.org/support/users/therembrandt/)
 * (@therembrandt)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878377)
 * This is what the page looks like right now after your suggested alterations:
 * // define(‘WP_DEBUG’, true);
    //define( ‘WP_CACHE’, true ); require_once ( dirname)(
   __FILE__); define( ‘FS_METHOD’ ‘direct’); define( ‘FS_CHMOD_DIR’, ( 0705 & ~ 
   umask() ) ); define( ‘FS_CHMOD_FILE’, ( 0604 & ~ umask() ) );
 * The same message is occurring, however instead of “unexpected ‘ ” it is saying“
   unexpected ‘(‘ ” this is still on line 82
 *  Thread Starter [therembrandt](https://wordpress.org/support/users/therembrandt/)
 * (@therembrandt)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878378)
 * this being line 82
 * require_once ( dirname ) (__FILE__);
 *  [neotechnomad](https://wordpress.org/support/users/neotechnomad/)
 * (@neotechnomad)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878380)
 * Which should read: dirname(__FILE__)
    hence: unexpected ‘(‘
 *  Thread Starter [therembrandt](https://wordpress.org/support/users/therembrandt/)
 * (@therembrandt)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878403)
 * i have implemented this code also and now i am getting the error:
 * Parse error: syntax error, unexpected ‘(‘ in /home/content/n3pnexwpnas02_data02/
   38/2983638/html/wp-config.php on line 84
 * these are lines 84 and 85:
 *  define(‘FS_CHMOD_DIR’) ( 0705 & ~ umask()
    define(‘FS_CHMOD_FILE’, ( 0604 & 
   ~ umask() ) );
 * there just seems to be a new problem with each solve. i have tried calling my
   hosting company and they have said they will try to restore my database to its
   previous state a few days ago.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878412)
 * [@therembrandt](https://wordpress.org/support/users/therembrandt/), Please change
   your SALT keys as soon as you can and take care not to post sensitive data.
 *  [neotechnomad](https://wordpress.org/support/users/neotechnomad/)
 * (@neotechnomad)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878414)
 * You didn’t copy/paste correctly.
 * This:
    define(‘FS_CHMOD_DIR’) ( 0705 & ~ umask()
 * Should be this:
    `define( 'FS_CHMOD_DIR', ( 0705 & ~ umask() ) );`
 * This is fine:
    `define('FS_CHMOD_FILE', ( 0604 & ~ umask() ) );`
 * Look at my post above with the codes in it.
 *  Thread Starter [therembrandt](https://wordpress.org/support/users/therembrandt/)
 * (@therembrandt)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878419)
 * Ok, i just pasted it like this with your suggested code structure:
 * // define(‘WP_DEBUG’, false);
    //define( ‘WP_CACHE’, true ); require_once dirname(
   __FILE__); define( ‘FS_METHOD’); define( ‘FS_CHMOD_DIR’, ( 0705 & ~ umask() ));
   define(‘FS_CHMOD_FILE’, ( 0604 & ~ umask() ) );
 * and am given this new message when trying to load the site:
 * Warning: require_once(/home/content/n3pnexwpnas02_data02/38/2983638/html): failed
   to open stream: Success in /home/content/n3pnexwpnas02_data02/38/2983638/html/
   wp-config.php on line 82
 * Fatal error: require_once(): Failed opening required ‘/home/content/n3pnexwpnas02_data02/
   38/2983638/html’ (include_path=’.:/usr/local/php5_4/lib/php’) in /home/content/
   n3pnexwpnas02_data02/38/2983638/html/wp-config.php on line 82
 *  Thread Starter [therembrandt](https://wordpress.org/support/users/therembrandt/)
 * (@therembrandt)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878421)
 *     ```
       // define('WP_DEBUG', false);
       //define( 'WP_CACHE', true );
         require_once dirname (__FILE__);
         define( 'FS_METHOD');
         define( 'FS_CHMOD_DIR', ( 0705 & ~ umask() ) );
         define('FS_CHMOD_FILE', ( 0604 & ~ umask() ) );
       ```
   
 *  [neotechnomad](https://wordpress.org/support/users/neotechnomad/)
 * (@neotechnomad)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/#post-6878426)
 * Please remember, never post any vital info on forums, even if someone asks for
   it to assist you.
 * Let’s go back to square one here…
 * First… do you have a copy of your original wp-config.php on your computer from
   when you installed the site on your host?
    If so… 1 – open that wp-config.php
   file and make sure all the basic necessary info is correct – db_name, db_user,
   db_password, etc. 2 – access your site via your file manager or by FTP 3 – download
   the current problem wp-config to your computer 4 – upload your original wp-config.
   php to your site to replace the problem one 4 – your site should be back to working
   order
 * To the problem…
    You posted: “_i have created a website which was not allowing
   me to change the login screen dimensions. while trying to edit the problem via
   the dashboard>appearance>editor method, i deleted some code accidently and now
   when i try to go to my URL it gives this message: _“
 * “_while trying to edit the problem via the dashboard>appearance>editor method_“
 * Which file were you editing?

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/line-error-parse-error/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/line-error-parse-error/page/2/?output_format=md)

The topic ‘Line Error/ Parse Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 22 replies
 * 4 participants
 * Last reply from: [therembrandt](https://wordpress.org/support/users/therembrandt/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/line-error-parse-error/page/2/#post-6878455)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
