• After moving to PHP 7, I get the following error when I try to add a new post or new page:

    Fatal error: Class ‘Google_Service_Resource’ not found in /home/<private>/public_html/wp-content/plugins/google-calendar-events/vendor/google/apiclient/src/Google/Service/Calendar.php on line 898

    If I switch back to PHP 5.6, everything works as expected.
    Diagnostics:

    ### WordPress Installation ###

    Site Name: Telecom Reseller
    Home URL: https://telecomreseller.com
    Site URL: https://telecomreseller.com
    Version: 4.7
    Locale: en_US
    Timezone: America/Los_Angeles
    Multisite: No
    Permalinks: /%year%/%monthnum%/%day%/%postname%/
    WP Memory Limit: 512 MB
    WP Debug Mode: No
    Script Debug: No

    ### Active Theme ###

    Theme: The Station – 2.2
    Child Theme: No
    Parent Theme: –

    ### Active Plugins ###

    SG CachePress: 2.3.11
    Restrict Categories: 2.6.3
    iQ Block Country: 1.1.38
    Search & Replace: 3.1.0
    Postman SMTP: 1.7.2
    EWWW Image Optimizer: 3.1.3
    Sucuri Security – Auditing, Malware Scanner and Hardening: 1.8.3
    Simple Calendar: 3.1.9
    Blackhole for Bad Bots: 1.4
    Akismet: 3.2
    AdRotate Professional: 4.1.5
    Yoast Breadcrumbs: 0.8.5
    External Links: 6.7
    Gravity Forms: 2.1.1
    UberMenu 3 – The Ultimate WordPress Mega Menu: 3.2.5
    WP-Optimize: 1.9.1
    Advanced Excerpt: 4.2.3
    VaultPress: 1.8.5
    Easy Table: 1.6
    WP-PageNavi: 2.91
    Jetpack by WordPress.com: 4.4.2
    Publish to Apple News: 1.1.9
    Blubrry PowerPress: 7.0.3
    Better WordPress Google XML Sitemaps: 1.4.1

    ### Server Environment ###

    Web Server: Apache/2.2.24 (Unix) mod_hive/5.5 mod_ssl/2.2.24 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_fastcgi/2.4.6 mod_bwlimited/1.4 mod_fcgid/2.3.6
    PHP Version: 5.6.28
    MySQL Version: 5.5.31-30.3-log
    Server Timezone: UTC
    Display Errors: Yes
    Memory Limit: 512M
    Upload Max Filesize: 512M
    Post Max Size: 512M
    Max Execution Time: –
    Max Input Vars: 9999
    fsockopen: Yes
    cURL: 7.51.0
    OpenSSL/1.0.2j
    SOAP: Yes
    SUHOSIN: No
    WP Remote POST: Yes
    WP Remote GET: Yes

    ### Client Information ###

    IP Address: 181.224.134.247
    Browser: Safari 10.0.1 (Apple)

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Nick Young

    (@nickyoung87)

    What version of PHP7? I run into no issues and I am on 7.0.8.

    Maybe after you update to PHP 7 also try going through this to see if there is a possible conflict: https://docs.simplecalendar.io/troubleshooting-theme-plugin-widget-conflicts/

    Thread Starter grudesky

    (@grudesky)

    My provider (SiteGround) is using PHP 7.0.13.

    Is the “Google_Service_Resource” from line 898 any kind of clue?

    I’m trying to isolate possible conflicts. Thanks.

    Ivan Yordanov

    (@ivanyordanov-1)

    SiteGround Representative

    Hello @grudesky

    I am part of the senior technical support team at SiteGround. Can you please let me know if yo have a ticket opened for the issue, maybe I would be able to help you with the investigation and figuring out what the problem is:)

    Plugin Contributor Nick Young

    (@nickyoung87)

    Hey just want to check back here, any additional info on this I need to know? Would love to get this resolved for you.

    Thread Starter grudesky

    (@grudesky)

    Ivan – it is ticket #2031649.

    Nick – I’m still working on it. I’ll keep you posted.

    Ivan Yordanov

    (@ivanyordanov-1)

    SiteGround Representative

    @grudesky Thanks for the info, I’ll continue the communication in the ticket in case I need some more info.

    Thread Starter grudesky

    (@grudesky)

    Nick-

    SiteGround has cleared up a few issues and narrowed it down to Simple Calendar.

    As soon as I activate the plug in I get:

    Fatal error: in /home/xxxxxx/public_html/wp-content/plugins/google-calendar-events/includes/feeds/grouped-calendars.php on line 56

    Plugin Contributor Nick Young

    (@nickyoung87)

    And that is on the new version of PHP correct? It works fine on the older version?

    I assume that since you were working with SiteGround that maybe they checked into this to make sure it is all setup also: https://docs.simplecalendar.io/system-requirements/

    In any case I am going to mark this as an issue for us to look into at some point when we can. Thanks for all the information.

    Thread Starter grudesky

    (@grudesky)

    PHP version 7 or greater: 7.0.13
    MySQL version 5.6 or greater OR MariaDB version 10.0 or greater: MySQL 5.5.31-30.3
    HTTPS (SSL) support: Yes, via Let’s Encrypt.

    Is the SQL version really a factor here?

    Does the error message Fatal error: in /home/xxxxxx/public_html/wp-content/plugins/google-calendar-events/includes/feeds/grouped-calendars.php on line 56 provide any clues?

    Plugin Contributor Nick Young

    (@nickyoung87)

    I am going to guess that it probably wouldn’t make a difference if you are already able to run WordPress.

    I am trying to figure out why it is erroring on that specific line.

    Only thing I can think of off the top of my head is something to do with:

    1. autoloading not working properly (but I think the error would be different)
    2. It is trying to call that function with a null object or something.

    Not really sure at this point. It is a pretty vague error unfortunately ??

    How are you adding this calendar into the page? Is it via shortocde or is it just the direct link to the calendar?

    Thread Starter grudesky

    (@grudesky)

    I use a shortcode. Here’s the page:

    https://telecomreseller.com/industry-events/

    Here’s the code from the backend:

    <div class=”cal-floatleft”>[calendar id=”59427″]</div>

    Plugin Contributor Nick Young

    (@nickyoung87)

    @grudesky

    Sorry for the late reply here. Any new developments?

    Have you already tried running the Simple Calendar plugins with no other plugins installed?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Error with PHP7’ is closed to new replies.