• Resolved Dave Parker

    (@deapness)


    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/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @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

    (@deapness)

    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.

    Hi @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

    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

    (@deapness)

    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

    Thanks!

    Hi @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

    (@deapness)

    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

    (@wpmudev-support1)

    Hi @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

    (@deapness)

    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

    (@wpmudev-support1)

    Hi @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.