Update from Version 2.5 to 2.6

Video tutorial for updating the script
  1. In the exchange panel, go to the "Console" section and enable technical mode for the exchanger so that users cannot make 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/

  • /moduls/ (but first, read the text in the block below)

  • /sms/

  • /userdata.php

Delete all checked files and folders from your server
  1. Delete all files from the previous license in the root folder of your website.\

Go to the "Your Licenses" section and download the archive with the license files license.zip. To do this, click on the link "Download for version 2.6".

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

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

  1. Upload the contents of the update archive to the root folder of your website under the user created for the site (not root!). Use an FTP client or file manager. Extract the archive, replacing the 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.6)" block.

When starting 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 processed 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 large, 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 set 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 this section and save the changes.

  1. If you are using the "Parsers 2.0" or "Bestchange parser" modules, after disabling the update mode, you need to manually start the parsers in the corresponding sections by following the Cron link.

For the operation of Parsers 2.0:

For the operation of the BestChange parser:

  1. Make sure to delete any uploaded zip archives of the script and website backups from the root folder on the server.

  1. Disable maintenance mode in the "Console" section.

  2. The update was successful!

Changes in the Admin Panel

After the update, you need to make changes in the admin panel for the script to function correctly.

  1. To enable email registration confirmation, you need to activate the "Email Confirmation Before Registration" (confirmregmail) module in the "Modules" section. If you are not using this option, you can leave the module turned off.

2. Update the "Internal Account" module (only if internal accounts were used in version 2.5!). If you have not used internal accounts before and want to use them in version 2.6, skip this step. Activate the iac module in the "Modules" section and configure it according to the instructions.

If you are using the "Internal Account" (domacc) module, as well as merchant modules for receiving and auto payouts domacc:

It is necessary to switch to the new "Internal Account Module" (iac).

Instructions for transitioning to the new module:

  • Activate the new iac module in the "Modules" section (the domacc module must also be enabled for successful migration).

  • Sequentially perform the migration — steps 7 and 8 in the "Exchange Settings" -> "Migration" section.

  • Disable the old domacc module in the "Modules" section, and then delete the module from the server (the path to the module folder is wp-content/plugins/premiumbox/moduls/domacc)

  • Remove the merchant and auto payout domacc modules in the admin panel from the "Merchants" -> "Merchants" and "Merchants" -> "Auto Payouts" sections, then delete the modules from the server (the paths to the module folders are wp-content/plugins/premiumbox/moduls/merchants/domacc and wp-content/plugins/premiumbox/moduls/paymerchants/domacc).

  • Add the new merchant and auto payout iac in the "Merchants" -> "Merchants" and "Merchants" -> "Auto Payouts" sections and configure them according to the instructions.

  • Add the created merchants to the appropriate exchange directions (the "Merchants and Payouts" tab in the exchange direction settings).

Important! If the internal account number for debiting and/or crediting funds is not specified in the exchange form when using merchant modules for receiving and auto payouts, it will default to currency code + client id from the client's profile (section "Personal Data" -> "Internal Account").

If the account is specified in the exchange form, that account will be used for debiting/crediting (note that this way you can transfer currency to another user's account if their ID is known).

Continue with the script update.

  1. Starting from version 2.6, the "Captcha for the Site (Image Selection)" (sitecaptcha_img) module automatically generates options for users to choose from on the site. In the previous version of the module, you could create your own tasks; starting from version 2.6, this option has been disabled, so changes to the captcha's appearance will be reflected on the site immediately.

  2. After the update, in the "Exchange Settings" -> "General Settings" section, make sure to select the logic for handling requests when using receiving merchants for the option "Action if the merchant fails." For more details on how this option works, refer to the "General Merchant Settings" guide.

Last updated