Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Неверные ссылки в мультиязычности #1

Open
Septdir opened this issue Dec 18, 2018 · 6 comments
Open

Неверные ссылки в мультиязычности #1

Septdir opened this issue Dec 18, 2018 · 6 comments
Labels
bug Something isn't working

Comments

@Septdir
Copy link
Member

Septdir commented Dec 18, 2018

Как воспроизвести

Требуется мультиязычный сайт

  1. Включить в Плагине Система - Фильтр Языка параметр Удалять префикс языка по умолчанию
  2. В настройках Менеджера материалов выключить Показать ассоциации
  3. Перейти на сайт переключить язык на не по умолчанию
  4. Перейти в в список материалов / блог категории или статью
  5. Посмотреть ссылку на статью с языком по умолчанию в Также доступны:

Желаемый результат

Ссылка на статью с языком по умолчанию в Также доступны должна быть без префикса

Текущий результат

Ссылка на статью с языком по умолчанию в Также доступны с префиксом

Дополнительно

Это сбой плагина Система - Фильтр Языка но возможно в хоте исправления можно будет поправить и получение языка по умолчанию.

@b2z b2z changed the title Не верные ссылки в мультиязычность Неверные ссылки в мультиязычности Dec 18, 2018
@b2z
Copy link
Member

b2z commented Dec 18, 2018

Да, баг есть. Это?
joomla#23264

@Septdir
Copy link
Member Author

Septdir commented Dec 19, 2018

@b2z То да не то. В общем видно что занимаются, думаю мб просто добавить этот issue в репу joomla.
Если дубль то укажут. Если нет то пойдет в догонку к остальным.

@b2z
Copy link
Member

b2z commented Dec 19, 2018

Да, просто добавь туда заодно.

@Septdir
Copy link
Member Author

Septdir commented Dec 19, 2018

@b2z Там оба закрыты сейчас нет времени концы искать. И вообще я тут пользователя имитирую.
Если бы хотел сам добавить в репу Joomla, то сразу бы и добавил.

@b2z
Copy link
Member

b2z commented Dec 19, 2018

Так ты же писал :)

думаю мб просто добавить этот issue в репу joomla. Если дубль то укажут. Если нет то пойдет в догонку к остальным.

@b2z b2z added the bug Something isn't working label Dec 19, 2018
@Septdir
Copy link
Member Author

Septdir commented Dec 19, 2018

@b2z Ну это значит типа, сделайте за меня =)

Первоначально думал вообще PR делать, но коль уже дело идет... пусть уж человек допиливает

b2z pushed a commit that referenced this issue Mar 27, 2019
Add missing string COM_PRIVACY_MSG_CONSENT_NO_CONSENT
b2z pushed a commit that referenced this issue Feb 17, 2020
Update documentation link in docblock
b2z pushed a commit that referenced this issue Apr 7, 2023
…oomla#36804)

Fixes `Fixes `Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in libraries/src/Date/Date.php on line 112` error on login`
b2z pushed a commit that referenced this issue Apr 7, 2023
…ssing null to type string (joomla#36795)

* [3.10] [PHP 8.1] fixes mod_tags_popular

Fixes `Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/modules/mod_tags_popular/mod_tags_popular.php on line 29`

* [3.10] [PHP 8.1] fixes mod_breadcrumbs

Fixes `Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/modules/mod_breadcrumbs/mod_breadcrumbs.php on line 21`

* Update mod_custom.php

Fixes `Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in modules/mod_custom/mod_custom.php on line 18`

* [3.10] [PHP 8.1] Fixes mod_menu.php

Fixes `Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in modules/mod_menu/mod_menu.php on line 23`

* [3.10] [PHP 8.1] mod_stats

* [3.10] [PHP 8.1] fixes mod_articles_archive.php

* [3.10] [PHP 8.1] mod_articles_categories.php

* [3.10] [PHP 8.1] fixes mod_articles_category

* [3.10] [PHP 8.1] fixes mod_articles_latest

* [3.10] [PHP 8.1] fixes mod_articles_news

* [3.10] [PHP 8.1] fixes mod_articles_popular

* [3.10] [PHP 8.1] fixes mod_banners

* [3.10] [PHP 8.1] fixes mod_feed

* [3.10] [PHP 8.1] fixes mod_footer

* [3.10] [PHP 8.1] fixes mod_languages

* [3.10] [PHP 8.1] fixes mod_random_image

* [3.10] [PHP 8.1] fixes mod_related_items

* [3.10] [PHP 8.1] fixes mod_syndicate

* [3.10] [PHP 8.1] fixes mod_tags_similar

* [3.10] [PHP 8.1] fixes mod_users_latest

* [3.10] [PHP 8.1] fixes mod_whosonline

* [3.10] [PHP 8.1] fixes mod_wrapper

* [3.10] [PHP 8.1] fixes admin mod_privacy_dashboard

* [3.10] [PHP 8.1] fixes admin mod_feed

* [3.10] [PHP 8.1] fixes admin mod_stats_admin
b2z pushed a commit that referenced this issue Apr 7, 2023
…tible (joomla#36794)

* [3.10] [PHP 8.1] Make templates/system/html/modules.php PHP 8.1 compatible

Fixes `Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/templates/system/html/modules.php on line 101` and a few more (line 35, line 53, line 115)

* [3.10] [PHP 8.1] Fixes protostar modules.php null string param

Fixes `Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/templates/protostar/html/modules.php on line 47`

* [3.10] [PHP 8.1] Fixes beez modules.php null string param

Fixes errors like `Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in templates/beez/html/modules.php on line 42`
b2z pushed a commit that referenced this issue Apr 7, 2023
…a#36792)

Fixes `Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/modules/mod_search/mod_search.php on line 44`
b2z pushed a commit that referenced this issue Apr 7, 2023
…oomla#36799)

Fixes `Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/beat/www/j/libraries/src/Date/Date.php on line 112` error on login
b2z pushed a commit that referenced this issue Apr 7, 2023
Fixes `Deprecated: ucfirst(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/libraries/src/MVC/Controller/BaseController.php on line 286`
and fixes `Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/beat/www/j/libraries/src/MVC/Controller/BaseController.php on line 684`
b2z pushed a commit that referenced this issue Apr 7, 2023
…36777)

* [3.10] [PHP 8.1] Fix Editor Passing null to $string line 258

Fixes `Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/src/Editor/Editor.php on line 258`

* [PHP 8.1] Editor in backend: Better fix for joomla#36777

Co-authored-by: Tobias Zulauf <[email protected]>

Co-authored-by: Tobias Zulauf <[email protected]>
b2z pushed a commit that referenced this issue Apr 7, 2023
…oomla#36773)

* [3.10] [PHP 8.1] Fixes mod_menu/menu.php type null instead of string

Fixes Deprecated: trim(): `Passing null to parameter #1 ($string) of type string is deprecated in administrator/modules/mod_menu/menu.php on line 383`

* [PHP 8.1] admin mod_menu: Slightly cleaner fix for joomla#36773
b2z pushed a commit that referenced this issue Apr 7, 2023
* [3.10] [PHP 8.1] Fixes com_finder/indexer/query

Fixes `Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in administrator/components/com_finder/helpers/indexer/query.php on line 733`

* Better fix for joomla#36796 as suggested by @zero-24
b2z pushed a commit that referenced this issue Apr 7, 2023
…strpos() (joomla#36798)

* [3.10] [PHP 8.1] Fixes Router/Route.php deprecated null to string in strpos()

Fixes `Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in libraries/src/Router/Route.php on line 124`

* [PHP 8.1] Better fix to avoid deprecation proposed by @zero-24

Co-authored-by: Tobias Zulauf <[email protected]>

* Revert previous commit for different fix in mod_breadcrumbs/helper.php

* [PHP 8.1] Better fix for joomla#36798 mod_breadcrumbs with null link in last item

Co-authored-by: Tobias Zulauf <[email protected]>
b2z pushed a commit that referenced this issue Oct 30, 2023
* Prevent Exception

If $parts is `null` this will throw an exception.

```count(): Argument #1 ($value) must be of type Countable|array, null given```

This can happen if the context is e.g. the default context `text` from the `Joomla\CMS\HTML\Helpers\Content::prepare()` function.

* Update fields.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants