commerce_payment_method_load() is executed by the system that believes it's an implementation of hook_payment_method_load(), which is a dynamically created Entity.module hook.

CommentFileSizeAuthor
#1 payment_commerce_1819626_00.patch537 bytesxano

Comments

xano’s picture

Status: Active » Needs review
StatusFileSize
new537 bytes
xano’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

Funksmaname’s picture

Hi Xano,
I patched the entity.controller.inc file like http://drupal.org/node/1549424#comment-6629760
and also the above patch but still getting:
Warning: Illegal offset type in isset or empty in commerce_payment_method_load() (line 584 of /home/impress/public_html/sites/all/modules/commerce/modules/payment/commerce_payment.module).

What am I missing?
Thanks in advance :)

xano’s picture

If you are still experiencing this issue, you are not using the latest releases of Payment and Payment for Drupal Commerce. The Entity API patch is completely unrelated.

Funksmaname’s picture

Unfortunately, I am using the latest dev builds (just updated too to make sure, but this site is a dev started within the last few weeks regardless).
Although I don't see the error much, whenever I flush the caches it comes up!

Any advice appreciated.

xano’s picture

If you are still experiencing this problem, please open a new issue for Payment with step-by-step instructions on how to reproduce the people using a new Drupal installation.

xano’s picture

Assigned: xano » Unassigned
silkogelman’s picture

the error
Warning: Illegal offset type in isset or empty in commerce_payment_method_load() (line 584 of /123/sites/all/modules/contrib/commerce/modules/payment/commerce_payment.module).

can be reproduced by creating an installation profile with the following lines in the .info file

dependencies[] = payment
dependencies[] = payment_commerce
dependencies[] = paymentmethodbasic

(Or you can add them to standard.info if you're not familiar with creating a Drupal install profile)

Tested with
commerce 7.x-1.8
payment 7.x-1.x-dev (2013-Aug-10)
payment_commerce 7.x-1.x-dev (2013-Aug-13)

The error will appear in the 'configure site' and 'Drupal installation complete' pages of the installation process.

In case of the error, hook_install() from the installation profile is not properly executed.
(the administrator role and default content types are just not created for example)

StuddMan’s picture

We are receiving this error now on a production Drupal Commerce site when anyone hits the checkout screens.

Warning: Illegal offset type in isset or empty in commerce_payment_method_load() (line 584 of xxxxxxxxxxx/modules/commerce/modules/payment/commerce_payment.module).

Our Environment:
Drupal - 7.23
Commerce - 7.x-1.8
Payment - 7.x-1.8
Payment_commerce - 7.x-1.4

Should we be running the DEV versions in production?

StuddMan’s picture

This is still happening for us, any guidance would be appreciated

xano’s picture

The original issue was fixed a year ago. Please do not hijack such issues, but open new ones. Be sure to open detailed steps to reproduce the problem.