Title: spatton99's Replies | WordPress.org

---

# spatton99

  [  ](https://wordpress.org/support/users/spatton99/)

 *   [Profile](https://wordpress.org/support/users/spatton99/)
 *   [Topics Started](https://wordpress.org/support/users/spatton99/topics/)
 *   [Replies Created](https://wordpress.org/support/users/spatton99/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/spatton99/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/spatton99/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/spatton99/engagements/)
 *   [Favorites](https://wordpress.org/support/users/spatton99/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Constant Contact Forms] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + string](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-unsupported-operand-types-string-string-3/)
 *  [spatton99](https://wordpress.org/support/users/spatton99/)
 * (@spatton99)
 * [8 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-unsupported-operand-types-string-string-3/#post-18754048)
 * To be clear, the issue only happens when that function is called. What exactly
   triggers the function call, I couldn’t say for sure – I’m just a user. Considering
   it’s a function called `access_token_maybe_expired()` and it’s in `/includes/
   class-api.php`, logically, I would assume that the function is called upon authentication(
   or lack thereof) to an API.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Constant Contact Forms] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + string](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-unsupported-operand-types-string-string-3/)
 *  [spatton99](https://wordpress.org/support/users/spatton99/)
 * (@spatton99)
 * [8 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-unsupported-operand-types-string-string-3/#post-18753949)
 * My *guess* is that since this function is called `access_token_maybe_expired()`,
   it only gets called in certain scenarios. I know that in our case, the plugin
   was installed by a previous dev, and there’s no indication in our docs anywhere
   of what account he used to register the plugin, or if it was registered by the
   client because he had granted the client an admin role.
 * We’ve had the `Constant Contact Forms has detected errors that indicate a need
   to manually disconnect and reconnect your Constant Contact account. Visit the
   [Connection Settings](https://racsjc.org/wp-admin/edit.php?post_type=ctct_forms&page=ctct_options_connect)
   to manage.` message for a while now, but we can’t disconnect and reconnect because
   we have no indication of what the account should be.
 * The site where we’re using this plugin has already signed on for a rebuild, and
   we’ll likely end up using a different solution for the forms than what he used
   so that we can maintain consistency with our other sites.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Constant Contact Forms] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + string](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-unsupported-operand-types-string-string-3/)
 *  [spatton99](https://wordpress.org/support/users/spatton99/)
 * (@spatton99)
 * [8 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-unsupported-operand-types-string-string-3/#post-18753906)
 * I’m running PHP 8.4. Since PHP 8 no longer allows string + string operations 
   and WordPress stores option values as strings, the operands need to be cast to
   integers. The fix above works universally for PHP 8.0+. It’s a plugin-side type-
   safety issue rather than an environment issue.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Constant Contact Forms] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + string](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-unsupported-operand-types-string-string-3/)
 *  [spatton99](https://wordpress.org/support/users/spatton99/)
 * (@spatton99)
 * [8 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-unsupported-operand-types-string-string-3/#post-18753840)
 * The (temporary) fix until there’s a patch issued by the developer is to change
   line 1687 of `/includes/class-api.php` 
   FROM:`$expiration_time = $issued_time
   + $expires_in;`TO:`$expiration_time = (int) $issued_time + (int) $expires_in;`
   the code doesn’t currently ensure that the strings are cast as integers.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Job Manager] RSS Feed invalid](https://wordpress.org/support/topic/rss-feed-invalid-9/)
 *  Thread Starter [spatton99](https://wordpress.org/support/users/spatton99/)
 * (@spatton99)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/rss-feed-invalid-9/#post-18054692)
 * updating /includes/class-wp-job-manager-post-types.php lines 839-844:
   `/*** Adds
   a custom namespace to the job feed.*/public function job_feed_namespace() {echo"\
   n" . ' xmlns:job_listing="' . esc_url( site_url() ) . '"' . "\n";}
 * seems to fix the validator problem.

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