Hello,
Please apply the following minor change and try again:
- Edit Classes/Phpdocx/Create/CreateDocx.php and go to that line (7196).
- Add the following code:
if (!isset($name)) {
$name = 'nl' . $listId;
}
before line 7196.
This is the code to be used after applying the previous change:
$listStyleXML = str_replace('<w:abstractNum w:abstractNumId="0"', '<w:abstractNum w:abstractNumId="' . $originalAbstractNumId . '"', $listStyleXML);
if (!isset($name)) {
$name = 'nl' . $listId;
}
self::$customLists[$name]['id'] = $listId;
self::$customLists[$name]['wordML'] = $listStyleXML;
It seems you are trying to import a custom paragraph style with a numbering style and $name is not being initializated, so you are getting that PHP notice. The previous code generates a random one when $name is not set. We have moved the post to the dev team to consider including this same change.
Regards.