Проблемы с обновлением с 3.1.0 на 3.2.7 (потом до 3.3.6)

Ищите помощь по установке! Joomla 3.x? По всем вопросам установки Joomla! 2.5 обращайтесь, пожалуйста, на этот форум.
Примечание: все выпуски версий 3.1 и 3.3 достигли своего конечного срока поддержки и должны быть обновлены до 3.x.

Moderator: AlexSmirnov

Forum rules
Locked
antira30
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Feb 16, 2015 8:46 pm

Проблемы с обновлением с 3.1.0 на 3.2.7 (потом до 3.3.6)

Post by antira30 » Mon Feb 16, 2015 8:55 pm

Здравствуйте!

Возникло несколько проблем.

1)Обновилась с 3.1.0 на 3.2.7. Потом до 3.3.6. Все вроде бы ничего. Xmap не работал, однако смогла восстановить. Нашлась страшнее ошибка: при нажатии на "Система"-"Панель управления" вылезло:
Fatal error: Call to a member function getInt() on a non-object in /home/c4112211/public_html/antarcom/administrator/components/com_postinstall/models/messages.php on line 37

залезла в файл и на 37 строке вижу:

36 // Add a forced extension filtering to the list
37 $eid = $this->input->getInt('eid', 700);
38 $query->where($db->qn('extension_id'). ' = ' . $db->q($eid));

Подскажите, что с этим можно сделать?

2)Необходимо настроить редирект так, что бы он переводил все неверно введенные (как в примере) адреса на URL оформленный по правилам:
- с www. в начале
-без index.php
-без home.html.
Пример:
с URL http://antarcom.ru/vozdukhonagrevatelny ... y-avn.html на http://www.antarcom.ru/vozdukhonagrevat ... y-avn.html


На данный момент решение отрабатывает через двойной редирект(хотя так не задумывалось, непонятно откуда берется двойной). То есть алгоритм судя по сайту проверки (http://www.bertal.ru/) отрабатывает так:
http://antarcom.ru/obshchaya-kharakteri ... stemy.html - >
http://www.antarcom.ru/index.php ->
http://www.antarcom.ru
ЗАДАЧА : Убрать двойной редирект. И на данный момент все такие ссылки переводятся на главную страницу, что то же надо прекратить и сохранить требуемую страницу.


3)Проблема с XML картой сайта. Имеется редирект:
с http://www.antarcom.ru/sitemap.xml на http://www.antarcom.ru/index.php?option ... onent&id=1.
Необходимо что бы ответ сервера при запросе адреса XML карты составлял 200 ок. Как я понимаю необходимо разместить карту сайта прямо по адресу .../sitemap.xml , что бы получить 200 ок.
Пользуюсь программкой Xmap для работы с картой сайта.
ЗАДАЧА : Как лучше и правильно сделать карту сайта, что бы получить 200 ок? Конечно, не хотелось бы лишаться блага автоматической сборки карты .

Сейчас файл .htaccess выглядит так:

Code: Select all

DirectoryIndex index.php
AddType application/x-httpd-php53 .php .html .htm .phtml

##
# @package		Joomla
# @copyright	Copyright (C) 2005 - 2012 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).
##

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 request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# 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]
php_value magic_quotes_gpc Off 
#
## End - Joomla! core SEF Section.

#карта сайта
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/sitemap.xml
RewriteRule .* /index.php?option=com_xmap&view=xml&tmpl=component&id=1 [R=301,L]

#в случае en
RewriteEngine On
Redirect 301 /en http://www.antarcom.ru

#в случае ru
RewriteEngine On
Redirect 301 /ru http://www.antarcom.ru

#в случае home.html
RewriteEngine On
Redirect 301 /home.html http://www.antarcom.ru

#INDEX.PHP------------------------------------------------------------------------
########## Begin - Custom redirects
########## Actions : Redir any other domains or non www to www. Removes index.php from home and any internal pages

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*(index|home)\.html?\ HTTP/
RewriteRule ^(([^/]+/)*)(index|home)\.html?$ http://www.antarcom.ru/$1 [R=301,L]

RewriteCond %{THE_REQUEST} !^POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
RewriteRule ^(([^/]+/)*)index\.php$ http%2://www.antarcom.ru/$1 [R=301,L]

# Remove index.php from sub pages e.g. http://www.antarcom.ru/index.php/about --> http://www.antarcom.ru/about 
RewriteCond %{THE_REQUEST} !^POST
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php/([^\ ]*)\ HTTP/
RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$
RewriteRule ^(([^/]+/)*)index\.php/(.*)$ http%2://www.antarcom.ru/$1$3 [R=301,L]

RewriteCond %{HTTP_HOST} !^(www\.antarcom\.ru)?$
RewriteRule (.*) http://www.antarcom.ru/$1 [R=301,L]
#
########## End - 301 Redirect
########## End - Custom redirects

#WWW----------------------------------------------------------------------------------------------------
#в случае без www на с www
#RewriteEngine On
#RewriteCond %{HTTP_HOST} ^antarcom.ru$ [NC]
#RewriteRule ^(.*)$ http://www.antarcom.ru [R=301]

Nikitino
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Mar 03, 2015 5:16 pm

Re: Проблемы с обновлением с 3.1.0 на 3.2.7 (потом до 3.3.6)

Post by Nikitino » Tue Mar 03, 2015 5:42 pm

Установил обновления до версии 3.4 И перестали сохраняться изменения в модулях, шаблонах, материалах!


Locked

Return to “Установка Joomla! 3.x”