In Drupal 7 running UberCart (E-Commerce) module, encountered a Fatal error Call to undefined function dpm
drupal-Fatal-error-Call-to-undefined-function-dpm.png

While the error may be a valid presentation of something wrong somewhere, a quick fix is to hide or disable the error, if this is acceptable. On lines 9-10 of the file sites\all\modules\ecommerce\ec_store\ec_store.tokens, comment out the following:
(NOTE, to date this is for Drupal 7.50, e-Commerce Version: 7.x-4.7-beta1, and Ubercart Version: 7.x-3.10)

function ec_store_token_info() {
  dpm(__FUNCTION__);

Since, this is currently on an array, you need to delete or comment out the closing bracket ( } ) on line 124

/*}*/

Alternately, you may need to enable the Devel module to fix this.

Leave a Comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
To prevent automated spam submissions leave this field empty.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
6 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
Get reliable web hosting services

Recurring donation

Make Donation

  • Other: $

Donate now

Single donation

Make Donation

  • Other: $

Donate now
Need help with web development, contact us

Telephone: + 63 2 7625-6994

Mobile / Viber / WhatsApp:
+63 945 217-3344

Email: admin@ibuild.ph

Skype:
https://join.skype.com/invite/cPK3sdBq0qOd