All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Pending approvals in unassigned language cause error in dashboard widget

Status Resolved
Add-on / Version Publisher 3.10.2 build 71c800c8
Severity
EE Version 7.3.14

Eric Harth

Dec 14, 2023

Hi

An error occurs on the control panel overview page when there is a pending approval for an entry in a language that isn’t active on the site.

Our main site has Bahasa as a language (ID 7), this isn’t assigned to any other sites. Because pending approvals show on all sites, this appears to cause the error when the control panel dashboard widget tries to render.

The following entries have a draft that are awaiting your approval.

  Meningkatkan Capaian Belajar Murid melalui Asesmen Diagnostik
  Warning
  Undefined array key 7

  user/addons/publisher/views/widgets/entries.php, line 20
      Severity: E_WARNING

  ( ! ) TypeError: BoldMinded\Publisher\Helper\TranslationStatusHelper::translationTag(): Argument #2 ($languageCode) must be of type string, null given, called in /usr/local/www-shared/ee-acer/public/system/user/addons/publisher/views/widgets/entries.php on line 20 in /usr/local/www-shared/ee-acer/public/system/user/addons/publisher/Helper/TranslationStatusHelper.php on line 81

#1

BoldMinded (Brian)

Eric, you’re a version behind. Please upgrade and see if the error persists. Thanks.

#2

BoldMinded (Brian)

In the views/widgets.php file change line 20 to this:

<?= $entry->title; ?>  <?= TranslationStatusHelper::translationTag($entry->lang_id, $languages[$entry->lang_id] ?? 'n/a', $class); ?>
#3

BoldMinded (Brian)

Was the expected language deleted from the site? Is this an MSM install?

Login to reply