Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Download error on local MAMP migration

Featured Replies

Hi, I’m trying to migrate from Prestashop 1.6.1.18 to Thirty Bees 1.0.7 on a local MAMP server website but I'm getting an 'Error during download' message.

Can anyone help? Thanks

Could you give a few more details?

Did the module install?

Does the migration process start (panels change, a text view appears) ?

What are the last messages in this text log?

  • Author

Hi Traumflug, thanks for the reply.

The modules installed correctly and the migration process starts, but after a few seconds I receive the following message in the Activity Log

0_1538656638585_30bees_screen.jpg

Isn't it better to migrate from PS to Tb 1.0.6 and after that upgrade to 1.0.7?

  • Author

Hi Peter.

it seems to me that the thirty bees migration module allows only the upgrade to the latest version (1.0.7)

Since the download took only 1 second, I assume the problem is in misconfiguration of your server. You probably do not have curl installed, or you might have some firewall that prevents the operation.

I just tested it, and it works. Download took 93 seconds though, so I had to extend timeout limit on my nginx.

Isn’t it better to migrate from PS to Tb 1.0.6 and after that upgrade to 1.0.7?

No longer possible. Since about yesterday, the migration module migrates straight to 1.0.7.

Download took 93 seconds though

Github is so slow :-/ Even at off times I get only some 10 Mbit, which means a ~30 seconds download for just 40 MiB.

@marcosig said in Download error on local MAMP migration:

The modules installed correctly and the migration process starts, but after a few seconds I receive the following message in the Activity Log

Thanks, the picture is very helpful.

Do you see this Archives will come from ... message? One can try to download these two links with a browser or with command line curl/wget as well. This should work, it's a plain HTTP file download.

If you manage to get these two files another way, you can place these two ZIP archives manually in the location given in the message starting with Files will be saved to .... The module will find them there and use them without trying to download them again (that's a new feature of the most recent module version).

It also doesn't hurt to try more than once, until the archives are there and get unpacked, the PrestaShop installation isn't changed. Perhaps Github had an outage just the moment you tried to migrate.

  • Author

I've tried (more the once) to place manually the 2 ZIP archives in the target folder and also tried to migrate a clean Prestashop installation but the error always occurs.

  • Author

Sorry, I'm not so techie. The only error message I can see is the one I sent above to Traumflug. Where can I look for any ajax error?

  • Author

Checking once again I found that every time I launch the migration process I get this error message in php_error.log:

PHP Deprecated: Automatically populating $HTTPRAWPOSTDATA is deprecated and will be removed in a future version. To avoid this warning set 'alwayspopulaterawpost_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0

  • Author

The error seems to occur during the download of thirtybees-v1.0.7.zip to the autoupgrade/download folder. The archive thirtybees-extra-v1.0.7.zip is correctly downloaded (together with thirtybees-file-actions-v1.0.7.json). Since the migration process seems to delete the contents of the autoupgrade/download folder before attempting to download the archives, it's useless to manually place them before launching the migration.

Since the migration process seems to delete the contents of the autoupgrade/download folder

True. Forgot to remove this when picking this feature from module tbupdater.

Here's the patch (just find and delete these four lines): ```diff // regex optimization pregmatch('#([0-9]+.[0-9]+)(?:.[0-9]+){1,2}#', _PSVERSION_, $matches);

         $this->nextQuickInfo[] = sprintf($this->l('Downloading from %s and %s'), $this->upgrader->coreLink, $this->upgrader->extraLink);
         $this->nextQuickInfo[] = sprintf($this->l('Files will be saved to %s and %s'), $this->getCoreFilePath(), $this->getExtraFilePath());

- if (fileexists($this->tools->downloadPath)) { - Tools::deleteDirectory($this->tools->downloadPath, false); - $this->nextQuickInfo[] = $this->l('Download directory has been cleared'); - } + $report = ''; $relativeDownloadPath = strreplace(PSROOTDIR, '', $this->tools->downloadPath); if (ConfigurationTest::test_dir($relativeDownloadPath, false, $report)) { $timestamp = time(); $res = $this->upgrader->downloadLast($this->tools->downloadPath); ```

This will also go into the next release, of course.

  • Author

Got it! Removing the 4 lines and manually adding the archives worked out. Now we can roll up our sleeves and seriously plan our migration. Thank you so much.

No need for making this optional. On the first try this directory doesn't exist. If it exists and some ZIPs are inside, they still get MD5-summed to make sure they're complete. Module tbupdater works this way since a year already.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.