Update from Version 2.3 to 2.4

Video tutorial for updating the script
  1. In the exchange panel, go to the "Console" section and enable technical mode to prevent users from making requests on the site during the script update.

  2. In the "Plugins" section, deactivate the "Premium Exchanger" and "Premium Exchanger hooks" plugins.

  3. Using an FTP client or file manager, delete the contents of the /wp-content/plugins/premiumbox/ folder on the server, except for the following files and folders inside it:

  • /flags/

  • /languages/

  • /merchants/ (if you haven't changed the names of the files and folders inside the merchants folder, you can delete it as well)

  • /moduls/

  • /paymerchants/ (if you haven't changed the names of the files and folders inside the paymerchants folder, you can delete it as well)

  • /sms/

  • /userdata.php

  1. Go to the "Your Licenses" section and download the archive with the license files license.zip. Click on the link "Download for version 2.4".

Upload the downloaded archive to the root folder of your website using the user created for the site (not root!) and make sure to extract the archive.

  1. Go to the "Your Scripts" section and download the archive with the files for updating to version 2.4 for your PHP version.

  1. Upload the contents of the update archive to the root folder of your website using the user created for the site (not root!). Use an FTP client or file manager. Extract the archive, replacing the existing files.

  2. Go to the "Plugins" section and activate the "Premium Exchanger" and "Premium Exchanger hooks" plugins.

  3. Navigate to the "Exchange Settings → "Migration"** section and sequentially complete each step in the "Migration (if version is less than 2.4)" block.

When you start each step, the system will determine the total number of requests that need to be processed. You can specify the number of requests to be handled in one cycle.

You will see "Technical Step X" buttons next to the "Step X" buttons. Before executing each step, the system determines the number of requests that need to be processed. In some cases, the number of requests may be too high, and the server may struggle to handle the count. In this case, instead of the "Step X" button, you should use the "Technical Step X" button, which allows you to manually specify an arbitrary number of requests without the server counting them.

If you use the technical step, you will need to manually specify the number of requests. We recommend setting a large number, such as 100,000.

  1. Go to the "Settings → "Permalinks"** section and click the "Save Changes" button without making any changes on the page.

  2. Navigate to the "Exchange Settings → "General Settings"** section and disable the update mode.

An alternative option is to select "No" for the "Update Mode" parameter in the same section and save the changes.

  1. Make sure to delete all previously uploaded zip archives of the script and website backups from the root folder on the server, as well as the file damp_db.sql.

  2. Disable maintenance mode.

Last updated