500 ошибка вместо 404 joomla

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

  • 17 Ответов
  • 3455 Просмотров

После обновления до 3.8.5 и отключения sefwizard и jlnodubles, и включения расширенного роутера, сервер перестал выдавать 404 ошибку на неверные адреса, а выдает 500.
Включение sefwizard и jlnodubles проблемы не решает.
Нашел отдаленно похожую тему, но многое там уже удалено, да и версия 2.5, и ответа в итоге не нашел.

« Последнее редактирование: 14.02.2018, 13:58:13 от Comrade Steel »

Записан

Включите в общих настройках показ ошибок. Тогда увидите что за ошибка сервера. А так можно долго гадать.

Шаблон HELIX?

шаблон shaper_corporex

Включите в общих настройках показ ошибок. Тогда увидите что за ошибка сервера. А так можно долго гадать.

вот такая ошибка

Warning: require_once(/home/srv64687/test1/libraries/joomla/document/html/renderer/head.php): failed to open stream: No such file or directory in
/home/srv64687/test1/templates/shaper_corporex/error.php on line 27 Fatal error: require_once(): Failed opening required '/home/srv64687/test1/libraries/joomla/document/html/renderer/head.php'
(include_path='.:/usr/share/pear:/usr/share/php:/usr/share/pear:/usr/share/php') in /home/srv64687/test1/templates/shaper_corporex/error.php on line 27

Проверил — вроде все файлы по указанным путям на месте

« Последнее редактирование: 08.02.2018, 15:05:57 от Comrade Steel »

Записан

Ну так покажите что там в 27 строке файла /templates/shaper_corporex/error.php
Чего это он файл ядра напрямую подключает.

Ну так покажите что там в 27 строке файла /templates/shaper_corporex/error.php
Чего это он файл ядра напрямую подключает.

require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');

Попробуйте так

require_once(JPATH_LIBRARIES.'/src/document/renderer/html/HeadRenderer.php');

Попробуйте так

require_once(JPATH_LIBRARIES.'/src/document/renderer/html/HeadRenderer.php');

Ошибка на странице изменяется на

Warning: require_once(/home/srv64687/test1/libraries/joomla/document/html/renderer/HeadRenderer.php): failed to open stream: No such file or directory in
/home/srv64687/test1/templates/shaper_corporex/error.php on line 27 Fatal error: require_once(): Failed opening required '/home/srv64687/test1/libraries/joomla/document/html/renderer/HeadRenderer.php'
(include_path='.:/usr/share/pear:/usr/share/php:/usr/share/pear:/usr/share/php') in /home/srv64687/test1/templates/shaper_corporex/error.php on line 27

Пардон, сглупил:

Warning: require_once(/home/srv64687/test1/libraries/src/document/renderer/html/HeadRenderer.php): failed to open stream: No such file or directory in
/home/srv64687/test1/templates/shaper_corporex/error.php on line 27 Fatal error: require_once(): Failed opening required '/home/srv64687/test1/libraries/src/document/renderer/html/HeadRenderer.php'
(include_path='.:/usr/share/pear:/usr/share/php:/usr/share/pear:/usr/share/php') in /home/srv64687/test1/templates/shaper_corporex/error.php on line 27

Это

require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');

Меняем на это

$header_contents = ‘’;
if(!class_exists(‘JDocumentRendererHead’)) {
$head = JPATH_LIBRARIES . ‘/joomla/document/html/renderer/head.php’;
if(file_exists($head)) {
require_once($head);
}
}

https://www.joomshaper.com/forums/helix-page-error-404-not-display

Меняем на это

Да, благодарю — 404 появилась, но сверху теперь вот это:

И вместо «URL Invalid» было «Страница не найдена»

« Последнее редактирование: 08.02.2018, 15:42:11 от Comrade Steel »

Записан

Скачайте новую версию шаблона helix и возьмите из него error.php
При необходимости, думаю, вёрстку поправить сможете

Скачайте новую версию шаблона helix и возьмите из него error.php
При необходимости, думаю, вёрстку поправить сможете

Спасибо большое, как раз думал над этим, но решил не спешить

Меняем на это

$header_contents = ‘’;
if(!class_exists(‘JDocumentRendererHead’)) {
$head = JPATH_LIBRARIES . ‘/joomla/document/html/renderer/head.php’;
if(file_exists($head)) {
require_once($head);
}
}

Я понял, в чем косяк — сразу внимание не обратил на неправильные кавычки (возможно автор первоисточника намеренно так сделал, кто знает), и своего бездумного копирования, вследствие которых и получился неправильный код. Просто скопировал этот же кусок из нового шаблона, в итоге получилось вот так:

$header_contents = '';
if(!class_exists('JDocumentRendererHead')) {
  $head = JPATH_LIBRARIES . '/joomla/document/html/renderer/head.php';
  if(file_exists($head)) {
    require_once($head);
  }
}

« Последнее редактирование: 09.02.2018, 11:53:06 от Comrade Steel »

Записан

сразу внимание не обратил на опечатки (возможно намеренные, из-за своего бездумного копирования)

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

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

У меня Ubuntu, но я так же попробовал скопировать код с первоисточника, что Вы указали, что бы точно исключить ошибку — там та же самая ошибка с кавычками, следственно ошибка еще была в первоисточнике. Вас никоим образом не виню.

« Последнее редактирование: 09.02.2018, 11:58:32 от Comrade Steel »

Записан

там та же самая ошибка с кавычками, следственно ошибка еще была в первоисточнике.

Возможно там копировали также через мак-устройство
проблему такую я не первый раз уже ловлю. Даже когда свой код из одной темы в другую копировал — кавычки заменились. Вот такая она, эта умная техника

Возможно там копировали также через мак-устройство
проблему такую я не первый раз уже ловлю. Даже когда свой код из одной темы в другую копировал — кавычки заменились. Вот такая она, эта умная техника

Понял, в очередной раз спасибо в любом случае — приму к сведению в дальнейшем

Moderator: General Support Moderators

watashi314

Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Aug 09, 2013 3:56 am

Error 500 instead of 404 after upgrade to Joomla 3.8

Hello all,

It looks like the problem has started after upgrade to Joomla 3.8.
The problem is evidenced on two sites, which were updated to 3.8.
The other site, running on 3.4.6 is showing error 404 correctly.

Has anyone faced the same problem? Any hints where this comes from?

PHP version: 5.6.

Template used is RocketTheme Lumiere.

Server logs show this line (when I try to enter a wrong URL):

Code: Select all

GET /wrongurl HTTP/1.0" 500 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

I tried to revert .htaccess to a fresh installation of Joomla 3.8, but it did not help.

The sample of the wrong URL is: http://www.kaira.com.ua/wrongurl

How do I drill down to identify the cause of the problem? :'(

My .htaccess is listed below FYI:

Code: Select all


RewriteEngine On
RewriteCond %{HTTP_HOST} ^kaira [NC]
RewriteRule (.*) http://www.kaira.com.ua/$1 [R=301,L]

## No directory listings
<IfModule autoindex>
  IndexIgnore *
</IfModule>

##
# @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 +SymLinksIfOwnerMatch' 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 +SymLinksIfOwnerMatch

#
#  mod_rewrite in use

# RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site then comment out the operations listed 
# below by adding a # to the beginning of the line.
# This attempts to block the most common type of exploit `attempts` on Joomla!
#
# Block any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*([^)]*) [OR]
# Block any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
# Block 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 home page
RewriteRule .* index.php [F]
#
## 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.
#
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.



watashi314

Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Aug 09, 2013 3:56 am

Re: Error 500 instead of 404 after upgrade to Joomla 3.8

Post

by watashi314 » Wed Oct 04, 2017 7:45 pm

Hi,
Thanks for your reply.
Here goes the result.
Do you see anything specific?

Forum Post Assistant (v1.3.4) : 4th October 2017 wrote:

Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.8.0-Stable (Amani) 19-September-2017
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Writable (660) | Owner: —protected— . (uid: 1/gid: 1) | Group: —protected— (gid: 1) | Valid For: 3.8
Configuration Options :: Offline: 0 | SEF: 1 | SEF Suffix: 0 | SEF ReWrite: 1 | .htaccess/web.config: Yes | GZip: 0 | Cache: 1 | CacheTime: 15 | CacheHandler: memcached | CachePlatformPrefix: 0 | FTP Layer: 0 | Proxy: 0 | LiveSite: | Session lifetime: 1500 | Session handler: database | Shared sessions: 0 | SSL: 0 | FrontEdit: 1 | Error Reporting: default | Site Debug: 0 | Language Debug: 0 | Default Access: 1 | Unicode Slugs: 0 | Database Credentials Present: Yes

Host Configuration :: OS: Linux | OS Version: 2.6.32-673.26.1.lve1.4.30.el6.x86_64 | Technology: x86_64 | Web Server: Apache | Encoding: gzip, deflate | Doc Root: —protected— | System TMP Writable: Yes

PHP Configuration :: Version: 5.6.30 | PHP API: litespeed | Session Path Writable: Yes | Display Errors: | Error Reporting: 85 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Open Base: /home/watashi/kaira.com.ua/www:/home/watashi/.system/tmp:/usr/local/pear | Uploads: 1 | Max. Upload Size: 50M | Max. POST Size: 50M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 192M

MySQL Configuration :: Version: 5.6.27-75.0-log (Client:mysqlnd 5.0.11-dev — 20120503 — $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $) | Host: —protected— (—protected—) | Collation: cp1251_ukrainian_ci (Character Set: cp1251) | Database Size: 38.22 MiB | #of Tables:  339

Detailed Environment :: wrote:PHP Extensions :: Core (5.6.30) | date (5.6.30) | ereg () | libxml () | openssl () | pcre () | sqlite3 (0.7-dev) | zlib (2.0) | bcmath () | bz2 () | calendar () | ctype () | curl () | dom (20031129) | hash (1.0) | fileinfo (1.0.5) | filter (0.11.0) | ftp () | gd () | gettext () | gmp () | SPL (0.2) | iconv () | session () | intl (1.1.0) | json (1.2.1) | mbstring () | mcrypt () | mssql () | standard (5.6.30) | mysqlnd (mysqlnd 5.0.11-dev — 20120503 — $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $) | mysqli (0.1) | pcntl () | mysql (1.0) | PDO (1.0.4dev) | pdo_mysql (1.0.2) | pdo_sqlite (1.0.1) | Phar (2.0.2) | posix () | readline (5.6.30) | Reflection ($Id: 5f15287237d5f78d75b19c26915aa7bd83dee8b8 $) | imap () | shmop () | SimpleXML (0.1) | soap () | sockets () | exif (1.4 $Id: 1c8772f76be691b7b3f77ca31eb788a2abbcefe5 $) | sysvmsg () | sysvsem () | sysvshm () | tidy (2.0) | tokenizer (0.1) | wddx () | xml () | xmlreader (0.1) | xmlrpc (0.51) | xmlwriter (0.1) | xsl (0.1) | zip (1.12.5) | litespeed () | imagick (3.1.2) | timezonedb (2016.7) | memcached (2.1.0) | memcache (2.2.7) | mhash () | Zend Engine (2.6.0) |
Potential Missing Extensions :: suhosin |

Switch User Environment (Experimental) :: PHP CGI: No | Server SU: No | PHP SU: No | Custom SU (LiteSpeed/Cloud/Grid): Yes
Potential Ownership Issues: No

Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (750) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) |

Elevated Permissions (First 10) ::

Database Information :: wrote:Database statistics :: Uptime: 26178693 | Threads: 26 | Questions: 41605266189 | Slow queries: 134018 | Opens: 25174149 | Flush tables: 304 | Open tables: 41077 | Queries per second avg: 1589.279 |

Extensions Discovered :: wrote:Components :: SITE :: com_mailto (3.0.0) 1 | com_wrapper (3.0.0) 1 |
Components :: ADMIN :: com_installer (3.0.0) 1 | com_checkin (3.0.0) 1 | com_postinstall (3.2.0) 1 | com_search (3.0.0) 1 | Droppics frontend (3.1.3) 1 | Droppics (3.1.3) 1 | Joomunited updater (1.0.0) 1 | Editors-xtd — Droppics (3.1.3) 1 | Droppics — Carousel (3.1.3) 1 | Content — droppics (3.1.3) 1 | Droppics — Masonry (3.1.3) 1 | Droppics — Heapshot (3.1.3) 1 | Droppics — Polaroid (3.1.3) 1 | K2 — droppics (3.1.3) 1 | Droppics — BxSlider (3.1.3) 1 | com_media (3.0.0) 1 | com_messages (3.0.0) 1 | com_rsform (1.50.25) 1 | COM_GANTRY (4.1.33) 1 | com_tags (3.1.0) 1 | com_templates (3.0.0) 1 | com_users (3.0.0) 1 | com_ajax (3.2.0) 1 | com_newsfeeds (3.0.0) 1 | com_banners (3.0.0) 1 | com_fields (3.7.0) 1 | RokGallery (2.42) 1 | com_config (3.0.0) 1 | com_contenthistory (3.2.0) 1 | com_finder (3.0.0) 1 | com_modules (3.0.0) 1 | com_cpanel (3.0.0) 1 | com_categories (3.0.0) 1 | com_languages (3.0.0) 1 | RokSprocket (2.1.21) 1 | com_redirect (3.0.0) 1 | com_admin (3.0.0) 1 | Akeeba (5.6.0) 1 | com_plugins (3.0.0) 1 | RokCandy (2.0.2) 1 | com_menus (3.0.0) 1 | com_associations (3.7.0) 1 | com_content (3.0.0) 1 | com_joomlaupdate (3.6.2) 1 | com_login (3.0.0) 1 | com_weblinks (3.6.0) 1 | com_cache (3.0.0) 1 |

Modules :: SITE :: RSForm! Pro Module (1.4.0) 1 | mod_feed (3.0.0) 1 | mod_search (3.0.0) 1 | mod_footer (3.0.0) 1 | RokGallery Module (2.42) 1 | RokNavMenu (2.0.9) 1 | mod_finder (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_articles_popular (3.0.0) 1 | RokSprocket Module (2.1.21) 1 | mod_languages (3.5.0) 1 | mod_breadcrumbs (3.0.0) 1 | RokAjaxSearch (2.0.4) 1 | mod_users_latest (3.0.0) 1 | mod_wrapper (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_tags_similar (3.1.0) 1 | mod_banners (3.0.0) 1 | mod_login (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_whosonline (3.0.0) 1 | mod_weblinks (3.6.0) 1 | mod_articles_archive (3.0.0) 1 |
Modules :: ADMIN :: mod_feed (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_logged (3.0.0) 1 | mod_version (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_stats_admin (3.0.0) 1 | mod_title (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_quickicon (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_status (3.0.0) 1 | mod_login (3.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_sampledata (3.8.0) 0 | mod_latest (3.0.0) 1 |

Plugins :: SITE :: plg_twofactorauth_yubikey (3.2.0) 0 | plg_twofactorauth_totp (3.2.0) 1 | plg_captcha_recaptcha (3.4.0) 1 | Very Simple Image Gallery (1.6.8) 1 | plg_content_joomla (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_content_vote (3.0.0) 1 | Content — RokInjectModule (1.7) 1 | plg_content_pagenavigation (3.0.0) 1 | Content — RokBox (2.0.13) 1 | plg_content_finder (3.0.0) 0 | Content — droppics (3.1.3) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_geshi (3.0.0) 0 | plg_quickicon_akeebabackup (1.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | K2 — droppics (3.1.3) 1 | plg_fields_color (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | Editor — RokPad (2.1.9) 1 | plg_editors_codemirror (5.28) 1 | plg_editors_tinymce (4.5.7) 1 | System — RokBooster (1.1.17) 1 | plg_system_languagefilter (3.0.0) 1 | plg_system_log (3.0.0) 1 | System — RokGallery (2.42) 1 | plg_system_updatenotification (3.5.0) 1 | plg_system_debug (3.0.0) 1 | System — RokCandy (2.0.2) 1 | System — RSForm! Pro (1.50.10) 0 | plg_system_fields (3.7.0) 1 | plg_system_p3p (3.0.0) 1 | System — Gantry 4 (4.1.33) 1 | System — RokCommon (3.2.5) 1 | System — RokSprocket (2.1.21) 1 | plg_system_logout (3.0.0) 1 | PLG_SYSTEM_BACKUPONUPDATE_TITL (3.7) 1 | plg_system_stats (3.5.0) 1 | System — RokBox (2.0.13) 1 | plg_system_sef (3.0.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_remember (3.0.0) 0 | plg_system_redirect (3.0.0) 1 | plg_system_highlight (3.0.0) 1 | System — RokExtender (2.0.0) 1 | plg_system_languagecode (3.0.0) 1 | PLG_SYSTEM_AKEEBAUPDATECHECK_T (1.1) 1 | plg_user_contactcreator (3.0.0) 0 | plg_user_profile (3.0.0) 0 | plg_user_joomla (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_search_tags (3.0.0) 0 | plg_search_categories (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | plg_search_weblinks (3.6.0) 1 | plg_search_newsfeeds (3.0.0) 1 | Button — RokGallery (2.42) 1 | plg_editors-xtd_module (3.5.0) 1 | Editors-xtd — Droppics (3.1.3) 1 | plg_editors-xtd_image (3.0.0) 1 | Button — RokCandy (2.0.2) 1 | plg_editors-xtd_fields (3.7.0) 1 | Button — RokBox (2.0.13) 1 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_installer_rsform (1.0.0) 1 | Joomunited updater (1.0.0) 1 | PLG_INSTALLER_URLINSTALLER (3.6.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) 1 | plg_installer_webinstaller (1.1.1) 1 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_gmail (3.0.0) 0 | plg_authentication_cookie (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_finder_content (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_weblinks (3.6.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | Droppics — Heapshot (3.1.3) 1 | Droppics — Polaroid (3.1.3) 1 | Droppics — Carousel (3.1.3) 1 | Droppics — Masonry (3.1.3) 1 | Droppics — BxSlider (3.1.3) 1 | plg_extension_joomla (3.0.0) 1 |

Templates Discovered :: wrote:Templates :: SITE :: rt_lumiere (1.0) 1 | beez3 (3.1.0) 1 | Droppics frontend (3.1.3) 1 | protostar (1.0) 1 |
Templates :: ADMIN :: hathor (3.0.0) 1 | isis (1.0) 1 |


User avatar

Actor

Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Fri Aug 19, 2005 10:59 am
Location: Netherlands

Re: Error 500 instead of 404 after upgrade to Joomla 3.8

Post

by Actor » Wed Oct 04, 2017 9:20 pm

Got similar issues on 2 sites.
Try using php v5.3 for the joomla update.
That worked for me.
(php 7.1 also failed)


wojsmol

Joomla! Explorer
Joomla! Explorer
Posts: 475
Joined: Fri Jul 24, 2009 8:18 am

Re: Error 500 instead of 404 after upgrade to Joomla 3.8

Post

by wojsmol » Thu Oct 05, 2017 4:46 am

Hi watashi314
1. Did you make a backup before update to 3.8.0?
2. If possible please increase Max. Execution Time: to 120.


watashi314

Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Aug 09, 2013 3:56 am

Re: Error 500 instead of 404 after upgrade to Joomla 3.8

Post

by watashi314 » Thu Oct 05, 2017 8:43 am

Actor wrote:Try using php v5.3 for the joomla update.
That worked for me.
(php 7.1 also failed)

Thanks for the idea.
I have tried to switch PHP version to to 5.3, 5.4 and 5.5 but regretfully neither worked for me.
I tried it on my both web sites. I have also confirmed actual php version with phpversion();
:(
So, now I am back to 5.6, which is currently stable and recommended by my hosting provider.


watashi314

Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Aug 09, 2013 3:56 am

Re: Error 500 instead of 404 after upgrade to Joomla 3.8

Post

by watashi314 » Thu Oct 05, 2017 8:50 am

Hello,

Thanks for your try.

wojsmol wrote:Hi watashi314
1. Did you make a backup before update to 3.8.0?

Yes, I always do back ups. But I do not want to revert to the older version of my web site. I want to make Joomla 3.8 to work properly.
Also I have noticed the issue too late. I have already done many modifications to my site.
(All the site was working perfectly after the upgrade! Who knew that I need to check even 404 pages?) :-

wojsmol wrote:2. If possible please increase Max. Execution Time: to 120.

The problem occured not during the installation. If it happens during installation, that could resolve the issue, I agree.
But the error 500 is thrown by the server when I try to access a non existing page. Setting 120 sec to a live site has no sense I believe.
Anyway, I have just tried and it does not work.


wojsmol

Joomla! Explorer
Joomla! Explorer
Posts: 475
Joined: Fri Jul 24, 2009 8:18 am

Re: Error 500 instead of 404 after upgrade to Joomla 3.8

Post

by wojsmol » Thu Oct 05, 2017 9:03 am

Set error reporting to maximum in global configuration for a moment and provoke error 500.


watashi314

Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Aug 09, 2013 3:56 am

Re: Error 500 instead of 404 after upgrade to Joomla 3.8

Post

by watashi314 » Thu Oct 05, 2017 10:19 am

wojsmol wrote:Set error reporting to maximum in global configuration for a moment and provoke error 500.

Thank you for the good hint. I have narrowed the cause of the problem. After I switch on display errors, I can see the two lines:

Code: Select all

Warning: require_once(/home/censored/censored/www/libraries/joomla/document/html/renderer/head.php): failed to open stream: No such file or directory in /home/censored/censored/www/templates/rt_lumiere/error.php on line 76

Fatal error: require_once(): Failed opening required '/home/censored/censored/www/libraries/joomla/document/html/renderer/head.php' (include_path='.:/usr/local/pear/php56') in /home/censored/censored/www/templates/rt_lumiere/error.php on line 76

Clearly it comes from Rockettheme template.

Now I can see following in the changelog of rockettheme template:

Code: Select all

Release Notes - Lumiere - Version 1.9 - 2017-09-25

Bug
• Fatal error: require_once(): Failed opening required '../libraries/joomla/document/html/renderer/head.php' in Joomla 3.8
Changed File(s) and Folder(s):
/error.php
/MD5SUMS
/offline.php
/unsupported.php
/templateDetails.xml

The bad thing is my subscription plan for RocketTheme is over. And I need to buy a new one to simply correct their error… :laugh:


watashi314

Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Aug 09, 2013 3:56 am

Re: Error 500 instead of 404 after upgrade to Joomla 3.8

Post

by watashi314 » Thu Oct 05, 2017 10:51 am

I will just leave the fix here just in case someone else is using Rockettheme and his subscription has already been expired:

1. Look in the templates/TEMPLATENAME/ folder

2. Open three files error.php, offline.php and comingsoon.php

3. Find this line in each:

Code: Select all

require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');

and replace with:

Code: Select all

if (!class_exists('JDocumentRendererHead')) {
    require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');
}


insprymedia

Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Apr 06, 2011 12:44 pm
Location: Atlanta, Georgia
Contact:

Re: Error 500 instead of 404 after upgrade to Joomla 3.8

Post

by insprymedia » Thu Mar 08, 2018 4:18 pm

Thank you watashi314! Your edit fixed my Gantry template issue when users were trying to activate a new account and received the head.php error.



Return to “Migrating and Upgrading to Joomla! 3.x”


Jump to

  • Joomla! Announcements
  • ↳   Announcements
  • ↳   Announcements Discussions
  • Joomla! 4.x — Ask Support Questions Here
  • ↳   General Questions/New to Joomla! 4.x
  • ↳   Installation Joomla! 4.x
  • ↳   Administration Joomla! 4.x
  • ↳   Migrating and Upgrading to Joomla! 4.x
  • ↳   Extensions for Joomla! 4.x
  • ↳   Security in Joomla! 4.x
  • ↳   Templates for Joomla! 4.x
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 4.x
  • ↳   Language — Joomla! 4.x
  • ↳   Performance — Joomla! 4.x
  • ↳   Joomla! 4.x Coding
  • Joomla! 3.x — Ask Support Questions Here
  • ↳   General Questions/New to Joomla! 3.x
  • ↳   Installation Joomla! 3.x
  • ↳   Joomla! 3.x on IIS webserver
  • ↳   Administration Joomla! 3.x
  • ↳   Access Control List (ACL) in Joomla! 3.x
  • ↳   Migrating and Upgrading to Joomla! 3.x
  • ↳   Security in Joomla! 3.x
  • ↳   Extensions for Joomla! 3.x
  • ↳   Templates for Joomla! 3.x
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 3.x
  • ↳   Language — Joomla! 3.x
  • ↳   Performance — Joomla! 3.x
  • ↳   Joomla! 3.x Coding
  • Joomla! Versions which are End of Life
  • ↳   Joomla! 2.5 — End of Life 31 Dec 2014
  • ↳   General Questions/New to Joomla! 2.5
  • ↳   Installation Joomla! 2.5
  • ↳   Joomla! 2.5 on IIS webserver
  • ↳   Administration Joomla! 2.5
  • ↳   Access Control List (ACL) in Joomla! 2.5
  • ↳   Migrating and Upgrading to Joomla! 2.5
  • ↳   Security in Joomla! 2.5
  • ↳   Extensions for Joomla! 2.5
  • ↳   Templates for Joomla! 2.5
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 2.5
  • ↳   Language — Joomla! 2.5
  • ↳   Performance — Joomla! 2.5
  • ↳   Joomla! 1.5 — End of Life Sep 2012
  • ↳   General Questions/New to Joomla! 1.5
  • ↳   Installation 1.5
  • ↳   Joomla! 1.5 on IIS webserver
  • ↳   Administration 1.5
  • ↳   Migrating and Upgrading to Joomla! 1.5
  • ↳   Security in Joomla! 1.5
  • ↳   Extensions for Joomla! 1.5
  • ↳   Templates for Joomla! 1.5
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 1.5
  • ↳   Language — Joomla! 1.5
  • ↳   Performance — Joomla! 1.5
  • ↳   Joomla! 1.0 — End of Life 22 July 2009
  • ↳   Installation — 1.0.x
  • ↳   Upgrading — 1.0.x
  • ↳   Security — 1.0.x
  • ↳   3rd Party/Non Joomla! Security Issues
  • ↳   Administration — 1.0.x
  • ↳   Extensions — 1.0.x
  • ↳   Components
  • ↳   Modules
  • ↳   Plugins/Mambots
  • ↳   WYSIWYG Editors — 1.0.x
  • ↳   Integration & Bridges — 1.0.x
  • ↳   phpbb — Joomla! Integration
  • ↳   Templates & CSS — 1.0.x
  • ↳   Language — 1.0.x
  • ↳   Joom!Fish and Multilingual Sites
  • ↳   Performance — 1.0.x
  • ↳   General Questions — 1.0.x
  • Joomla! International Language Support
  • ↳   International Zone
  • ↳   Arabic Forum
  • ↳   تنبيهات هامة
  • ↳   الدروس
  • ↳   4.x جوملا!
  • ↳   جوملا! 1.6/1.7
  • ↳   الأسئلة الشائعة
  • ↳   التثبيت و الترقية
  • ↳   الحماية — و تحسين السرعة والأداء
  • ↳   لوحة التحكم
  • ↳   الإضافات البرمجية
  • ↳   تعريب جوملا! و الإضافات البرمجية
  • ↳   القوالب و التصميم
  • ↳   صداقة محركات البحث
  • ↳   القسم العام
  • ↳   1.5 !جوملا
  • ↳   الأسئلة الشائعة
  • ↳   التثبيت و الترقية
  • ↳   الحماية — و تحسين السرعة والأداء
  • ↳   لوحة التحكم
  • ↳   الإضافات البرمجية
  • ↳   تعريب جوملا! و الإضافات البرمجية
  • ↳   القوالب و التصميم
  • ↳   صداقة محركات البحث
  • ↳   القسم العام
  • ↳   جوملا! 1.0
  • ↳   الأسئلة الشائـعة
  • ↳   التثبيت
  • ↳   لوحة التحكم
  • ↳   الإضافات البرمجية
  • ↳   الإضافات المعرّبة
  • ↳   القوالب و التصميم
  • ↳   الحماية — تحسين السرعة والأداء — صداقة محركات البحث
  • ↳   القسم العام
  • ↳   القسم العام
  • ↳   !عرض موقعك بجوملا
  • ↳   الأرشيف
  • ↳   Bengali Forum
  • ↳   Bosnian Forum
  • ↳   Joomla! 1.5
  • ↳   Instalacija i prvi koraci
  • ↳   Ekstenzije
  • ↳   Templejti
  • ↳   Moduli
  • ↳   Prevodi i dokumentacija
  • ↳   Joomla! 1.7 / Joomla! 1.6
  • ↳   Catalan Forum
  • ↳   Notícies
  • ↳   Temes sobre l’administració
  • ↳   Temes sobre la traducció
  • ↳   Components, mòduls i joombots
  • ↳   Temes de disseny
  • ↳   Webs realitzades amb Joomla!
  • ↳   Offtopics
  • ↳   Chinese Forum
  • ↳   Croatian Forum
  • ↳   Danish Forum
  • ↳   Meddelelser
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x (Anbefalet til nye installationer. Nyeste funktionalitet)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Plugins
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Ældre versioner (disse vedligeholdes ikke længere fra officiel side)
  • ↳   Joomla! 2.5 (Supporteres indtil 31. dec. 2014)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Plugins
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Joomla 1.5 (Tidligere langtidssupporteret version indtil sep. 2012)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Plugins
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Joomla 1.0 (Udgået version, der blev afløst af 1.5 i 2008)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Mambots
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Oversættelser (lokalisering)
  • ↳   Joomla brugergrupper i Danmark
  • ↳   JUG Kolding
  • ↳   JUG København
  • ↳   JUG Odense
  • ↳   JUG Århus
  • ↳   JUG Sorø
  • ↳   Kommerciel (betalt) hjælp ønskes
  • ↳   SEO
  • ↳   FAQ — Dokumentation og vejledninger
  • ↳   Vis dit websted
  • ↳   Afviste ‘Vis dit websted’ indlæg
  • ↳   Diverse (Off topic)
  • ↳   Dutch Forum
  • ↳   Aankondigingen
  • ↳   Algemene vragen
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Installatie 3.x
  • ↳   Extensies 3.x
  • ↳   Templates 3.x
  • ↳   Joomla! 2.5
  • ↳   Installatie 2.5
  • ↳   Componenten 2.5
  • ↳   Modules 2.5
  • ↳   Plugins 2.5
  • ↳   Templates 2.5
  • ↳   Joomla! 1.5
  • ↳   Installatie
  • ↳   Componenten
  • ↳   Modules
  • ↳   Plugins
  • ↳   Templates
  • ↳   Joomla! 1.0
  • ↳   Installatie 1.0.x
  • ↳   Componenten 1.0.x
  • ↳   Modules 1.0.x
  • ↳   Mambots 1.0.x
  • ↳   Templates 1.0.x
  • ↳   Vertalingen
  • ↳   Offtopic
  • ↳   Show jouw website
  • ↳   Filipino Forum
  • ↳   International Support Center
  • ↳   Pinoy General Discussion & Archives
  • ↳   Site Showcase
  • ↳   Events
  • ↳   Design Tips and Tricks
  • ↳   Tsismis Zone
  • ↳   Pinoy Translation Zone
  • ↳   Pinoy Forum Archives
  • ↳   Joomla! Philippines Local Forum www.joomla.org.ph
  • ↳   Finnish Forum
  • ↳   French Forum
  • ↳   Les annonces!
  • ↳   Le bistrot!
  • ↳   L’expo!
  • ↳   J! 4.x — L’atelier!
  • ↳   J! 3.x — L’atelier!
  • ↳   3.x — Questions générales, nouvel utilisateur
  • ↳   3.x — Installation, migration et mise à jour
  • ↳   3.x — Sécurité et performances
  • ↳   3.x — Extensions tierce partie
  • ↳   3.x — Templates et design
  • ↳   3.x — Développement
  • ↳   3.x — Ressources
  • ↳   J! 2.5.x — L’atelier!
  • ↳   2.5 — Questions générales
  • ↳   2.5 — Installation, migration et mise à jour
  • ↳   2.5 — Sécurité et performances
  • ↳   2.5 — Extensions tierce partie
  • ↳   2.5 — Templates et design
  • ↳   2.5 — Développement
  • ↳   2.5 — Ressources
  • ↳   J! 1.5.x — L’atelier!
  • ↳   1.5 — Questions générales
  • ↳   1.5 — Installation, migration et mise à jour
  • ↳   1.5 — Sécurité et performances
  • ↳   1.5 — Extensions tierce partie
  • ↳   1.5 — Templates et design
  • ↳   1.5 — Développement
  • ↳   1.5 — Ressources
  • ↳   J! 1.0.x — L’atelier!
  • ↳   1.0 — Questions générales
  • ↳   1.0 — Installation et mise à jour
  • ↳   1.0 — Sécurité
  • ↳   1.0 — Extensions tierce partie
  • ↳   1.0 — Templates et design
  • ↳   1.0 — Développement
  • ↳   1.0 — Ressources
  • ↳   Besoin d’un professionel ?
  • ↳   Extensions Open Source pour Joomla!
  • ↳   German Forum
  • ↳   Ankündigungen
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Allgemeine Fragen
  • ↳   Installation und erste Schritte
  • ↳   Komponenten, Module, Plugins
  • ↳   Template, CSS und Designfragen
  • ↳   Entwicklerforum
  • ↳   Zeige Deine Webseite
  • ↳   Joomla! 2.5
  • ↳   Allgemeine Fragen
  • ↳   Installation und erste Schritte
  • ↳   Komponenten, Module, Plugins
  • ↳   Template, CSS und Designfragen
  • ↳   Entwicklerforum
  • ↳   Zeige Deine Webseite
  • ↳   Joomla! 1.5
  • ↳   Allgemeine Fragen
  • ↳   Installation und erste Schritte
  • ↳   Komponenten, Module, Plugins
  • ↳   Template, CSS und Designfragen
  • ↳   Entwicklerforum
  • ↳   Zeige Deine Webseite
  • ↳   Professioneller Service
  • ↳   Sonstiges (Offtopic)
  • ↳   Archiv
  • ↳   Joomla! 1.0
  • ↳   Allgemeine Fragen 1.0.x
  • ↳   Installation und erste Schritte 1.0.x
  • ↳   Komponenten, Module, Mambots 1.0.x
  • ↳   Template, CSS und Designfragen 1.0.x
  • ↳   Entwicklerforum 1.0.x
  • ↳   Zeige Deine Webseite 1.0.x
  • ↳   Greek Forum
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Joomla! 2.5.x
  • ↳   Joomla! 1.5.x
  • ↳   Joomla! 1.0.x
  • ↳   Hebrew Forum
  • ↳   Indic Languages Forum
  • ↳   Indonesian Forum
  • ↳   FAQ
  • ↳   Bantuan
  • ↳   Komponen
  • ↳   Modul
  • ↳   Template
  • ↳   Diskusi
  • ↳   Italian Forum
  • ↳   Guide
  • ↳   Traduzioni
  • ↳   Componenti — Moduli — Plugins
  • ↳   Template — Grafica
  • ↳   Notizie
  • ↳   Prodotti Open Source per Joomla!
  • ↳   Richieste professionali
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Joomla! 2.5.x
  • ↳   Joomla! 1.x
  • ↳   Latvian Forum
  • ↳   Lithuanian Forum
  • ↳   Joomla! 4.x
  • ↳   Joomla! 1.5
  • ↳   Joomla! 1.7 / Joomla! 1.6
  • ↳   Joomla! 1.0
  • ↳   Vertimai ir Kalba
  • ↳   Malaysian Forum
  • ↳   Solved
  • ↳   Norwegian Forum
  • ↳   Informasjon
  • ↳   Arkiverte annonseringer
  • ↳   FAQ — Ofte spurte spørsmål
  • ↳   Arkiv
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Administrasjon/installasjon
  • ↳   Migrering/Oppdatering
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/programutvidelser
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Netthandel, betaling m.m.
  • ↳   VirtueMart
  • ↳   Andre nettbutikkløsninger
  • ↳   Generelt
  • ↳   Oversettelser
  • ↳   Fremvisning av sider (Show off)
  • ↳   Avviste fremvisninger
  • ↳   Diverse (off topic)
  • ↳   Kommersiell hjelp ønskes
  • ↳   Eldre versjoner av Joomla!
  • ↳   Joomla! 1.0
  • ↳   Administrasjon/installasjon
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/mambots
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Joomla! 1.5
  • ↳   Administrasjon/installasjon
  • ↳   Migrering/Oppdatering
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/programutvidelser
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Joomla! 2.5
  • ↳   Administrasjon/installasjon
  • ↳   Migrering/Oppdatering
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/programutvidelser
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Persian Forum
  • ↳   قالب ها
  • ↳   مدیریت
  • ↳   سوالهای عمومی
  • ↳   نصب
  • ↳   مامبوت ها
  • ↳   ماژولها
  • ↳   کامپوننت ها
  • ↳   Polish Forum
  • ↳   Instalacja i aktualizacja
  • ↳   Administracja
  • ↳   Komponenty, moduły, wtyczki
  • ↳   Szablony
  • ↳   Paczta i Podziwiajta
  • ↳   Modyfikacje i własne rozwiązania
  • ↳   Tłumaczenia
  • ↳   FAQ
  • ↳   Tips&Tricks
  • ↳   Dokumentacja
  • ↳   Profesjonalne usługi
  • ↳   Portuguese Forum
  • ↳   Componentes, módulos e mambots
  • ↳   Programação e desenvolvimento
  • ↳   Segurança
  • ↳   Sites dos usuários
  • ↳   Off-topic
  • ↳   Tradução
  • ↳   Templates
  • ↳   Romanian Forum
  • ↳   Traduceri
  • ↳   Russian Forum
  • ↳   Объявления по Joomla!
  • ↳   Безопасность Joomla!
  • ↳   Joomla 4.x — Задайте здесь свой вопрос по поддержке
  • ↳   Joomla 3.x — Задайте здесь свой вопрос по поддержке
  • ↳   Общие вопросы/Новичок в Joomla! 3.x
  • ↳   Установка Joomla! 3.x
  • ↳   Миграция и переход на Joomla! 3.x
  • ↳   Расширения для Joomla! 3.x
  • ↳   Многоязычные веб-сайты на Joomla 3.x
  • ↳   Joomla 2.5 — Задайте здесь свой вопрос по поддержке
  • ↳   Общие вопросы/Новичок в Joomla! 2.5
  • ↳   Установка Joomla! 2.5
  • ↳   Расширения для Joomla! 2.5
  • ↳   Русский язык Joomla! 2.5
  • ↳   Serbian/Montenegrin Forum
  • ↳   Tehnička pitanja
  • ↳   Instalacija i početnička pitanja
  • ↳   Šabloni
  • ↳   Prevod i dokumentacija
  • ↳   Ćaskanje
  • ↳   Bezbednost
  • ↳   Joomla! dodaci
  • ↳   Pravna pitanja
  • ↳   Arhiva
  • ↳   Joomla! Događaji i Zajednica
  • ↳   Izlog (spisak) sajtova radjenih u Joomla! CMS-u
  • ↳   Profesionalne usluge
  • ↳   Slovak Forum
  • ↳   Spanish Forum
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Migración y actualización a Joomla 3.x
  • ↳   Versiones de Joomla! obsoletas
  • ↳   Joomla! 2.5
  • ↳   Joomla! 1.5
  • ↳   Extensiones
  • ↳   Plantillas (templates) y diseño
  • ↳   Idioma y traducciones
  • ↳   SEO para Joomla!
  • ↳   Seguridad y rendimiento
  • ↳   Productos de Código Abierto para Joomla!
  • ↳   Servicios profesionales
  • ↳   Salón de la comunidad Ñ
  • ↳   Swedish Forum
  • ↳   Meddelanden
  • ↳   Forum Joomla! 4.x
  • ↳   Forum Joomla! 3.x
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Äldre versioner
  • ↳   Forum Joomla! 1.0
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och Mambots
  • ↳   Mallar (templates) och design
  • ↳   Forum Joomla! 1.7 / Joomla! 1.6
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Forum Joomla! 1.5
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Forum Joomla! 2.5
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Översättning
  • ↳   Webbplatser gjorda i Joomla
  • ↳   Webbplatser J! 3.x
  • ↳   Webbplatser J! 2.5
  • ↳   Webbplatser Joomla! 1.7 / Joomla! 1.6
  • ↳   Webbplatser J! 1.5
  • ↳   Webbplatser J! 1.0
  • ↳   Kommersiell hjälp önskas
  • ↳   Diverse (off topic)
  • ↳   Tamil Forum
  • ↳   Thai Forum
  • ↳   โชว์เว็บไซต์ของคุณที่สร้างด้วยจูมล่า
  • ↳   เคล็ดลับการใช้งานส่วนต่างๆ เกี่ยวกับจ&#
  • ↳   คอมโพเน้นท์ โมดูล ปลักอิน ต่างๆ ที่ติดตั
  • ↳   อับเดดข่าวสารเกี่ยวกับจูมล่าลายไทย
  • ↳   Turkish Forum
  • ↳   Duyurular
  • ↳   Dersler
  • ↳   Genel Sorular
  • ↳   Bileşen, Modül, Bot
  • ↳   Eklenti Haberleri
  • ↳   Temalar
  • ↳   Vietnamese Forum
  • ↳   Gặp gỡ và giao lưu
  • ↳   Joomla Tiếng Việt
  • ↳   Cài đặt — Cấu hình
  • ↳   Thành phần mở rộng cho Joomla!
  • ↳   Hỏi đáp Joomla! 3.x
  • ↳   Hỏi đáp Joomla! 2.5
  • ↳   Hỗ trợ kỹ thuật
  • ↳   Bài viết cũ
  • ↳   Thiết kế Template
  • ↳   Joomla! 1.5
  • ↳   Hỏi đáp Joomla! 4.x
  • ↳   Welsh Forum
  • Other Forums
  • ↳   Open Source Products for Joomla!
  • ↳   The Lounge
  • ↳   Forum Post Assistant (FPA)
  • Joomla! Development Forums
  • Joomla! Official Sites & Infrastructure
  • ↳   docs.joomla.org — Feedback/Information
  • ↳   extensions.joomla.org — Feedback/Information
  • ↳   joomla.com — Feedback/Information
  • ↳   Sites & Infrastructure — Feedback/Information
  • ↳   Archived Boards — All boards closed
  • ↳   Design and Accessibility — Archived
  • ↳   Quality and Testing — Locked and Archived
  • ↳   Joomla! 1.0.x_Q&T
  • ↳   Q&T 1.0.x Resolved
  • ↳   Known Issues
  • ↳   Superseded Issues
  • ↳   Archive
  • ↳   Q&T 1.0.x Resolved — Archived
  • ↳   Known Issues — Archive
  • ↳   Superseded Issues — Archive
  • ↳   Joomla! 3.x Bug Reporting
  • ↳   Third Party Testing for Joomla! 1.5
  • ↳   Q&T 1.5.x Resolved
  • ↳   Joomla! 1.5 BETA
  • ↳   Joomla! 1.5 BETA 2
  • ↳   Reaction to the ‘Letter to the community’
  • ↳   Reaction to New Project Name
  • ↳   Logo Competition
  • ↳   Humor, Fun and Games
  • ↳   Libraries
  • ↳   patTemplate
  • ↳   com_connector — Multi Joomla Bridge
  • ↳   CiviCRM Support
  • ↳   CiviCRM Installation Issues
  • ↳   FAQ Archive
  • ↳   FAQ Discussion Board
  • ↳   3rd Party Extensions FAQ
  • ↳   FAQs not moved
  • ↳   3rd Party/Non Joomla! Security FAQ
  • ↳   Joomla! Coding 101
  • ↳   Joombie Tools of the Trade
  • ↳   Joombie Coding Q/A
  • ↳   Joombie Think Tank
  • ↳   Joombie Developer Lab
  • ↳   Joomla Forge — Archived
  • ↳   Non-Profit Organizations and Joomla!
  • ↳   Schools and Universities
  • ↳   Bangsamoro Forum
  • ↳   Joomla! 1.5 Template Contest
  • ↳   SMF — Simplemachines.org Forum
  • ↳   GPL Discussion
  • ↳   Security Announcements — Old
  • ↳   Tips & Tricks — Moving
  • ↳   Submit Your Suggested Tips & Tricks to Docs.joomla.org now please.
  • ↳   Google Summer of Code and GHOP
  • ↳   Google Summer of Code 2008
  • ↳   Proposed projects
  • ↳   Student area
  • ↳   Past Google Summer of Code Editions
  • ↳   Google’s Highly Open Participation Contest
  • ↳   Documentation
  • ↳   Suggestions, Modifications, and Corrections
  • ↳   Archive
  • ↳   1.5 Archive
  • ↳   Suggestions, Modifications & Corrections
  • ↳   Submit
  • ↳   Feedback and Suggestions
  • ↳   Applications for participation in the Development Workgroup
  • ↳   Development
  • ↳   1.5 Site Showcase — Archived
  • ↳   1.0 x Site Showcase — Archived.
  • ↳   Feature Requests — White Papers — Archived
  • ↳   Under Review — Archived
  • ↳   Accepted — Archived
  • ↳   Not Accepted — Archived
  • ↳   Wishlists and Feature Requests — Archive
  • ↳   Wishlist Archives — Archived
  • ↳   Spanish Forum — Archive
  • ↳   Papelera
  • ↳   Tutoriales
  • ↳   General
  • ↳   Salón de la Joomlaesfera hispanohablante
  • ↳   Danish Forum — Archive
  • ↳   Diskussion af Meddelelser + Sikkerhedsmeddelelser + FAQ
  • ↳   Shop.Joomla.org
  • ↳   Joomla! 1.6 RC Support [closed]
  • ↳   Joomla! 1.0 Coding
  • ↳   Core Hacks and Patches
  • ↳   Joomla! 2.5 Beta Support
  • ↳   People.joomla.org — Feedback/Information
  • ↳   Joomla! 1.5 Bug Reporting
  • ↳   Joomla! 1.5 Coding
  • ↳   Joomla! 3 Beta Support
  • ↳   Trending Topics
  • ↳   Help wanted in the community
  • ↳   templates.joomla.org — Feedback/Information
  • ↳   Certification
  • ↳   Albanian Forum
  • ↳   Azeri Forum
  • ↳   Urdu Forum
  • ↳   Basque Forum
  • ↳   Itzulpenaren inguruan
  • ↳   Laguntza teknikoa
  • ↳   Belarusian Forum
  • ↳   Maltese Forum
  • ↳   Hungarian Forum
  • ↳   Slovenian Forum
  • ↳   Japanese Forum
  • ↳   Khmer Forum
  • ↳   ពិពណ៌​ស្ថាន​បណ្ដាញ​ជុំឡា
  • ↳   ជុំឡា​ខ្មែរ​មូលដ្ឋានីយកម្ម
  • ↳   Community Blog Discussions
  • ↳   JoomlaCode.org
  • ↳   Joomla! Marketing and PR Team
  • ↳   resources.joomla.org — Feedback/Information
  • ↳   Training.Joomla.org
  • ↳   OpenSourceMatters.org
  • ↳   magazine.joomla.org — Feedback/Information
  • ↳   Site Showcase
  • ↳   Joomla! 4 Related
  • ↳   Joomla! Events
  • ↳   Joomla! Ideas Forum
  • ↳   Registered Joomla! User Groups
  • ↳   Joomla! 2.5 Coding
  • ↳   Joomla! 2.5 Bug Reporting
  • ↳   User eXperience (UX)
  • ↳   Joomla! Working Groups
  • ↳   Translations

Joomla is correctly detecting when a page is not found, and redirects me to the error page I have setup. Unfortunately, I’ve found that the error code being returned is a 500, instead of a 404, and this is coming from Joomla.

Is there a way to get Joomla to return a 404 in this case?

FFrewin's user avatar

FFrewin

19.6k10 gold badges47 silver badges98 bronze badges

asked Apr 22, 2014 at 19:22

ContextSwitch's user avatar

1

In libraries/legacy/controller/legacy.php we changed:

throw new Exception(JText::sprintf('JLIB_APPLICATION_ERROR_VIEW_NOT_FOUND', $name, $type, $prefix), 500);

to

throw new Exception(JText::sprintf('JLIB_APPLICATION_ERROR_VIEW_NOT_FOUND', $name, $type, $prefix), 404);

answered Apr 29, 2014 at 13:49

ContextSwitch's user avatar

It sounds like your error page may have the wrong permissions set on it so that it isn’t able to show, so you end up with a 500 error instead. 500 errors are almost always caused by two things:

  1. Something wrong in your htaccess file
  2. bad permissions on a file or folder

there are other causes, but in my experience those are the two biggies.

answered Apr 22, 2014 at 19:26

Brian Peat's user avatar

Brian PeatBrian Peat

2,36613 silver badges18 bronze badges

7

"Whoops, looks like something went wrong", или что делать с ошибкой 500 в Joomla 4?

2 комментария

Что делать, если Joomla 4 выдаёт ошибку Sorry, there was a problem we could not recover from. The server returned a «500 — Whoops, looks like something went wrong»?

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

  1. Страница ошибки 404, вид и содержание которой зависят от применяемого шаблона. Такие ошибки возникают, когда сервер не может найти запрашиваемую страницу или ресурс. Подробнее про ошибки 404 в Joomla и про возможности кастомизации страниц таких ошибок смотрите здесь.
  2. Страница ошибки 500 с текстом «Произошла критическая ошибка» (на английском «Sorry, there was a problem we could not recover from») на красном фоне, которая отображается при возникновении серьезной ошибки на стороне сервера. Далее будем разбираться с тем, как решаются подобные проблемы.

Возможные причины

Существует множество возможных причин возникновения фатальных ошибок с кодом 500, среди которых:

  • Изменения в работе сервера, например, версия PHP, несовместимая с самой CMS Joomla или одним из установленных расширений.
  • Проблемы с дисковым пространством, использованием памяти или тайм-аутом скрипта.
  • Недавно установленное или включенное расширение, несовместимое с Joomla.

Что делать?

Для диагностики и выявления причины необходимо активировать режим отладки и показ ошибок на веб-страницах Joomla. Сделать это можно либо через админку в разделе Общие настройки, либо через файл configuration.php.

Активация режима отладки в админке

Если страница с текстом The server returned a «500 — Whoops, looks like something went wrong» возникает только на лицевых страницах:

  1. авторизуйтесь в админке,
  2. перейдите в раздел Общие настройки (Global Configuration),
  3. во вкладке Система (System) активируйте опцию Отладка системы (Debug System),
  4. во вкладке Сервер (Server) для опции Сообщения об ошибках (Error Reporting) установите значение Максимальные (Maximum).
  5. сохраните изменения.

Активация режима отладки через configuration.php

Если критическая ошибка возникает при запросах любых страниц сайта:

  1. найдите файл configuration.php в корневой папке сайта,
  2. измените права доступа к файлу на 644 (-rw-r—r—),
  3. откройте файл и измените значение переменной $debug на true, а переменной $error_reporting на maximum.
  4. сохраните изменения в файле.

Что делать дальше?

Теперь при перезагрузке страницы с уведомлением о критической ошибке будет отображаться отладочная информация с ошибками, которые возникают при обработке запрашиваемой страницы сервером:

Первый элемент в трассировке стека указывает, где возникла ошибка. Иногда этого достаточно, чтобы выявить неисправное расширение. Иногда неисправное расширение находится дальше по трассировке стека. Если трассировка стека вам ни о чем не говорит, вы можете приложить её в комментарии к данному материалу, и мы постараемся вам помочь.

Если вы сумеете определить неисправное расширение, то отключите его одним из способов:

  1. через админку Joomla, если она доступна;
  2. через phpMyAdmin найдите расширение по названию в таблице базы данных #__extensions и установите его значение enabled на 0.

После решения проблемы

После того, как вы найдёте причину ошибки и устраните её, необходимо отключить режим отладки и показ ошибок на веб-страницах вашего сайта:

  1. Авторизуйтесь в панели управления,
  2. перейдите в Общие настройки (Global Configuration),
  3. во вкладке Система (System) отключите опцию Отладка системы (Debug System),
  4. во вкладке Сервер (Server) для опции Сообщения об ошибках (Error Reporting) установите значение По умолчанию для системы (System Default).

В общем, часть проблемы решила созданием своей страницы 404 ошибки, sit.ru/doma-iz-brusa/odnoetazhnye-doma/40 HTTP/1.1 200 OK и открывается страница sit.ru/doma-iz-brusa/odnoetazhnye-doma

sit.ru/doma-iz-brusa/odnoetazhnye-doma/вав а так 404.

Файл еррорюпхп defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );

$app = JFactory::getApplication();

$yjsg_params = $app->getTemplate(true)->params;

$template = $this->template;

$default_color = $yjsg_params->get(«default_color»);

$default_font_family = $yjsg_params->get(«default_font_family»);

$logo_height = $yjsg_params->get(«logo_height»);

$logo_width = $yjsg_params->get(«logo_width»);

$css_width = $yjsg_params->get(«css_width»);

$default_font = $yjsg_params->get(«default_font»);

$css_widthdefined = $yjsg_params->get(«css_widthdefined»);

?>

<!DOCTYPE html PUBLIC «-//W3C//DTD XHTML 1.0 Transitional//EN» «http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd»>

<html xmlns=»http://www.w3.org/1999/xhtml» xml:lang=»<?php echo $this->language; ?>» lang=»<?php echo $this->language; ?>» dir=»<?php echo $this->direction; ?>»>

<head><title><?php echo $this->error->getCode(); ?> — <?php echo $this->title; ?></title>

</head>

<body><?php

if($this->error->getCode()==404){

header(«HTTP/1.0 404 Not Found»);

header(«HTTP/1.1 404 Not Found»);

header(«Status: 404 Not Found»);

$ch = curl_init();

curl_setopt($ch, CURLOPT_HEADER, 0);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_URL, JURI::base().’/404′); // 20 — Ид твоей страницы

$data = curl_exec($ch);

curl_close($ch);

echo $data;

die();}

?>

</body>

</html>

Возможно, вам также будет интересно:

  • 500 внутренняя ошибка сервера фсс что это значит
  • 500 внутренняя ошибка сервера ресурс не может быть отображен
  • 500 внутренняя ошибка сервера произошла внутренняя ошибка сервера
  • 500 внутренняя ошибка сервера повторите попытку позже
  • 500 внутренняя ошибка сервера госуслуги как исправить

  • Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии