Title: Error In Website
Last modified: April 26, 2019

---

# Error In Website

 *  [Vins Shukla](https://wordpress.org/support/users/vs1583/)
 * (@vs1583)
 * [7 years ago](https://wordpress.org/support/topic/error-in-website-3/)
 * HI Friends
 * We are getting an error on site can you please help out to solve it Website name
 * saharaseats.com
 * line 167: require( ABSPATH . WPINC . ‘/post.php’ );
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-website-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [7 years ago](https://wordpress.org/support/topic/error-in-website-3/#post-11471958)
 * Can you copy and paste the entire error message? And say what version of WordPress
   you have.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [7 years ago](https://wordpress.org/support/topic/error-in-website-3/#post-11472052)
 * [@vs1583](https://wordpress.org/support/users/vs1583/), Make sure you post us
   the correct website.
 *  Thread Starter [Vins Shukla](https://wordpress.org/support/users/vs1583/)
 * (@vs1583)
 * [7 years ago](https://wordpress.org/support/topic/error-in-website-3/#post-11472104)
 * Warning: require(/home/hellorf4/public_html/saharaseats.com/wp-includes/post.
   php): failed to open stream: Permission denied in /home/hellorf4/public_html/
   saharaseats.com/wp-settings.php on line 167
 * Fatal error: require(): Failed opening required ‘/home/hellorf4/public_html/saharaseats.
   com/wp-includes/post.php’ (include_path=’.:/opt/alt/php70/usr/share/pear’) in/
   home/hellorf4/public_html/saharaseats.com/wp-settings.php on line 167
 *  Thread Starter [Vins Shukla](https://wordpress.org/support/users/vs1583/)
 * (@vs1583)
 * [7 years ago](https://wordpress.org/support/topic/error-in-website-3/#post-11472106)
 * saharaseats.com
 *  [Davood Denavi](https://wordpress.org/support/users/binarywc/)
 * (@binarywc)
 * [7 years ago](https://wordpress.org/support/topic/error-in-website-3/#post-11472302)
 * Looks like your file permissions aren’t set correctly.
 * All files should be set to 644
    While all directories and subdirectories should
   be set to 755.
 * You can change these settings using FTP or a web based file manager provided 
   by your website hosting provider.
 * Hope this helps. Once you’ve found a fix please tag the thread as resolved.
 *  Thread Starter [Vins Shukla](https://wordpress.org/support/users/vs1583/)
 * (@vs1583)
 * [7 years ago](https://wordpress.org/support/topic/error-in-website-3/#post-11472399)
 * ERROR
 * Apr-2019 05:17:17 UTC] PHP Fatal error: Cannot redeclare wp_get_themes() (previously
   declared in /home/hellorf4/public_html/saharaseats.com/wp-includes/theme.php:
   33) in /home/hellorf4/public_html/saharaseats.com/wp-includes/theme.php on line
   95
 * CODE:
 * function wp_get_themes( $args = array() ) {
    global $wp_theme_directories;
 *  $defaults = array(
    ‘errors’ => false, ‘allowed’ => null, ‘blog_id’ => 0, );
   $args = wp_parse_args( $args, $defaults );
 *  $theme_directories = search_theme_directories();
 *  if ( is_array( $wp_theme_directories ) && count( $wp_theme_directories ) > 1){
   //
   Make sure the current theme wins out, in case search_theme_directories() picks
   the wrong // one in the case of a conflict. (Normally, last registered theme 
   root wins.) $current_theme = get_stylesheet(); if ( isset( $theme_directories[
   $current_theme ] ) ) { $root_of_current_theme = get_raw_theme_root( $current_theme);
   if ( ! in_array( $root_of_current_theme, $wp_theme_directories ) ) { $root_of_current_theme
   = WP_CONTENT_DIR . $root_of_current_theme; } $theme_directories[ $current_theme][‘
   theme_root’] = $root_of_current_theme; } }
 *  if ( empty( $theme_directories ) ) {
    return array(); }
 *  if ( is_multisite() && null !== $args[‘allowed’] ) {
    $allowed = $args[‘allowed’];
   if ( ‘network’ === $allowed ) { $theme_directories = array_intersect_key( $theme_directories,
   WP_Theme::get_allowed_on_network() ); } elseif ( ‘site’ === $allowed ) { $theme_directories
   = array_intersect_key( $theme_directories, WP_Theme::get_allowed_on_site( $args[‘
   blog_id’] ) ); } elseif ( $allowed ) { $theme_directories = array_intersect_key(
   $theme_directories, WP_Theme::get_allowed( $args[‘blog_id’] ) ); } else { $theme_directories
   = array_diff_key( $theme_directories, WP_Theme::get_allowed( $args[‘blog_id’]));}}
 *  $themes = array();
    static $_themes = array();
 *  foreach ( $theme_directories as $theme => $theme_root ) {
    if ( isset( $_themes[
   $theme_root[‘theme_root’] . ‘/’ . $theme ] ) ) { $themes[ $theme ] = $_themes[
   $theme_root[‘theme_root’] . ‘/’ . $theme ]; } else { $themes[ $theme ] = $_themes[
   $theme_root[‘theme_root’] . ‘/’ . $theme ] = new WP_Theme( $theme, $theme_root[‘
   theme_root’] ); } }
 *  if ( null !== $args[‘errors’] ) {
    foreach ( $themes as $theme => $wp_theme ){
   if ( $wp_theme->errors() != $args[‘errors’] ) { unset( $themes[ $theme ] ); }}}
 *  return $themes;
    }
 * CANT UNDERSTAND ITS SEEMS ALL IS RIGHT TO ME CAN ANY ONE HELP
 *  [Davood Denavi](https://wordpress.org/support/users/binarywc/)
 * (@binarywc)
 * [7 years ago](https://wordpress.org/support/topic/error-in-website-3/#post-11472435)
 * If you have not edited the theme.php file then the error is somewhere else, probably
   in your theme. Switch back to one of the default themes and see if the problem
   persists. My guess is the errors will not persist on a default theme which means
   the theme you are trying to use is not compatible with WP 5.1.1. It is probably
   time to look at choosing a new theme.
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [7 years ago](https://wordpress.org/support/topic/error-in-website-3/#post-11473363)
 * The first error does appear to be a file permission problem. If it was working
   before, what changed? If you didn’t do anything, there could be a hack.
    The 
   second error doesn’t make sense to me either. The code you posted matches what
   I see in WP 5.1.1 (you didn’t say what version you have), but the line 95 is 
   the ending brace. In my file, the next function is on line 109, called `wp_get_theme`.
   Note that there is no `s` on the end like the one in the error. Since this is
   core code, it seems to point to some sort of hack, or inexperienced code author.
   Again, if it was working before, what changed? Did you attempt to write some 
   code? Did you install a plugin? Either undo what you changed or manually reinstall
   WordPress.
 * Follow [this guide](https://wordpress.org/support/article/faq-my-site-was-hacked/)
   if you think it’s a hack. When you’re done, you may want to implement some (if
   not all) of [the recommended security measures](https://wordpress.org/support/article/hardening-wordpress/)
   and [start backing up your site](https://wordpress.org/support/article/wordpress-backups/).
 * Manual reinstall:
    Access your server via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/),
   or a file manager in your hosting account’s control panel, and delete then replace
   your copies of everything **except** the `wp-config.php` file and the `/wp-content/`
   directory with fresh copies from the download. This will effectively replace 
   all of your core files without damaging your content and settings. Some uploaders
   tend to be unreliable when overwriting files, so don’t forget to delete the original
   files before replacing them.
 *  [houssemmadani](https://wordpress.org/support/users/houssemmadani/)
 * (@houssemmadani)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/error-in-website-3/#post-11956975)
 * hi i have problem with my website and this is message error:
    PHP Fatal error:
   require(): Failed opening required ‘/home/agrovipaldz/public_html/wp-includes/
   post.php’ (include_path=’.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/
   agrovipaldz/public_html/wp-settings.php on line 167 help me please thank you

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

The topic ‘Error In Website’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 5 participants
 * Last reply from: [houssemmadani](https://wordpress.org/support/users/houssemmadani/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/error-in-website-3/#post-11956975)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
