-
joseph.olstad โ
committed 41ab8237 on 8.x-1.x authored by
LeoAlcci โ
Issue #3313610: Argument #2 ($haystack) must be of type array, null...
-
joseph.olstad โ
committed 41ab8237 on 8.x-1.x authored by
LeoAlcci โ
- Status changed to Fixed
12 months ago 2:16pm 22 November 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
11 months ago 3:35pm 6 December 2023 - ๐ฉ๐ชGermany demonde
I have still this error.
TypeError: in_array(): Argument #2 ($haystack) must be of type array, bool given in in_array() (Line 24 in /modules/contrib/access_unpublished/src/AccessUnpublished.php).
This comes up only if I install feeds paragraphs mapper.
- ๐จ๐ฆCanada joseph.olstad
@demonde ,
Try:
composer require drupal/feeds_para_mapper:1.1
drush updb -y;drush cr;
- ๐จ๐ฆCanada joseph.olstad
@demonde, ton erreur viens d'un autre module , รงa dit clairement "access_unpublished"
Essaye ceci:
diff --git a/src/AccessUnpublished.php b/src/AccessUnpublished.php index ea2ea37..dfca79e 100644 --- a/src/AccessUnpublished.php +++ b/src/AccessUnpublished.php @@ -20,6 +20,10 @@ class AccessUnpublished { * TRUE if it can be used. */ public static function applicableEntityType(EntityTypeInterface $entityType) { + if (!is_array(class_implements($entityType->getClass()))) { + // Not applicable. + return FALSE; + } if ( in_array(EntityPublishedInterface::class, class_implements($entityType->getClass())) && $entityType->hasLinkTemplate('canonical')
- ๐ฉ๐ชGermany demonde
This does not help. I donnot get an error message but the mapping page will load eternally if the feed contains a paragraph field and paragraphs mapper is installed.
I also get this error but not sure if this is related.
Warning: Undefined array key "allowed_extensions" in Drupal\feeds\Feeds\Fetcher\Form\UploadFetcherForm->validateConfigurationForm()
- ๐จ๐ฆCanada joseph.olstad
@demonde, a quick google found the solution in less than 30 seconds
Here's the very funny let me google that for you demo.
https://letmegooglethat.com/?q=Warning%3A+Undefined+array+key+%22allowed...There is an RTBC patch available for the bug you're seeing.
๐ Undefined Index: allowed_extensions AJAX error when creating feed types. Fixed - ๐ฉ๐ชGermany demonde
Thanks, I am busy this week but I will test this solution as soon as possible.