Hello everyone,

I've got a little problem here.
I am trying to manually update drupal 8.3.7 to 8.4.2. Deleted root folder files, vendor, and core folders too and copied the new ones in their place.

Drupal would update these on /update.php:
http://i.imgur.com/7jW3RUH.png

Right after I start the update the following error comes up:
http://i.imgur.com/9AoJk5t.png

On the very page, there is a console error too:
http://i.imgur.com/2owlzgA.png

My provider doesn't support other update than manunal, and I am new to drupal.

Help would be appreciated.

Best
József

Comments

cbence00 created an issue. See original summary.

cilefen’s picture

Version: 8.3.7 » 8.4.x-dev
Component: ajax system » other
Status: Active » Postponed (maintainer needs more info)
Issue tags: -ajax error, -internal error, -drupal 8.3.7, -drupal 8.4.0

The 500 error will have been logged by the web server. Check there and report back. I moved this to the "other" component because we do not yet know the component.

cbence00’s picture

Yes. The problem is:
PHP Fatal error: Interface 'CommerceGuys\Intl\Currency\CurrencyInterface' not found in /var/www/drupal/modules/contrib/commerce/modules/price/src/Entity/CurrencyInterface.php on line 16

cilefen’s picture

Project: Drupal core » Price
Version: 8.4.x-dev » 8.x-1.x-dev
Component: other » Code
Status: Postponed (maintainer needs more info) » Active

Please change the issue title accordingly. This may turn out to be a support request. You did not upgrade with composer?

alphawebgroup’s picture

@cbence00

basically, the problem is in this step:

Deleted root folder files, vendor, and core folders too and copied the new ones in their place.

so, you've deleted vendor folder where the "Intl" library of CommerceGuys has been placing
the better way is updating core and contrib modules by using composer
if you have no chance to use composer that means you have to maintain vendor folder manually for all contributed modules
i.e. you have to place "Intl" library to the vendor/commerceguys/intl folder back to get it worked
it's here (the latest stable is 0.7.4): https://github.com/commerceguys/intl/tree/v0.7.4

cilefen’s picture

Category: Bug report » Support request
cbence00’s picture

@alphawebgroup

thank you for the help. I am going to try this manually as you described.

I did try upgrading with composer, but it caused new errors. The whole website fell apart, except the admin.

I followed this instruction: https://www.drupal.org/forum/support/upgrading-drupal/2017-10-06/update-to-84-with-composer#comment-12294335

And the result was an error, and because of an error, It wasn't able to perform a full update, so views module and some other modules doesn't work: https://www.drupal.org/project/commerce/issues/2923011#comment-12343396

cbence00’s picture

@alphawebgroup

Placing intl folder back to his place after manual update doesn't make this error disappear:
Fatal error: Interface 'CommerceGuys\Intl\Currency\CurrencyInterface' not found in C:\xampp3\htdocs\web\modules\contrib\commerce\modules\price\src\Entity\CurrencyInterface.php on line 16

I use xampp as test environment.

cilefen’s picture

Restoring select directories into vendor won’t work. At this time you should restore all files from the backup taken before the upgrade attempt then follow instructions for managing files with composer https://www.drupal.org/docs/develop/using-composer/using-composer-to-man.... Option “B” on that page is the closest to plain Drupal core.

alphawebgroup’s picture

Project: Price » Commerce
Version: 8.x-1.x-dev » 7.x-2.0
alphawebgroup’s picture

Project: Commerce » Drupal Commerce
Version: 7.x-2.0 » 8.x-2.x-dev
Component: Code » Price
bojanz’s picture

Status: Active » Fixed

Nothing for me to say. If you overwrite vendor/ you'll break your site. Core updates need Composer. This topic has been addressed a 100 times, and comes up every core release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.