lpaulsen93 / dokuwiki-plugin-odt

Exports a page to the Open Document format used by OpenOffice.org and other word processors
http://www.dokuwiki.org/plugin:odt
13 stars 26 forks source link

CSS basic style warnings on PHP 8 #305

Closed eduardomozart closed 1 year ago

eduardomozart commented 1 year ago

When enabling the css_usage directive of ODT plugin using the default DokuWiki template on current DokuWiki stable Release 2023-04-04a "Jack Jackrum", the following errors are being thrown when exporting a ODT file on PHP 8:


Warning: Undefined array key "compare" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTImport.php on line 838

Warning: Uninitialized string offset 5 in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTUtility.php on line 478

Warning: Uninitialized string offset 5 in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTUtility.php on line 478

Warning: Undefined array key "compare" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTImport.php on line 838

Warning: Undefined array key "compare" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTImport.php on line 838

Warning: Undefined array key "compare" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTImport.php on line 838

Warning: Undefined array key "compare" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTImport.php on line 838

Warning: Undefined array key "compare" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTImport.php on line 838

Warning: Undefined array key "compare" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTImport.php on line 838

Warning: Undefined array key "compare" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTImport.php on line 838

Warning: Undefined array key "compare" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTImport.php on line 838

Warning: Undefined array key "compare" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTImport.php on line 838

Warning: Undefined array key "compare" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTImport.php on line 838

Warning: Undefined array key "width" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTImport.php on line 532

Warning: Trying to access array offset on value of type null in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTImport.php on line 540

Warning: Undefined array key "line-height" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/styles/ODTParagraphStyle.php on line 484

Warning: Undefined array key "background-color" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/styles/ODTParagraphStyle.php on line 484

Warning: Undefined array key "border" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/styles/ODTParagraphStyle.php on line 484

Warning: Undefined array key "join-border" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/styles/ODTParagraphStyle.php on line 484

Warning: Undefined array key "border" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/styles/ODTParagraphStyle.php on line 493

Warning: Undefined array key "background-color" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/styles/ODTParagraphStyle.php on line 493

Warning: Undefined array key "line-height" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/styles/ODTParagraphStyle.php on line 484

Warning: Undefined array key "background-color" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/styles/ODTParagraphStyle.php on line 484

Warning: Undefined array key "border" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/styles/ODTParagraphStyle.php on line 484

Warning: Undefined array key "join-border" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/styles/ODTParagraphStyle.php on line 484

Warning: Undefined array key "border" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/styles/ODTParagraphStyle.php on line 493

Warning: Undefined array key "background-color" in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/styles/ODTParagraphStyle.php on line 493

Warning: Uninitialized string offset 3 in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTUtility.php on line 478

Warning: Uninitialized string offset 3 in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTUtility.php on line 478

Warning: Uninitialized string offset 3 in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTUtility.php on line 478

Warning: Uninitialized string offset 3 in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTUtility.php on line 478

Warning: Uninitialized string offset 3 in /home/robertinho/public_html/wiki/lib/plugins/odt/ODT/ODTUtility.php on line 478

Here is the page content:

====== Página principal ======

Parabéns, sua Wiki está instalada e funcionando. Aqui estão mais algumas dicas para você começar.

===== Crie suas primeiras páginas =====

Sua Wiki precisa ter uma página inicial. Enquanto não existir, este link ficará vermelho: [[:start]].

Vá em frente, siga [[:wiki:plugin:addnewpage:newpage|esse link]] e crie a página. Se precisar de ajuda com o uso da sintaxe, você pode sempre consultar a [[wiki:sintaxe|página de sintaxe]].

Você também pode usar uma barra lateral. Para criá-la, basta editar a página [[:sidebar]] (ou [[:wiki:navigation]]). Tudo nessa página será mostrado em uma coluna de margem ao lado. Leia nosso [[doku>faq:sidebar | FAQ sobre barras laterais]] para saber mais.

Esteja ciente de que nem todos os [[:wiki:template|templates]] suportam barras laterais.

===== Personalize sua Wiki =====

Quando estiver confortável com a criação e edição de páginas, você pode querer dar uma olhada nas [[this>doku.php?do=admin&page=config|definições de configuração]] (certifique-se de fazer login como superusuário primeiro).

Você também pode querer ver quais [[doku>plugins|plug-ins]] e [[doku>templates|templates]] estão disponíveis em DokuWiki.org para estender a funcionalidade e aparência de sua instalação DokuWiki.

===== Junte-se à Comunidade =====

DokuWiki é um projeto de código aberto que prospera por meio de contribuições de usuários. Uma boa maneira de se manter informado sobre o que está acontecendo e obter dicas úteis sobre como usar o DokuWiki é assinando o [[doku>newsletter]].

O [[https://forum.dokuwiki.org|Fórum de usuários DokuWiki]] é uma excelente maneira de entrar em contato com outros usuários DokuWiki e é apenas uma das muitas maneiras de obter [[doku>faq:suporte|suporte]].

É claro que ficaríamos mais do que felizes se vocês [[doku>teams:getting_involved|se envolvessem]] com o DokuWiki.