Новости Joomla

👩‍💻 События плагинов и порядок их срабатывания при работе с пользовательскими полями Joomla и использовании FieldsHelper.

👩‍💻 События плагинов и порядок их срабатывания при работе с пользовательскими полями Joomla и использовании FieldsHelper.

В процессе работы с Joomla бывает необходимо работать с пользовательским интерфейсом более тонко, чем обычно. Все формы Joomla состоят из стандартных полей, содержанием, стилем отображения, состоянием (включено/выключено, доступно для редактирования или нет и т.д.) можно управлять с помощью плагинов. Да и для нестандартных проектов хорошей практикой является создание одного системного или нескольких плагинов групп "под проект", в которых храниться весь "нестандарт".

В этой статье описаны все триггеры, которые вызываются через Event Dispatcher из administrator/components/com_fields/src/Helper/FieldsHelper.php, с привязкой к жизненному циклу (порядку этапов работы запроса), аргументам, изменяемым данным и дальнейшему распространению по Joomla. Это поможет вам работать с Joomla свободнее и не опасаясь при этом потерять изменения при очередном обновлении движка.

Подходы, описанные в статье, полезны в тех случаях, когда вы работаете с данными в com_fields - механизме создания и редактирования пользовательских полей ядра Joomla и при использовании FieldsHelper. Многие сторонние компоненты не используют эту возможность, поэтому данная статья будет полезна лишь частично.

🏆 Открыто голосование за Joomla в премии CMS Critic People’s Choice Awards 2025

🏆 Открыто голосование за Joomla в  премии CMS Critic People’s Choice Awards 2025

🗓 Голосование продлится до 27 февраля 2026 года.

👩‍💻 Проголосовать! 👩‍💻

Номинации, в которых можно проголосовать за Joomla:
⭐️ Best Free CMS
⭐️ Best Open Source CMS
⭐️ Best Enterprise CMS

Также в номинации Best e-Commerce Solution участвуют компоненты интернет-магазинов для Joomla:
⭐️ HikaShop
⭐️ Virtuemart

В номинации Best Website Builder оказались:
⭐️ YooTheme
⭐️ SP Page Builder

Что такое CMS Critic Awards?
С 2012 года премия CMS Critic Awards занимает особое место в сообществе систем управления контентом (CMS). Это единственный в своем роде сайт, который составляет рейтинг системы управления контентом и связанных с ними решений на рынке — от малого до крупного и подчеркивает их инновации и услуги.

Каждый год награда CMS Critic Awards присуждается одному победителю в различных отраслевых категориях, таких как: «Лучшая облачная CMS», «Лучший DXP», «Лучшая Headless CMS и других. Затем результаты оглашаются через СМИ вместе с выбором редакции CMS Critic.
В этом году премия вернулась к своим традициям и только TOP-5 движков по количеству номинаций попали в 2-й этап - голосование.

@joomlafeed

0 Пользователей и 1 Гость просматривают эту тему.
  • 6 Ответов
  • 3423 Просмотров
*

Светлана

  • Захожу иногда
  • 99
  • 7 / 0
Ошибка 500 Internal Server Error
« : 14.04.2015, 00:10:51 »
Здравствуйте. При входе на сайт выскакивает такая ошибка:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, kvivalavita@gmail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

Сам сайт не открывается и панель управления Joomla тоже. В файле ошибок сервера пишет:

Код
[Mon Apr 13 23:53:07 2015] [error] [client 46.200.165.11] Premature end of script headers: php
[Mon Apr 13 23:54:39 2015] [error] [client 66.249.64.137] PHP Notice:  Undefined property: stdClass::$id in /hosting/b18149988/data/www/vivalavita.com.ua/libraries/gantry/core/params/overrides/gantrymenuitemparamoverride.class.php on line 66
[Mon Apr 13 23:54:39 2015] [error] [client 66.249.64.137] PHP Notice:  Undefined property: stdClass::$id in /hosting/b18149988/data/www/vivalavita.com.ua/plugins/system/gantry/gantry.php on line 234
[Mon Apr 13 23:55:15 2015] [error] [client 207.46.13.105] File does not exist: /hosting/b18149988/data/www/vivalavita.com.ua/uxocr
[Mon Apr 13 23:59:02 2015] [error] [client 66.249.64.137] PHP Notice:  Undefined property: stdClass::$id in /hosting/b18149988/data/www/vivalavita.com.ua/libraries/gantry/core/params/overrides/gantrymenuitemparamoverride.class.php on line 66
[Mon Apr 13 23:59:03 2015] [error] [client 66.249.64.137] PHP Notice:  Undefined property: stdClass::$id in /hosting/b18149988/data/www/vivalavita.com.ua/plugins/system/gantry/gantry.php on line 234
[Tue Apr 14 00:05:28 2015] [error] [client 46.200.165.11] Premature end of script headers: php
[Tue Apr 14 00:05:34 2015] [error] [client 46.200.165.11] File does not exist: /hosting/b18149988/data/www/vivalavita.com.ua/favicon.ico
[Tue Apr 14 00:05:35 2015] [error] [client 157.55.39.253] File does not exist: /hosting/b18149988/data/www/vivalavita.com.ua/oronf
[Tue Apr 14 00:07:23 2015] [error] [client 157.55.39.223] File does not exist: /hosting/b18149988/data/www/vivalavita.com.ua/oronf

.htaccess
Код
RewriteBase /

##
# @package Joomla
# @copyright Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your SEF url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
# Options +FollowSymLinks

## Mod_rewrite in use.

#RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##


## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
С чем это может быть связано? Ошибка выскочила, когда я наполняла товаром интернет-магазин.
« Последнее редактирование: 14.04.2015, 00:16:21 от Светлана »
*

04r12

  • Захожу иногда
  • 168
  • 9 / 0
  • Позитив есть! Чего и вам желаю=)
Re: Ошибка 500 Internal Server Error
« Ответ #1 : 14.04.2015, 05:19:59 »
У Вас несколько файлов в принципе перестало существовать...дабы дальше в пустую не раздувать, задам вопрос - бэкап сайта есть? его поднятие решит проблему
*

Светлана

  • Захожу иногда
  • 99
  • 7 / 0
Re: Ошибка 500 Internal Server Error
« Ответ #2 : 14.04.2015, 07:00:20 »
Как это несколько файлов перестало существовать? из-за чего. Бэкап сайта есть
*

04r12

  • Захожу иногда
  • 168
  • 9 / 0
  • Позитив есть! Чего и вам желаю=)
Re: Ошибка 500 Internal Server Error
« Ответ #3 : 14.04.2015, 07:17:02 »
Цитировать
[Tue Apr 14 00:05:34 2015] [error] [client 46.200.165.11] File does not exist: /hosting/b18149988/data/www/vivalavita.com.ua/favicon.ico
[Tue Apr 14 00:05:35 2015] [error] [client 157.55.39.253] File does not exist: /hosting/b18149988/data/www/vivalavita.com.ua/oronf
[Tue Apr 14 00:07:23 2015] [error] [client 157.55.39.223] File does not exist: /hosting/b18149988/data/www/vivalavita.com.ua/oronf
Эти файлы более не существуют. Поднимайте сайт с бэкапа, должно помочь, если проблема с Вашей стороны, а не со стороны хостера.
*

Светлана

  • Захожу иногда
  • 99
  • 7 / 0
Re: Ошибка 500 Internal Server Error
« Ответ #4 : 14.04.2015, 13:13:59 »
Представляете с другого браузера заходит, а с Google chrome выдает ошибку. Это в браузере глюк произошел?
*

Sibergad

  • Новичок
  • 1
  • 0 / 0
Re: Ошибка 500 Internal Server Error
« Ответ #5 : 14.04.2015, 23:13:04 »
Аналогичная проблема Internal Server Error

.htaccess
Код
##
# @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $
# @package Joomla
# @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your SEF url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
## Deny access to extension XML files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
## End of deny access to extension XML files
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla! Directory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section

Кто сможет помочь? Ошибок в логе никаких нет.
« Последнее редактирование: 14.04.2015, 23:29:08 от Sibergad »
*

voland

  • Легенда
  • 11026
  • 588 / 112
  • Эта строка съедает место на вашем мониторе
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Ошибка загрузки скрипта

Автор shane

Ответов: 0
Просмотров: 1610
Последний ответ 17.09.2019, 01:35:43
от shane
Ошибка 500 вместо 404 на несуществующих страницах с расширением только php

Автор old_lotar

Ответов: 12
Просмотров: 2901
Последний ответ 12.02.2019, 12:58:13
от draff
При редактировании модулей Fatal error: Call to a member function getKeyName()

Автор libertine21

Ответов: 4
Просмотров: 1268
Последний ответ 23.07.2018, 12:39:50
от libertine21
Ошибка в слове на главной странице. Как исправить?

Автор nqui

Ответов: 3
Просмотров: 3616
Последний ответ 29.03.2018, 05:15:41
от TkGhoul
Ошибка &amp;amp;amp;amp;quot;error&amp;amp;amp;amp;quot;. нужен специалист! гарантирую оплату!

Автор mimoza

Ответов: 6
Просмотров: 2161
Последний ответ 25.02.2018, 14:47:40
от mimoza