Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • My site crashed within one minute of the automatic updating to 3.1.4. I could restart the site only if I deactivated the Future plugin.

    Here is the automated error report:

    WordPress version 6.4.2
    Active theme: Mission News Child (version 1.0)
    Current plugin: PublishPress Future (version 3.1.4)
    PHP version 8.0.30



    Error Details
    =============
    An error of type E_ERROR was caused in line 41 of the file /home1/akdlt/public_html/bracttakka/wp-content/plugins/post-expirator/src/Modules/Settings/Models/SettingsPostTypesModel.php. Error message: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in /home1/akdlt/public_html/bracttakka/wp-content/plugins/post-expirator/src/Modules/Settings/Models/SettingsPostTypesModel.php:41
    Stack trace:
    #0 /home1/akdlt/public_html/bracttakka/wp-content/plugins/post-expirator/src/Modules/Settings/Models/SettingsPostTypesModel.php(41): array_map('intval', '65,85,96')
    #1 /home1/akdlt/public_html/bracttakka/wp-content/plugins/post-expirator/src/Modules/Expirator/Models/PostTypesModel.php(29): PublishPress\Future\Modules\Settings\Models\SettingsPostTypesModel->getPostTypesSettings()
    #2 /home1/akdlt/public_html/bracttakka/wp-content/plugins/post-expirator/src/Modules/Expirator/Controllers/BulkActionController.php(68): PublishPress\Future\Modules\Expirator\Models\PostTypesModel->getActivatedPostTypes()
    #3 /home1/akdlt/public_html/bracttakka/wp-content/plugins/post-expirator/src/Modules/Expirator/Controllers/BulkActionController.php(55): PublishPress\Future\Modules\Expirator\Controllers\BulkActionController->addHooks()
    #4 /home1/akdlt/public_html/bracttakka/wp-content/plugins/post-expirator/src/Modules/Expirator/Module.php(128): PublishPress\Future\Modules\Expirator\Controllers\BulkActionController->initialize()
    #5 /home1/akdlt/public_html/bracttakka/wp-content/plugins/post-expirator/src/Core/Plugin.php(115): PublishPress\Future\Modules\Expirator\Module->initialize()
    #6 /home1/akdlt/public_html/bracttakka/wp-content/plugins/post-expirator/src/Core/Plugin.php(108): PublishPress\Future\Core\Plugin->initializeModules()
    #7 /home1/akdlt/public_html/bracttakka/wp-content/plugins/post-expirator/post-expirator.php(126): PublishPress\Future\Core\Plugin->initialize()
    #8 /home1/akdlt/public_html/bracttakka/wp-includes/class-wp-hook.php(322): PublishPress\Future\{closure}()
    #9 /home1/akdlt/public_html/bracttakka/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #10 /home1/akdlt/public_html/bracttakka/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #11 /home1/akdlt/public_html/bracttakka/wp-settings.php(643): do_action('init')
    #12 /home1/akdlt/public_html/bracttakka/wp-config.php(101): require_once('/home1/akdlt...')
    #13 /home1/akdlt/public_html/bracttakka/wp-load.php(50): require_once('/home1/akdlt...')
    #14 /home1/akdlt/public_html/bracttakka/wp-login.php(12): require('/home1/akdlt...')
    #15 {main}
      thrown

    The page source looks like this:

    <div class=”entry-content”>
    <p></p>
    <div class=”simcal-calendar simcal-default-calendar …

    The page source looks like this:

    <div class=”entry-content”>
    <p></p>
    <div class=”simcal-calendar simcal-default-calendar …

    I’m having the same problem with too much vertical blank space above and below a Simple Calendar list embedded in a post. When I look at the page source generated, it looks like Simple Calendar is embedding “<p></p>” before and after its calendar list. In my Edit Calendar text, I have just:

    [link][event-title][/link] [if-not-all-day] — [start-time][/if-not-all-day]

    and in the post in which the Simple Calendar is embedded, I have just

    [calendar id=”2917″]
    Click on any event for more information

    How can I suppress the <p></p> ?

    I too found the same error, but only when NOT logged into WordPress. The site is hosted on GoDaddy’s Managed WordPress platform.

    Today I renamed object-cache.php and that seems to have removed the error and not caused any other problems yet.

    brucehenderson

    (@brucehenderson)

    I found that my API key works fine if I do not specify any IP addresses. It was getting hung up on that.

    Thanks, Phil, for great work on this and rapid response over the last week in particular!

    brucehenderson

    (@brucehenderson)

    Well, I got it working just fine …but only if I leave the API key field blank. If I put in my API, then for the first display (i.e., when the cache is cleared), I get this error:

    Warning: Invalid argument supplied for foreach() in /home/content/...[site-specific-info removed].../wp-content/plugins/google-calendar-events/includes/class-gce-feed.php on line 158

    And in subsequent redisplays (that are reading the cache), I get “No events to display.”

    I generated the API key as a public key, specifying my server’s IP address. I made sure that the Calendar API is active. I used copy and paste to copy the API key from the Google console to GCE. Can anyone give me pointers about what I might be doing wrong? Thanks.

    brucehenderson

    (@brucehenderson)

    Just to be clear… In that error message, I replaced site-specific directory info with “…[site-specific-info removed]…” but it did not come out the way I expected!

    brucehenderson

    (@brucehenderson)

    I updated to GCE 2.1.1, and I created a new calendar (as recommended by FGD Member, cited in comment 52 above). When I try to display the feed, I get this message the first time (when there is no cache, I guess):

    Warning: Invalid argument supplied for foreach() in /home/content/<em>...[site-specific-info removed]...</em>/wp-content/plugins/google-calendar-events/includes/class-gce-feed.php on line 158

    And in subsequent redisplays, I get “No events to display.


    I use code like this

    <font face="Helvetica Neue,arial, Helvetica,Nimbus Sans L,sans-serif" size="-1">
    [if-not-all-day][start-date], [start-custom format="g:iA"][/if-not-all-day]
    [if-all-day][start-date][/if-all-day]
    </font> <b>   [event-title]</b>
    [if-description][link newwindow="true"]<font color="#888888"><font size="-1">(details...)</font></font>[/link][/if-description]

    to generate lists of events in posts like this:
    https://newtonsouthptso.org/2012/10/upcoming-events/


    I use code like this

    [if-all-day]<font color="#0D7813">[event-title html="true"] </font> [/if-all-day]
    [if-not-all-day]<font color="#0D7813">[event-title] <em>[start-custom format="g:ia"]</em></font> [/if-not-all-day]
    [if-description][link newwindow="true"]<font color="#c0c0c0"><i>(details)</i></font>[/link][/if-description]

    to generate lists of the same events in widgets (as in the Upcoming Events widget on the page linked above).


    For both of those code snippets, I vary the text colors to indicate different events from different Google calendars.


    I use code like this

    [if-all-day]<font color="#0D7813">[event-title html="true"] </font> [/if-all-day]
    [if-not-all-day]<font color="#0D7813">[event-title] <em>[start-custom format="g:ia"]</em></font> [/if-not-all-day]
    [if-description][link newwindow="true"]<font color="#c0c0c0"><i>(details)</i></font>[/link][/if-description]

    for a few dozen different high-school sports calendars, varying the text colors by sport (each sport in a different Google Calendar). For a list of just the Home games, I use the Search Query function in the 0.7.1 developer version to select only those events that have ” hosts ” in the event title.

    Home games: https://newtonsouthptso.org/category/upcoming-athletics/ (there might not be any events there yet because the school year has not yet started)

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