Hello I try to update from 8.x-5.0-beta24 and I get this message

Fatal error: require_once(): Failed opening required 'C:\wamp64\www\fta\modules\webform/includes/webform.date.inc' (include_path='.;C:\php\pear') in C:\wamp64\www\fta\modules\webform\webform.module on line 32

The site is broken even if I flush cache.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

selinav created an issue. See original summary.

jrockowitz’s picture

Did you update the Webform module via the UI?

Can you try updating the Webform module via FTP or Drush?

@see #2924044: Error when update

selinav’s picture

I update via tue UI on local.

jrockowitz’s picture

jrockowitz’s picture

I could not update the webform module via the UI using simplytest.me.

I am not about to try and fix the update manager but I will add a warning to the page.

selinav’s picture

If I well understand, I should transfer files with FTP and run update.php ?

jrockowitz’s picture

Yes!

jrockowitz’s picture

Status: Active » Needs review
FileSize
79.08 KB
2.19 KB

The attached patch adds the below warnings to the 'Update manager'.

If someone investigates and fixes the problem, we should remove these warnings.

  • jrockowitz committed 2da32cc on 8.x-5.x
    Issue #2930116 by jrockowitz: Error when update
    
jrockowitz’s picture

Status: Needs review » Fixed
selinav’s picture

Hello,

I've tested on local to download manually files but I get an error message.

TypeError: Argument 3 passed to Drupal\webform\EventSubscriber\WebformSubscriber::__construct() must implement interface Drupal\Core\Render\RendererInterface, none given, called in C:\wamp64\www\fta\core\lib\Drupal\Component\DependencyInjection\Container.php on line 266 in Drupal\webform\EventSubscriber\WebformSubscriber->__construct() (line 69 of modules\webform\src\EventSubscriber\WebformSubscriber.php).

I've tested with to update from beta24 to beta 25 with composer and I get this message :

composer update drupal/webform
Package "drupal/webform" listed for update is not installed. Ignoring.
...

It is strange.
I've search on my module directory and I find 2 webform directories.
One in /modules/webform
An other in /modules/contrib/webform

It is may be due to this.

If I uninstall the webform module, will I lose my already set forms?

jrockowitz’s picture

Yes, the two directories are most likely causing the issue. You need to delete the older one. You should look at the version number in webform.info.yml.

selinav’s picture

If I delete the directory in contrib modules it continues to well works.
If I delete the directory in /modules/webform it break the website.

The good directory is so /modules/webform

But :
- I can't update with composer who search in contrib directory and find nothing.

composer update drupal/webform
Package "drupal/webform" listed for update is not installed. Ignoring.
...

If I replace the /modules/webform with the beta 25 version I get and error message.

The website encountered an unexpected error. Please try again later.
TypeError: Argument 3 passed to Drupal\webform\EventSubscriber\WebformSubscriber::__construct() must implement interface Drupal\Core\Render\RendererInterface, none given, called in C:\wamp64\www\fta\core\lib\Drupal\Component\DependencyInjection\Container.php on line 266 in Drupal\webform\EventSubscriber\WebformSubscriber->__construct() (line 69 of modules\webform\src\EventSubscriber\WebformSubscriber.php).

I don't know how to resolve this problem.

what should I do ?

Status: Fixed » Closed (fixed)

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