Title: Localhost php file warnings
Last modified: August 21, 2016

---

# Localhost php file warnings

 *  Resolved [Snucker0](https://wordpress.org/support/users/snucker0/)
 * (@snucker0)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/localhost-php-file-warnings/)
 * I was hired to make edits to an existing WordPress website that I did not create.
 * Localhost setup with database, SQL, and URL redirects. Basically everything was
   accomplished on this website: [https://managewp.com/how-to-create-a-local-copy-of-a-live-wordpress-site](https://managewp.com/how-to-create-a-local-copy-of-a-live-wordpress-site)
 * I am using MAMP.
 * I am now receiving these warnings and need help gaining access to the site on
   my local host. Please note that the corresponding code is placed after each “
   Warning. and the corresponding line is italicized.”
 * **wp-config.php** information I think will be helpful:
 *     ```
       define( 'WPCACHEHOME', '/home/gabriell/public_html/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager
       define('WP_CACHE', true); //Added by WP-Cache Manager
       ```
   
 * Warning: include_once(/home/gabriell/public_html/wp-content/plugins/wp-super-
   cache/wp-cache-phase1.php): failed to open stream: No such file or directory 
   in /Applications/MAMP/htdocs/gabriell_welch/wp-content/advanced-cache.php on 
   line 10
 * Warning: include_once(): Failed opening ‘/home/gabriell/public_html/wp-content/
   plugins/wp-super-cache/wp-cache-phase1.php’ for inclusion (include_path=’.:/Applications/
   MAMP/bin/php/php5.5.10/lib/php’) in /Applications/MAMP/htdocs/gabriell_welch/
   wp-content/advanced-cache.php on line 10
 * **line 10**_ } elseif ( !include\_once( WPCACHEHOME . ‘wp-cache-phase1.php’ )){_
 *     ```
       <?php
       # WP SUPER CACHE 1.2
       function wpcache_broken_message() {
       	if ( false == strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-admin' ) )
       		echo "<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->";
       }
   
       if ( false == defined( 'WPCACHEHOME' ) ) {
       	define( 'ADVANCEDCACHEPROBLEM', 1 );
       } elseif ( !include_once( WPCACHEHOME . 'wp-cache-phase1.php' ) ) {
       	if ( !@is_file( WPCACHEHOME . 'wp-cache-phase1.php' ) ) {
       		define( 'ADVANCEDCACHEPROBLEM', 1 );
       	}
       }
       if ( defined( 'ADVANCEDCACHEPROBLEM' ) )
       	register_shutdown_function( 'wpcache_broken_message' );
       ?>
       ```
   
 * Notice: add_option was called with an argument that is deprecated since version
   2.3 with no alternative available. in /Applications/MAMP/htdocs/gabriell_welch/
   wp-includes/functions.php on line 3195
 * **line 3195** _trigger\_error( sprintf( \_\_(‘%1$s was called with an argument
   that is **deprecated** since version %2$s with no alternative available.’), $
   function, $version ) );_
 *     ```
       * The current behavior is to trigger a user error if WP_DEBUG is true.
        *
        * @since 3.0.0
        * @access private
        *
        * @param string $function The function that was called
        * @param string $version The version of WordPress that deprecated the argument used
        * @param string $message Optional. A message regarding the change.
        */
       function _deprecated_argument( $function, $version, $message = null ) {
   
       	/**
       	 * Fires when a deprecated argument is called.
       	 *
       	 * @since 3.0.0
       	 *
       	 * @param string $function The function that was called.
       	 * @param string $message  A message regarding the change.
       	 * @param string $version  The version of WordPress that deprecated the argument used.
       	 */
       	do_action( 'deprecated_argument_run', $function, $message, $version );
   
       	/**
       	 * Filter whether to trigger an error for deprecated arguments.
       	 *
       	 * @since 3.0.0
       	 *
       	 * @param bool $trigger Whether to trigger the error for deprecated arguments. Default true.
       	 */
       	if ( WP_DEBUG && apply_filters( 'deprecated_argument_trigger_error', true ) ) {
       		if ( function_exists( '__' ) ) {
       			if ( ! is_null( $message ) )
       				trigger_error( sprintf( __('%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s'), $function, $version, $message ) );
       			else
       				trigger_error( sprintf( __('%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s with no alternative available.'), $function, $version ) );
       		} else {
       			if ( ! is_null( $message ) )
       				trigger_error( sprintf( '%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s! %3$s', $function, $version, $message ) );
       			else
       				trigger_error( sprintf( '%1$s was called with an argument that is <strong>deprecated</strong> since version %2$s with no alternative available.', $function, $version ) );
       		}
       	}
       }
   
       /**
       ```
   
 * Fatal error: Call-time pass-by-reference has been removed in /Applications/MAMP/
   htdocs/gabriell_welch/wp-content/plugins/facebook-feed-grabber/facebook.php on
   line 486
 * **line 486** _$content = $cache->theMagic(&$this, ‘/’. $feed\_id .’/feed?date\
   _format=U’, (($cache\_feed * 60)));_
 *     ```
       // Overwrite the defaults and exract our arguments.
       		extract( array_merge($defaults, $args) );
   
       		// Get the feed (maybe it's cached?)
       		if ( $cache_feed != 0 ) {
   
       			// Include cache class
       			include_once 'caching.php';
   
       			// Initiate class
       			$cache = new ffg_cache();
   
       			// Let it do it's magic. (Will return the needed content)
       			$content = $cache->theMagic(&$this, '/'. $feed_id .'/feed?date_format=U', (($cache_feed * 60)));
   
       		} else
       			$content = $this->facebook->api('/'. $feed_id .'/feed?date_format=U');
   
       		if ( $content && count($content['data']) > 0 ) {
   
       			// Output string
       			$output = "";
   
       			// Count the items as we use them.
       			$count = 0;
   
       			// Open the container element?
       			if ( !empty($container) ) {
   
       				$container_id = ( !empty($container_id) ) ? " id='". $container_id ."'" : null;
       				$container_class = ( !empty($container_class) ) ? " class='". $container_class ."'" : null;
       				$output .= "<". $container . $container_id . $container_class .">\n";
   
       			}
       ```
   

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

 *  [Mark Wilkinson](https://wordpress.org/support/users/wpmarkuk/)
 * (@wpmarkuk)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/localhost-php-file-warnings/#post-5151393)
 * Can you login to your sites admin? If so the first think I would do is to update
   all the plugins and WordPress itself. Once everything is running up-to-date then
   it should fix some of those errors.
 *  Thread Starter [Snucker0](https://wordpress.org/support/users/snucker0/)
 * (@snucker0)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/localhost-php-file-warnings/#post-5151394)
 * Thanks Mark! I think it had something to do with the ports and plugins. Finally
   got it to work. Really appreciate your response!

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

The topic ‘Localhost php file warnings’ is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 2 replies
 * 2 participants
 * Last reply from: [Snucker0](https://wordpress.org/support/users/snucker0/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/localhost-php-file-warnings/#post-5151394)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
