Unexpected -> (T_OBJECT_OPERATOR)

Created on 3 August 2023, 11 months ago
Updated 10 August 2023, 11 months 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

  • Issue created by @jbarone716
  • πŸ‡ΊπŸ‡ΈUnited States jbarone716
  • πŸ‡ΈπŸ‡ΎSyria hodba Dubai

    The module works with PHP 8.1, and this error looks like generated from an older PHP version.

    Can you please confirm the PHP version that generated the error?

  • πŸ‡ΊπŸ‡ΈUnited States jbarone716

    Hi, you are correct, we are running an older PHP version on that server. I must have missed that requirement, my bad! Appreciate your time looking it over. When/if we upgrade this server I'll definitely be exploring this module more.

  • Status changed to Closed: works as designed 11 months ago
  • πŸ‡ΈπŸ‡ΎSyria hodba Dubai

    Always happy to help. Please feel free to discover the module, and I'll appreciate any feedback.

Production build 0.69.0 2024