*

webcity

  • *****
  • 283 posts
Error on upgrade to latest version
« on: April 10, 2025, 06:13:06 PM »
Hi,

I've just downloaded OsClass Pay plugin v4.01 to upgrade my previous v3 version.

I've uploaded the new version and tried it out, all seems OK until I tried to use the Stripe payment link, which gave an error.

I then disabled and re-enabled the plugin. I get the following error when I re-enable the plugin:

Code: [Select]

Fatal error: Uncaught Exception: Error importSQL::ModelOSP<br>osclass_pay/model/struct_update_111.sql<br>1060 - Duplicate column name 'i_shipping' in /home/mysite/public_html/oc-content/plugins/osclass_pay/model/ModelOSP.php:135 Stack trace: #0 /home/mysite/public_html/oc-content/plugins/osclass_pay/model/ModelOSP.php(383): ModelOSP->import() #1 /home/mysite/public_html/oc-content/plugins/osclass_pay/model/ModelOSP.php(697): ModelOSP->install() #2 /home/mysite/public_html/oc-content/plugins/osclass_pay/index.php(1045): ModelOSP->versionUpdate() #3 /home/mysite/public_html/oc-includes/osclass/classes/Plugins.php(41): osp_update_version() #4 /home/mysite/public_html/oc-includes/osclass/classes/Plugins.php(372): Plugins::runHook() #5 /home/mysite/public_html/oc-admin/plugins.php(375): Plugins::activate() #6 /home/mysite/public_html/oc-admin/index.php(158): CAdminPlugins->doModel() #7 {main} thrown in /home/mysite/public_html/oc-content/plugins/osclass_pay/model/ModelOSP.php on line 135

« Last Edit: April 10, 2025, 06:16:35 PM by webcity »

*

webcity

  • *****
  • 283 posts
Re: Error on upgrade to latest version
« Reply #1 on: April 12, 2025, 04:30:56 AM »
Hi,

Is there a solution to make the v4.01 upgrade work? If not I'll re-install the older version. I can not delete the plugin and re-install it as I would loose all my customers sales data.

Many thanks

Marked as best answer by frosticek on April 23, 2025, 04:30:07 PM
*

MB Themes

Re: Error on upgrade to latest version
« Reply #2 on: April 14, 2025, 10:49:21 AM »
In t_preference table in database, find this one:
Code: [Select]
    osc_set_preference('version', 115, 'plugin-osclass_pay', 'INTEGER');

version for plugin-osclass_pay.
Try to increase it by one number from your current (probably <= 110) and each time you increase number, try to re-enable plugin until you get to 115.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

webcity

  • *****
  • 283 posts
Re: Error on upgrade to latest version
« Reply #3 on: April 14, 2025, 03:36:22 PM »
Thanks for your help. That worked great and fixed the upgrade :-)