- Issue created by @fallenturtle
- Status changed to Closed: cannot reproduce
over 1 year ago 12:44am 26 May 2023 - πΊπΈUnited States fallenturtle
Started working after a while. Don't know why.
- π¨π¦Canada dtarc
We had a similar issue with this module "just not working" with no error message or anything else.
The issue for us was that is the number is invalid, ie. the area code doesn't exist, then the formatting doesn't happen, and no error message is output anywhere. This makes it very confusing. We sanitize our database for dev work, and our sanitization process just randomizes the phone numbers, which led to invalid phone numbers.
I don't know if this was the same issue the OP had.
If the number isn't valid then an exception is thrown and then caught here in this funcion:
public function viewElements(FieldItemListInterface $items, $langcode) { $element = []; foreach ($items as $delta => $item) { try { if ($this->getSetting('link')) { $element[$delta] = $this->viewLinkValue($item); } else { $element[$delta] = $this->viewFormattedValue($item); } } catch (\Exception $e) { $element[$delta] = $this->viewPlainValue($item); } } return $element; }
A watchdog message should be logged if the exception is thrown.
- Status changed to Needs review
over 1 year ago 4:41pm 4 August 2023 - Open on Drupal.org βCore: 10.1.x + Environment: PHP 8.2 & MySQL 8last update
over 1 year ago Waiting for branch to pass