Update from Version 2.3 to 2.4
Before starting the script update, please update the Ioncube Loader on your server to version 12.0 or higher (if the installed version is below 12 — instructions for checking the installed version). Your hosting provider's technical support can assist you with the update.
If you are using merchant and auto-payment modules developed specifically for you, please request the updated modules in your Telegram group (not through technical support via the bot).
If you are using merchant and auto-payment modules, as well as other types of modules from third-party developers, they will not work on version 2.4 without updates from the developers.
Before updating, make sure to back up your website and database!
If something goes wrong during the update, you can always restore your site from the backup. Backup methods may vary depending on your hosting provider, so it's advisable to contact their technical support for assistance.
The easiest way to back up your website is through your server's control panel (ISP Manager or other software) using the built-in file manager or via an FTP client (download the website files to your computer, and also download the database from the database management section or through PhpMyAdmin).
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.
In the "Plugins" section, deactivate the "Premium Exchanger" and "Premium Exchanger hooks" plugins.
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 themerchants
folder, you can delete it as well)/moduls/
If you are using the Webmoney module, do not delete the x19
folder inside the moduls
folder; if you are not using it, you can delete the moduls
folder entirely.
/paymerchants/
(if you haven't changed the names of the files and folders inside thepaymerchants
folder, you can delete it as well)/sms/
/userdata.php

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.
Make sure to complete step 4, even if the license files were previously uploaded to the server — otherwise, the site will not function!
Go to the "Your Scripts" section and download the archive with the files for updating to version 2.4 for your PHP version.
You need to know the exact PHP version installed on your server to select the appropriate archive.
Instructions for checking the PHP version installed on the server

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.
Go to the "Plugins" section and activate the "Premium Exchanger" and "Premium Exchanger hooks" plugins.
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.

By default, the number of requests = 50. If you are unsure about your server's capacity, we recommend not changing the default value.
You can specify any other value if necessary, but if the cycle execution with the specified value proves too resource-intensive for the server, it will result in an error.
Go to the "Settings → "Permalinks"** section and click the "Save Changes" button without making any changes on the page.
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.

The update mode is activated each time the main plugin is deactivated and reactivated, so it must always be manually disabled.
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.
Disable maintenance mode.
Last updated