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: Type error when translating phrase

Status Resolved
Add-on / Version Publisher 3.8.0
Severity
EE Version 6.3.5

Gavin @ JCOGS

Oct 11, 2022

This appears to have reappeared.
Added new phrase group.
Added new phrawe to the group.
Added default language option and saved entry.
Upon reload when auto-translate option appears clicked on it.
Got TypeError crash.

TypeError Caught
BoldMinded\Publisher\Service\Translators\AbstractTranslator::isUrlTitleField(): Argument #1 ($fieldName) must be of type string, null given, called in user/addons/publisher/Service/Translators/AbstractTranslator.php on line 75

user/addons/publisher/Service/Translators/AbstractTranslator.php:104
Stack Trace: Please include when reporting this error
#1

BoldMinded (Brian)

I can send a full build, but it might be easier to change line 75 of that file to this:

($this->isUrlTitleField($parameters['fieldName'] ?? '') && !$this->config['url_translations'])
#2

Gavin @ JCOGS

That appears to have fixed the issue. Thanks!

Login to reply