Unexpected -> (T_OBJECT_OPERATOR)

Created on 3 August 2023, almost 2 years ago
Updated 10 August 2023, over 1 year ago

Problem/Motivation

On install of Stripe Webform Payment, composer produces the following error:

ParseError: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in Drupal\Core\Ext
ension\Extension->load() (line 50 of /bitnami/drupal/modules/contrib/stripe_webform_paymen
t/stripe_webform_payment.module)

Stripe Webform Payment is installed alongside the existing Webform Stripe connector module, which could potentially produce conflicts but this looks to be a code error of some sort.

UPDATE: Removed Webform Stripe, rebuilt caches, reinstalled Stripe Webform Payment. Installs successfully. When module is enabled error still occurs. Install on brand-new Drupal 9.2.4 with Webform 6.1.3 goes fine, but on other server I get the error.

Steps to reproduce

Install module, enable with drush en. On running drush en an extensive error is produced with the above text as the final lines. Site ceases to work until module is removed and caches rebuilt

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jbarone716

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024