• Resolved createitwebdesigns

    (@createitwebdesigns)


    We are trying to update the plugin from version 1.9.3 to current version 2.1.2. We receive a plugin fail error when we update the plugin. Below is the exact error:

    2022/04/28 18:03:51 [error] 3926#3926: *4 FastCGI sent in stderr: "PHP message: PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /www/abcde/public/wp-content/plugins/object-sync-for-salesforce/classes/salesforce_mapping.php on line 962PHP message: PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /www/abcde/public/wp-content/plugins/object-sync-for-salesforce/classes/salesforce_mapping.php on line 976" while reading response header from upstream, client: 72.49.7.198, server: staging-abcde.kinsta.cloud, request: "GET /wp-admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7.4-fpm-pbpohio.sock:", host: "staging-abcde.kinsta.cloud:48258"

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jonathan Stegall

    (@jonathanstegall)

    The log entry you’ve added seems to be a warning, rather than an error. If your site is crashing, I would anticipate that it would have additional errors that are not warnings; can you check and see if it does?

    To be more specific, that log message appears to be related to functionality that was deprecated in a prior version of PHP. The current version of the plugin doesn’t have that code, maybe because of that PHP change, but it does not appear that having it would cause actual errors, just the warning. Certainly it is not related to the upgrade process since that is part of version 1.9.3 of the plugin and not 2.1.2.

    You might also try downloading the plugin and installing it manually, as this might let you get around whatever is causing the automatic process to fail if you aren’t able to get more specific information about it. You can download a zip file of the plugin from the WordPress directory and upload it via FTP. I think I’d recommend that you do this on a staging server, if you have one. I’d definitely recommend a site and database backup, if you do not have a staging server.

    Thread Starter createitwebdesigns

    (@createitwebdesigns)

    Thank you. I’ll try manually updating the plugin. Here is an additional error.

    An error of type E_ERROR was caused in line 172 of the file /www/abcde/public/wp-content/plugins/object-sync-for-salesforce/vendor/prospress/action-scheduler/classes/ActionScheduler_Store.php. Error message: Uncaught Error: Class 'ActionScheduler_TimezoneHelper' not found in /www/abcde/public/wp-content/plugins/object-sync-for-salesforce/vendor/prospress/action-scheduler/classes/ActionScheduler_Store.php:172
    Stack trace:
    #0 /www/abcde/public/wp-content/plugins/object-sync-for-salesforce/vendor/prospress/action-scheduler/classes/ActionScheduler_wpPostStore.php(44): ActionScheduler_Store->get_scheduled_date_string_local(Object(ActionScheduler_Action), NULL)
    #1 /www/abcde/public/wp-content/plugins/object-sync-for-salesforce/vendor/prospress/action-scheduler/classes/ActionScheduler_wpPostStore.php(20): ActionScheduler_wpPostStore->create_post_array(Object(ActionScheduler_Action), NULL)
    #2 /www/abcde/public/wp-content/plugins/object-sync-for-salesforce/vendor/prospress/action-scheduler/classes/ActionScheduler_ActionFactory.php(109): ActionScheduler_wpPostStore->save_action(Object(ActionScheduler_Action))
    #3 /www/abcde/public/wp-content/plugins/object-sync-for-salesforce/vendor/prospress/a
    Plugin Author Jonathan Stegall

    (@jonathanstegall)

    That looks more troubling. It appears to be related to Action Scheduler, which is a third party library we use to schedule plugin tasks. One of the biggest back end changes between 1.9.3 and 2.1.2 was a major upgrade of Action Scheduler, so I do wonder if that upgrade process is failing (for whatever reason) and that is preventing the plugin from upgrading.

    I think I would still recommend manually updating the plugin, but would even more recommend either trying on a staging server and/or running file and database backups first.

    My hope is that after a manual upload the plugin will be able to complete all of the migration tasks that it needs to run, but I’ve never seen this error myself, so I can’t be sure. One other person had this issue in this forum post, but never responded as to whether it resolved itself with a manual upload.

    Thread Starter createitwebdesigns

    (@createitwebdesigns)

    Thank you, Jonathan. I appreciate the quick response. I’ll try manually updating the plugin. I need to reschedule time to do this with my client, so it may be a week or 2 before I respond. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin Fails to Update’ is closed to new replies.