Title: Require_once(service/Google_Utils.php)
Last modified: August 21, 2016

---

# Require_once(service/Google_Utils.php)

 *  Resolved [Dave Parker](https://wordpress.org/support/users/deapness/)
 * (@deapness)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/require_onceservicegoogle_utilsphp/)
 * When I try to activate the plugin I get this error:
 * Warning: require_once(services/Google_Utils.php) [function.require-once]: failed
   to open stream: No such file or directory in /_[path]_/wp-content/plugins/appointments/
   includes/gcal/auth/Google_OAuth2.php on line 20
 * Fatal error: require_once() [function.require]: Failed opening required ‘service/
   Google_Utils.php’ (include_page=’/_[path]_/’) in /_[path]_/wp-content/plugins/
   appointments/appointments/includes/gcal/auth/Google_OAuth2.php on line 20
 * I’ve tried activating the plugin with all other plugins deactivated but that 
   did not help.
 * Any ideas?
 * Thanks!
 * [https://wordpress.org/plugins/appointments/](https://wordpress.org/plugins/appointments/)

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

 *  Plugin Contributor [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/require_onceservicegoogle_utilsphp/#post-5034812)
 * Hi [@deapness](https://wordpress.org/support/users/deapness/),
 * Sorry to hear of the problem you are having.
 * I have tested the latest version of Appointments plugin on my test site and found
   it’s working fine without any issue even i tested it setting wp-debug to true.
 * Could you please try deleting and re-installing fresh latest version of Appointments
   plugin?
 * Kind Regards,
    WPMU DEV
 *  Thread Starter [Dave Parker](https://wordpress.org/support/users/deapness/)
 * (@deapness)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/require_onceservicegoogle_utilsphp/#post-5034823)
 * Hi WPMU DEV,
 * Thanks for the fast reply!
 * I tried deleting and reinstalling with the latest Appointments plugin (1.4.4)
   and still am experiencing this issue.
 *  [David](https://wordpress.org/support/users/ugotsta/)
 * (@ugotsta)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/require_onceservicegoogle_utilsphp/#post-5034919)
 * Hi [@deapness](https://wordpress.org/support/users/deapness/),
 * Thanks for your reply. This isn’t something we can replicate at all. It sounds
   like that one file isn’t actually getting installed, or possibly isn’t accessible
   on your site for some reason.
 * Could I ask for you to download the plugin directly here:
    [http://downloads.wordpress.org/plugin/appointments.zip](http://downloads.wordpress.org/plugin/appointments.zip)
 * And then install the files manually via FTP?
 * Or if you could simply verify the following folder exists on your site:
    /appointments/
   includes/gcal/service/
 * Along with the file Google_Utils.php, that would help.
 * Could you let us know if that’s the case?
 * Thanks,
    David
 *  Thread Starter [Dave Parker](https://wordpress.org/support/users/deapness/)
 * (@deapness)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/require_onceservicegoogle_utilsphp/#post-5034947)
 * Hi David,
 * I tried doing as you suggested but the error still is happening.
 * Here is a screenshot confirming the folder/file:
 * > [View post on imgur.com](https://imgur.com/tj6HZhA)
 * Thanks!
 *  [David](https://wordpress.org/support/users/ugotsta/)
 * (@ugotsta)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/require_onceservicegoogle_utilsphp/#post-5034973)
 * Hi [@deapness](https://wordpress.org/support/users/deapness/),
 * Hmm, that’s really strange. Could I ask for you to check the file and folder 
   permissions on your server for that file and also the /service/ folder?
 * Could you let us know what the permissions are?
 * Thanks,
    David
 *  Thread Starter [Dave Parker](https://wordpress.org/support/users/deapness/)
 * (@deapness)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/require_onceservicegoogle_utilsphp/#post-5034985)
 * Hi David,
 * I’ve tried setting the appointments folder and everything in it to 777 just to
   test and it still is causing the same error.
 * Something to note: I have tried this plugin on different websites on the same
   server and sometimes it has the error and sometimes it doesn’t.
 * Thanks!
 *  Plugin Contributor [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/require_onceservicegoogle_utilsphp/#post-5034986)
 * Hi [@deapness](https://wordpress.org/support/users/deapness/),
 * Could you please try editing the following Appointments plugin file on line number
   20 as shown below?
 * **Appointments plugin file:**
    plugins/appointments/includes/gcal/auth/Google_OAuth2.
   php
 * **Before Editing:**
 *     ```
       require_once "service/Google_Utils.php";
       ```
   
 * **After Editing:**
 *     ```
       require_once plugin_dir_path( __FILE__ )."includes/gcal/service/Google_Utils.php";
       ```
   
 * Best Regards,
    WPMU DEV
 *  Thread Starter [Dave Parker](https://wordpress.org/support/users/deapness/)
 * (@deapness)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/require_onceservicegoogle_utilsphp/#post-5035014)
 * Hi WPMU DEV,
 * I have got it to work based on these last instructions! It was a little bit different,
   though:
 * I replaced line 20 with this code:
 * `require_once plugin_dir_path( __FILE__ )."Google_Utils.php";`
 * And duplicated the “Google_Utils.php” file into /gcal/auth/
 * Then I got similar errors in the /gcal/io/ folder so I changed lines 18-20 in
   Google_IO.php to
 *     ```
       require_once plugin_dir_path( __FILE__ ).'Google_HttpRequest.php';
       require_once plugin_dir_path( __FILE__ ).'Google_CurlIO.php';
       require_once plugin_dir_path( __FILE__ ).'Google_REST.php';
       ```
   
 * And it worked!
 *  Plugin Contributor [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/require_onceservicegoogle_utilsphp/#post-5035016)
 * Hi [@deapness](https://wordpress.org/support/users/deapness/),
 * Awesome, great to see you made that worked.
 * If I can be of any further assistance please don’t hesitate to ask 🙂
 * Cheers,
    WPMU DEV

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

The topic ‘Require_once(service/Google_Utils.php)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/appointments_eaf36c.svg)
 * [Appointments](https://wordpress.org/plugins/appointments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/appointments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/appointments/)
 * [Active Topics](https://wordpress.org/support/plugin/appointments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/appointments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/appointments/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/require_onceservicegoogle_utilsphp/#post-5035016)
 * Status: resolved