(2022-10-11, 20:43:37)multicolor Wrote:I started fix plugins for community. Today i18n - what next?or our project with Islander get simple community edition website
Dear @multicolor,
Thanks for providing Get Simple Community Edition and also for Plugin Fixes.
We have noticed following Error Message in i18n_navigation Plugin [after applying Fixes]:
[16-Oct-2022 18:29:06 Asia/Kolkata] PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/xxxx/public_html/plugins/i18n_navigation/editextras.php on line 11
PHP Code:
foreach (preg_split('/\s*,\s*/', trim(@$page['tags'])) as $t) $tags[$t] = true;
We are also noticing following Error Messages in other Plugins:
[16-Oct-2022 18:20:51 Asia/Kolkata] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/xxxx/public_html/plugins/i18n_search/searchform.php on line 80
PHP Code:
<input type="text" name="words" class="search-words" value="<?php echo htmlspecialchars(@$_REQUEST['words']); ?>" <?php if ($placeholderText) echo 'placeholder="'.htmlspecialchars($placeholderText).'"'; ?>/>
PHP Code:
$this->tags = is_array($tags) ? $tags : (trim($tags) != '' ? preg_split("/\s+/", trim($tags)) : array());
PHP Code:
$order = trim($order);
PHP Code:
if (!preg_match('/^hr|(\d+)\s*([a-zA-Z]*)$/',$pageSize,$match)) return $content;
Please guide us in this regard.
Thanks,