spatton99
Forum Replies Created
-
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.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 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.
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.
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
In reply to: [WP Job Manager] RSS Feed invalidupdating /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.