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
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 ManagerWarning: 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"; }
The topic ‘Localhost php file warnings’ is closed to new replies.