InvalidArgumentException
file does not exist InvalidArgumentException thrown with message "file does not exist" Stacktrace: #4 InvalidArgumentException in /mnt/data/home/772241.cloudwaysapps.com/csvsytgrap/public_html/wp-content/plugins/googleDriveApiImageUpload/vendor/google/apiclient/src/Google/Client.php:839 #3 Google_Client:setAuthConfig in /mnt/data/home/772241.cloudwaysapps.com/csvsytgrap/public_html/wp-content/themes/asap/cityTemplate.php:387 #2 include in /mnt/data/home/772241.cloudwaysapps.com/csvsytgrap/public_html/wp-includes/template-loader.php:106 #1 require_once in /mnt/data/home/772241.cloudwaysapps.com/csvsytgrap/public_html/wp-blog-header.php:19 #0 require in /mnt/data/home/772241.cloudwaysapps.com/csvsytgrap/public_html/index.php:17
Stack frames (5)
4
InvalidArgumentException
/wp-content/plugins/googleDriveApiImageUpload/vendor/google/apiclient/src/Google/Client.php839
3
Google_Client setAuthConfig
/wp-content/themes/asap/cityTemplate.php387
2
include
/wp-includes/template-loader.php106
1
require_once
/wp-blog-header.php19
0
require
/index.php17
/mnt/data/home/772241.cloudwaysapps.com/csvsytgrap/public_html/wp-content/plugins/googleDriveApiImageUpload/vendor/google/apiclient/src/Google/Client.php
   * @throws Google_Exception
   */
  public function setAuthConfigFile($file)
  {
    $this->setAuthConfig($file);
  }
 
  /**
   * Set the auth config from new or deprecated JSON config.
   * This structure should match the file downloaded from
   * the "Download JSON" button on in the Google Developer
   * Console.
   * @param string|array $json the configuration json
   * @throws Google_Exception
   */
  public function setAuthConfig($config)
  {
    if (is_string($config)) {
      if (!file_exists($config)) {
        throw new InvalidArgumentException('file does not exist');
      }
 
      $json = file_get_contents($config);
 
      if (!$config = json_decode($json, true)) {
        throw new LogicException('invalid json for auth config');
      }
    }
 
    $key = isset($config['installed']) ? 'installed' : 'web';
    if (isset($config['type']) && $config['type'] == 'service_account') {
      // application default credentials
      $this->useApplicationDefaultCredentials();
 
      // set the information from the config
      $this->setClientId($config['client_id']);
      $this->config['client_email'] = $config['client_email'];
      $this->config['signing_key'] = $config['private_key'];
      $this->config['signing_algorithm'] = 'HS256';
    } elseif (isset($config[$key])) {
/mnt/data/home/772241.cloudwaysapps.com/csvsytgrap/public_html/wp-content/themes/asap/cityTemplate.php
 
}
$context['metroCityList']='';//$metroCityList;
$context['metro_heading']=$metro_heading;
$context['remove_faq']=get_field('remove_faq');
 
 
$dumpster_min_max_price=get_transient( 'dumpster_min_max_price' );
$portable_min_max_price=get_transient( 'portable_min_max_price' );
$faq_portable_min_max_price=get_transient( 'faq_portable_min_max_price' );
$faq_dumpster_min_max_price=get_transient( 'faq_dumpster_min_max_price' );
 
if(empty($dumpster_min_max_price) || empty($portable_min_max_price)) {
 
    if($terms_service[0]->name == 'Dumpster') {
        $client = new \Google_Client();
        $client->setApplicationName('Google Sheets and PHP');
        $client->setScopes([\Google_Service_Sheets::SPREADSHEETS]);
        $client->setAccessType('offline');
        $client->setAuthConfig(__DIR__ . '/assets/credentials.json');
        $service = new Google_Service_Sheets($client);
        $spreadsheetId = "1arPyVuYZ8newxS6tlr2y__0oSpuMSoVU42LujKZqqoc"; //It is present in the spreadsheet URL
//Adding the data in your google sheet and get column G to BL data
        $range = 'Dumpster Locations!AS:BR';
        $response = $service->spreadsheets_values->get($spreadsheetId, $range);
        $rows = $response->getValues();
        set_transient('dumpster_min_max_price', $rows, 60 * 60 * 168);
        //********Rang For FAQ *************//
        $rangeFAQ = 'Dumpster Locations!BK:CO';
        $responseFAQ = $service->spreadsheets_values->get($spreadsheetId, $rangeFAQ);
        $rowsFAQ = $responseFAQ->getValues();
        $rangeFAQ = 'Dumpster Locations!BS:DA';
        $responseFAQ = $service->spreadsheets_values->get($spreadsheetId, $rangeFAQ);
        $rowsFAQ = $responseFAQ->getValues();
        set_transient('faq_dumpster_min_max_price', $rowsFAQ, 60 * 60 * 168);
    }
    if($terms_service[0]->name == 'Portable') {
        $client = new \Google_Client();
        $client->setApplicationName('Google Sheets and PHP');
        $client->setScopes([\Google_Service_Sheets::SPREADSHEETS]);
/mnt/data/home/772241.cloudwaysapps.com/csvsytgrap/public_html/wp-includes/template-loader.php
            }
 
            break;
        }
    }
 
    if ( ! $template ) {
        $template = get_index_template();
    }
 
    /**
     * Filters the path of the current template before including it.
     *
     * @since 3.0.0
     *
     * @param string $template The path of the template to include.
     */
    $template = apply_filters( 'template_include', $template );
    if ( $template ) {
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
/mnt/data/home/772241.cloudwaysapps.com/csvsytgrap/public_html/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
/mnt/data/home/772241.cloudwaysapps.com/csvsytgrap/public_html/index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE Apache/2.4.62 (Debian)
REQUEST_URI /locations/ca/riverside-county/la-quinta/roll-off-dumpster-rentals/
WP_REDIS_DISABLED 0
USER csvsytgrap
HOME /home/772241.cloudwaysapps.com/csvsytgrap
SCRIPT_NAME /index.php
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.0
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /locations/ca/riverside-county/la-quinta/roll-off-dumpster-rentals/
REMOTE_PORT 11366
SCRIPT_FILENAME /home/772241.cloudwaysapps.com/csvsytgrap/public_html/index.php
SERVER_ADMIN [no address given]
CONTEXT_DOCUMENT_ROOT /home/772241.cloudwaysapps.com/csvsytgrap/public_html/
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /home/772241.cloudwaysapps.com/csvsytgrap/public_html/
REMOTE_ADDR 18.97.14.91
SERVER_PORT 80
SERVER_ADDR 127.0.0.1
SERVER_NAME www.asapmarketplace.com
SERVER_SIGNATURE <address>Apache/2.4.62 (Debian) Server at www.asapmarketplace.com Port 80</address>
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_CONNECTION close
HTTP_X_VERSION latest
HTTP_X_APP_USER csvsytgrap
HTTP_X_APPLICATION varnishpass
HTTP_X_FORWARDED_HOST www.asapmarketplace.com
HTTP_X_FORWARDED_PROTO https
HTTP_HOST www.asapmarketplace.com
HTTP_X_FORWARDED_FOR 18.97.14.91
HTTP_X_REAL_IP 18.97.14.91
IMUNIFY360_WEAKPASS_REDIRECT_URL appsecurity.cloudwaysapps.com/
IMUNIFY360_COMPROMISED_REDIRECT_URL appsecurity.cloudwaysapps.com/
SCRIPT_URI http://www.asapmarketplace.com/locations/ca/riverside-county/la-quinta/roll-off-dumpster-rentals/
SCRIPT_URL /locations/ca/riverside-county/la-quinta/roll-off-dumpster-rentals/
HTTP_AUTHORIZATION
HTTPS on
cw_allowed_ip 0
UNIQUE_ID Z1aenLLZkviPVJU39UYXsgAADwA
REDIRECT_STATUS 200
REDIRECT_IMUNIFY360_WEAKPASS_REDIRECT_URL appsecurity.cloudwaysapps.com/
REDIRECT_IMUNIFY360_COMPROMISED_REDIRECT_URL appsecurity.cloudwaysapps.com/
REDIRECT_SCRIPT_URI http://www.asapmarketplace.com/locations/ca/riverside-county/la-quinta/roll-off-dumpster-rentals/
REDIRECT_SCRIPT_URL /locations/ca/riverside-county/la-quinta/roll-off-dumpster-rentals/
REDIRECT_HTTP_AUTHORIZATION
REDIRECT_HTTPS on
REDIRECT_cw_allowed_ip 0
REDIRECT_UNIQUE_ID Z1aenLLZkviPVJU39UYXsgAADwA
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1733729948.1454
REQUEST_TIME 1733729948
ENVIRONMENT production
SITE_URL https://www.asapmarketplace.com
HOME_URL https://www.asapmarketplace.com
GOOGLE_MAPS_API_KEY AIzaSyA2s6supKf8cbVia0Jf0WE5QCnHZ9KBAmA
Key Value
ENVIRONMENT production
SITE_URL https://www.asapmarketplace.com
HOME_URL https://www.asapmarketplace.com
GOOGLE_MAPS_API_KEY AIzaSyA2s6supKf8cbVia0Jf0WE5QCnHZ9KBAmA
0. Whoops\Handler\PrettyPageHandler