Ошибка 1064 joomla

После установки большинства расширений Joomla (3x), в том числе официальных (K2, CommunityBuilder…) при их запуске практически в каждой закладке или опции выдает вот такую ошибку:

#1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘) AND a.published=1 AND a.iscore=0 AND a.type=»plugin» ORDER BY a.row, a.id’ at line 3

В теме недавно, в программировании пока полный чайник, поэтому подскажите кто знает:

1. Что это за ошибка и из-за чего возникла?
2. Где ее искать в PHPmyadmin? В каком файле?
3. Как исправить?

И если можно, человеческим языком… без заумной терминологии. Потому как из 500 статей гугла никто ничего толкового простым языком не объяснил.

З.Ы. Из-за этой ошибки не могу запустить сайт :'(

Заранее спасибо

You do not have the required permissions to view the files attached to this post.

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

  • 11 Ответов
  • 3091 Просмотров

Об ошибке:
<title>1064 — Ошибка: 1064</title>
1064 — You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘AND alias = ‘запрошенная страница» at line 1 SQL=SELECT id FROM ss0tc_content WHERE catid =  AND alias = ‘запрошенная страница’
Собственно как возникает — при попытки зайти на придуманную страницу, то есть выдает вместо ошибки 404, например, www.site.ru/любой набор символов/.
По идее должен генерить именно 404, но нет.
Самое смешное, для меня, если заходишь на существующую страницу, которая привязана к какой-нибудь категории, например, www.site.ru/блог-категории/существующая-страница, и добавляешь в к ней любые символы, то выдает корректную страницу с ошибкой 404, а соответственно так — www.site.ru/придуманные символы — отдает именно 1064.
При Проверки ответа сервера в Яндексе показывает — Код статуса HTTP: «500 Internal Server Error».
Все перерыл, включая Мускул, гуглил и тд, но схожих проблем не нашел. Своих знаний не хватает. Подскажите как исправить или где копать, 2 дня борюсь, замаялся, не отдает 404 ошибку и все тут(((  ! !

Самое смешное в другом — много букв, но не указана версия движка и что установлено стороннего.

Здравствуйте. Joomla 3.0.3. Из компонентов и модулей, которые работают с контентом, стоит только  — mod news pro gk4. Работает на стандартом SEF. sh404SEF и прочие не устанавливал.

Joomla 3.0.3.

До свидания.
Эта ветка не просто не поддерживается, а никогда и не планировалась к долгосрочной поддержке.
Обновляйтесь до 3.4.4 и возвращайтесь.

Да, Вы были правы. Обновился до последней версии, не без проблем, конечно, но сделал. Поправил MySQL и все заработало как надо. Благодарю за правильный пинок, по ветру!

Всем доброго времени суток.
Установил через квикстарт Joomla 3.4.1 с шаблоном OT Cosmetics+ VirtueMart 3.0.6.2.
В самом конце при нажатии кнопки подтверждения заказа вместо «спасибо за заказ» вылетает ошибка 1064  You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near » at line 3 SQL=SELECT params FROM uwqts_jarvis_template_styles WHERE style_id =.
Ссылка на сайт test.ufa-comfort.ru
На хостинге PHP 5.3 и MySQL 5.1.
Буду признателен помощью или советом

« Последнее редактирование: 18.03.2016, 14:30:22 от owmax »

Записан

Возникает ошибка 1064 при заходе в статью, у котрой указаны ключевые слова keywords. Если в админке очистить поле keywords, то ошибка пропадает.
Joomla 3.5.1. Версия базы данных    5.1.72-cll-lve.
Из стороннего установлен плагин plg_myextPagetitleContent. Но если его отключить, ошибка не исчезает.
Кто-то сталкивался с таким?

Дело было в модуле DisplayNews.

Доброго дня, обычно я сам решаю все вопросы и ещё никогда не обращался за помощью вот так через форум, у меня нерешаемая проблема(таких конечно нету))). Поменял пароль в админку Joomla, и забыл, потом даже думал что чтото сломалось и поковырялся в базе данных, всё поменял все юзеры и все пароли сделал одинаковыми, и о чудо открылась страничка на которой написано ошибка 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘WHERE username=’*****» at line 3 SQL=SELECT id, password FROM #_users WHERE username=’*****’

Is your website showing Joomla error 1064 after an upgrade?

Upgrade errors are really critical and make the websites down.

We generally receive many requests on fixing the Joomla based errors as a part of our Server Management Services.

Today, let’s see the various causes for this error to occur and how our Support Engineers fix it.

How does Joomla error 1064 look?

Firstly, let’s check on how the 1064 error appears on a Joomla website.

Recently, one of our customers was doing their Joomla website update. Unfortunately, it ended up in the error:

What causes Joomla error 1064 to occur?

There are many reasons for this error to occur. Let’s check a few major causes for this error to occur.

1. Incompatible PHP version

Joomla is a PHP based website framework. Hence, if the PHP version is not compatible with the website then it will throw an error message.

This normally happens when customers upgrade the website version. As a result, the newer version of the website will not be compatible with the older version of PHP.

2. Corrupt Modules

By default, Joomla modules pull information from the database of the website.

If these modules are corrupted and not updated regularly then it will damage the functionality of the website and finally becomes a cause for the website error.

3. Corrupt Plugins

In a similar way, a corrupt plugin also creates problems on the websites. The same goes for Joomla as well.

If there is a plugin that is behaving improperly then it will definitely cause errors.

4. Incompatible Extension

Normally, customers use different extensions for many different reasons. Sometimes, these extensions also play a vital role in creating problems on the website if they are not updated properly.

Also, trying to install an extension manager which is not compatible with the website also cause errors.

How we fix this Joomla error 1064?

Now, we have seen various causes for this 1064 error to occur in Joomla. Let’s now dig more into how our Support Engineers fix this error.

We recently received an error from our customer. The error is as below:

Error: 1064
- You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near '' at line 1 SQL=SELECT * FROM abc_xyz WHERE id =

Our Support Engineers started to troubleshoot this error by following the below steps:

1. Turned on the debug mode in Joomla

Initially, our Support Engineers turned on the debug mode. We followed the below steps for it

Site>>Global Configuration>>check the box for “Debug Site

This helps us to see the session information, database queries, logs and many more.

2. Change the PHP version

We also changed the PHP version from 5.x to 7.x to support the upgraded website. Usually, an updated PHP version is also necessary for the website to work.

However, this also didn’t fix the error.

3. Uninstalled all the plugins and extensions

We continued further and disabled all the plugins one by one. This helped to check if there were any corrupt plugin causing the error.

Then we manually deleted duplicate extension entries from the __extensions database. In some cases, this might also be causing an error. But, these had nothing to do with the error.

4. Uninstalled the modules

Finally, we isolated the problem to a specific module. We uninstalled the module and then re-installed it. After this, we refreshed the browser and re-saved the modules.

This fixed the Joomla error 1064 and the website started working fine.

[Need any further assistance with Joomla’s errors? – We’ll help you]

Conclusion

In short, the Joomla error 1064 is caused due to many reasons after the website upgrade. The causes include deprecated plugins, incompatible PHP versions, corrupted extensions and so on. Today, we saw the different causes for this error to occur and how our Support Engineers fix it.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = «owonCMyG5nEQ0aD71QM»;

После установки большинства расширений Joomla (3x), в том числе официальных (K2, CommunityBuilder…) при их запуске практически в каждой закладке или опции выдает вот такую ошибку:

#1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘) AND a.published=1 AND a.iscore=0 AND a.type=»plugin» ORDER BY a.row, a.id’ at line 3

В теме недавно, в программировании пока полный чайник, поэтому подскажите кто знает:

1. Что это за ошибка и из-за чего возникла?
2. Где ее искать в PHPmyadmin? В каком файле?
3. Как исправить?

И если можно, человеческим языком… без заумной терминологии. Потому как из 500 статей гугла никто ничего толкового простым языком не объяснил.

З.Ы. Из-за этой ошибки не могу запустить сайт :'(

Заранее спасибо

You do not have the required permissions to view the files attached to this post.

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

  • 11 Ответов
  • 2964 Просмотров

Об ошибке:
<title>1064 — Ошибка: 1064</title>
1064 — You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘AND alias = ‘запрошенная страница» at line 1 SQL=SELECT id FROM ss0tc_content WHERE catid =  AND alias = ‘запрошенная страница’
Собственно как возникает — при попытки зайти на придуманную страницу, то есть выдает вместо ошибки 404, например, www.site.ru/любой набор символов/.
По идее должен генерить именно 404, но нет.
Самое смешное, для меня, если заходишь на существующую страницу, которая привязана к какой-нибудь категории, например, www.site.ru/блог-категории/существующая-страница, и добавляешь в к ней любые символы, то выдает корректную страницу с ошибкой 404, а соответственно так — www.site.ru/придуманные символы — отдает именно 1064.
При Проверки ответа сервера в Яндексе показывает — Код статуса HTTP: «500 Internal Server Error».
Все перерыл, включая Мускул, гуглил и тд, но схожих проблем не нашел. Своих знаний не хватает. Подскажите как исправить или где копать, 2 дня борюсь, замаялся, не отдает 404 ошибку и все тут(((  ! !

Самое смешное в другом — много букв, но не указана версия движка и что установлено стороннего.

Здравствуйте. Joomla 3.0.3. Из компонентов и модулей, которые работают с контентом, стоит только  — mod news pro gk4. Работает на стандартом SEF. sh404SEF и прочие не устанавливал.

Joomla 3.0.3.

До свидания.
Эта ветка не просто не поддерживается, а никогда и не планировалась к долгосрочной поддержке.
Обновляйтесь до 3.4.4 и возвращайтесь.

Да, Вы были правы. Обновился до последней версии, не без проблем, конечно, но сделал. Поправил MySQL и все заработало как надо. Благодарю за правильный пинок, по ветру!

Всем доброго времени суток.
Установил через квикстарт Joomla 3.4.1 с шаблоном OT Cosmetics+ VirtueMart 3.0.6.2.
В самом конце при нажатии кнопки подтверждения заказа вместо «спасибо за заказ» вылетает ошибка 1064  You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near » at line 3 SQL=SELECT params FROM uwqts_jarvis_template_styles WHERE style_id =.
Ссылка на сайт test.ufa-comfort.ru
На хостинге PHP 5.3 и MySQL 5.1.
Буду признателен помощью или советом

« Последнее редактирование: 18.03.2016, 14:30:22 от owmax »

Записан

Возникает ошибка 1064 при заходе в статью, у котрой указаны ключевые слова keywords. Если в админке очистить поле keywords, то ошибка пропадает.
Joomla 3.5.1. Версия базы данных    5.1.72-cll-lve.
Из стороннего установлен плагин plg_myextPagetitleContent. Но если его отключить, ошибка не исчезает.
Кто-то сталкивался с таким?

Дело было в модуле DisplayNews.

Доброго дня, обычно я сам решаю все вопросы и ещё никогда не обращался за помощью вот так через форум, у меня нерешаемая проблема(таких конечно нету))). Поменял пароль в админку Joomla, и забыл, потом даже думал что чтото сломалось и поковырялся в базе данных, всё поменял все юзеры и все пароли сделал одинаковыми, и о чудо открылась страничка на которой написано ошибка 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘WHERE username=’*****» at line 3 SQL=SELECT id, password FROM #_users WHERE username=’*****’

Is your website showing Joomla error 1064 after an upgrade?

Upgrade errors are really critical and make the websites down.

We generally receive many requests on fixing the Joomla based errors as a part of our Server Management Services.

Today, let’s see the various causes for this error to occur and how our Support Engineers fix it.

How does Joomla error 1064 look?

Firstly, let’s check on how the 1064 error appears on a Joomla website.

Recently, one of our customers was doing their Joomla website update. Unfortunately, it ended up in the error:

What causes Joomla error 1064 to occur?

There are many reasons for this error to occur. Let’s check a few major causes for this error to occur.

1. Incompatible PHP version

Joomla is a PHP based website framework. Hence, if the PHP version is not compatible with the website then it will throw an error message.

This normally happens when customers upgrade the website version. As a result, the newer version of the website will not be compatible with the older version of PHP.

2. Corrupt Modules

By default, Joomla modules pull information from the database of the website.

If these modules are corrupted and not updated regularly then it will damage the functionality of the website and finally becomes a cause for the website error.

3. Corrupt Plugins

In a similar way, a corrupt plugin also creates problems on the websites. The same goes for Joomla as well.

If there is a plugin that is behaving improperly then it will definitely cause errors.

4. Incompatible Extension

Normally, customers use different extensions for many different reasons. Sometimes, these extensions also play a vital role in creating problems on the website if they are not updated properly.

Also, trying to install an extension manager which is not compatible with the website also cause errors.

How we fix this Joomla error 1064?

Now, we have seen various causes for this 1064 error to occur in Joomla. Let’s now dig more into how our Support Engineers fix this error.

We recently received an error from our customer. The error is as below:

Error: 1064
- You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near '' at line 1 SQL=SELECT * FROM abc_xyz WHERE id =

Our Support Engineers started to troubleshoot this error by following the below steps:

1. Turned on the debug mode in Joomla

Initially, our Support Engineers turned on the debug mode. We followed the below steps for it

Site>>Global Configuration>>check the box for “Debug Site

This helps us to see the session information, database queries, logs and many more.

2. Change the PHP version

We also changed the PHP version from 5.x to 7.x to support the upgraded website. Usually, an updated PHP version is also necessary for the website to work.

However, this also didn’t fix the error.

3. Uninstalled all the plugins and extensions

We continued further and disabled all the plugins one by one. This helped to check if there were any corrupt plugin causing the error.

Then we manually deleted duplicate extension entries from the __extensions database. In some cases, this might also be causing an error. But, these had nothing to do with the error.

4. Uninstalled the modules

Finally, we isolated the problem to a specific module. We uninstalled the module and then re-installed it. After this, we refreshed the browser and re-saved the modules.

This fixed the Joomla error 1064 and the website started working fine.

[Need any further assistance with Joomla’s errors? – We’ll help you]

Conclusion

In short, the Joomla error 1064 is caused due to many reasons after the website upgrade. The causes include deprecated plugins, incompatible PHP versions, corrupted extensions and so on. Today, we saw the different causes for this error to occur and how our Support Engineers fix it.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = «owonCMyG5nEQ0aD71QM»;

I am using Joomla 3.7.5. if I do some changes in configuration in some component in administration and want to save those changes it write me this:

error 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘ORDER BY group_id DESC LIMIT 1’ at line 1

I tried fix database (in Extension > Manage > Database), but it didn’t help. I think there is some mistake in database with group_id table, but I am not sure where or how to fix it.

I tried it also on some old backup and it write something similar:

error 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘ORDER BY group_id DESC LIMIT 1’ at line 1 SQL=select group_id from #__user_usergroup_map where user_id = ORDER BY group_id DESC LIMIT 1

I haven’t needed to change some settings in component configuration until now. So I am not sure for how long it is not able to save it without error 1064.

Any suggestions what to fix to repair this issue? I am not sure what is that mentioned Line 1 — is it line 1 in database or in some php file?

Thank you very much!

asked Sep 1, 2017 at 1:07

Radek100's user avatar

I know nothing about joomla but looking carefully at this part of your error message

select group_id from #__user_usergroup_map where user_id = ORDER BY group_id DESC LIMIT 1

leads me to suspect your problem is that the predicate in your where clause user_id = is incomplete. A proper where clause would look something like user_id = X where X is a constant or some other expression.

Also, this sort of question may be more appropriate for Server Fault

answered Sep 1, 2017 at 1:14

jq170727's user avatar

jq170727jq170727

12.5k3 gold badges45 silver badges55 bronze badges

5

Страница 1 из 2

  1. Offline

    batareya

    Недавно здесь

    Регистрация:
    16.06.2010
    Сообщения:
    4
    Симпатии:
    0
    Пол:
    Мужской

    Здравствуйте.
    Я делал сайт на локальном сервере (денвер). Сделал экспорт своей базы. А при импорте этой базы на хостинг выдает ошибку #1064.
    Вот, то, что пишет мне phpMyAdmin:

    SQL-запрос:

    — phpMyAdmin SQL Dump
    — version 2.6.1
    — http://www.phpmyadmin.net

    — Хост: localhost
    — Время создания: Июн 16 2010 г., 00:29
    — Версия сервера: 5.0.45
    — Версия PHP: 5.2.4

    — БД: `photoistina`

    — ———————————————————

    — Структура таблицы `jos_banner`

    CREATE TABLE `jos_banner` (
    `bid` int( 11 ) NOT NULL AUTO_INCREMENT ,
    `cid` int( 11 ) NOT NULL default ‘0’,
    `type` varchar( 30 ) NOT NULL default ‘banner’,
    `name` varchar( 255 ) NOT NULL default »,
    `alias` varchar( 255 ) NOT NULL default »,
    `imptotal` int( 11 ) NOT NULL default ‘0’,
    `impmade` int( 11 ) NOT NULL default ‘0’,
    `clicks` int( 11 ) NOT NULL default ‘0’,
    `imageurl` varchar( 100 ) NOT NULL default »,
    `clickurl` varchar( 200 ) NOT NULL default »,
    `date` datetime default NULL ,
    `showBanner` tinyint( 1 ) NOT NULL default ‘0’,
    `checked_out` tinyint( 1 ) NOT NULL default ‘0’,
    `checked_out_time` datetime NOT NULL default ‘0000-00-00 00:00:00’,
    `editor` varchar( 50 ) default NULL ,
    `custombannercode` text,
    `catid` int( 10 ) unsigned NOT NULL default ‘0’,
    `description` text NOT NULL ,
    `sticky` tinyint( 1 ) unsigned NOT NULL default ‘0’,
    `ordering` int( 11 ) NOT NULL default ‘0’,
    `publish_up` datetime NOT NULL default ‘0000-00-00 00:00:00’,
    `publish_down` datetime NOT NULL default ‘0000-00-00 00:00:00’,
    `tags` text NOT NULL ,
    `params` text NOT NULL ,
    PRIMARY KEY ( `bid` ) ,
    KEY `viewbanner` ( `showBanner` ) ,
    KEY `idx_banner_catid` ( `catid` )
    ) ENGINE = MYISAM AUTO_INCREMENT =9DEFAULT CHARSET = utf8 AUTO_INCREMENT =9;

    Ответ MySQL: Документация
    #1064 — You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘

    CREATE TABLE `jos_banner` (
    `bid` int(11) NOT NULL auto_increment,
    `ci’ at line 1

    Заранее спасибо.

    Последнее редактирование: 16.06.2010

  2. DKraev

    Offline

    DKraev

    <i>(aka gft)</i>
    => Cпециалист <=

    Регистрация:
    16.08.2008
    Сообщения:
    1 627
    Симпатии:
    219
    Пол:
    Мужской

    Кодировка скорей всего. Попробуйте поменять при импорте.

  3. Offline

    batareya

    Недавно здесь

    Регистрация:
    16.06.2010
    Сообщения:
    4
    Симпатии:
    0
    Пол:
    Мужской

    С кодировкой поигрался, не помогло. Сейчас кодировка utf-8

  4. DKraev

    Offline

    DKraev

    <i>(aka gft)</i>
    => Cпециалист <=

    Регистрация:
    16.08.2008
    Сообщения:
    1 627
    Симпатии:
    219
    Пол:
    Мужской

    С кодировкой чего поигрались? Когда импортируете базу? можно выбрать Кодировка файла:

    С ней игрались? Тогда попробуйте создать базу в другой кодировке.

  5. Offline

    batareya

    Недавно здесь

    Регистрация:
    16.06.2010
    Сообщения:
    4
    Симпатии:
    0
    Пол:
    Мужской

    Да, при импорте базы пробовал разную ставить.
    Буду пробовать.

  6. Offline

    batareya

    Недавно здесь

    Регистрация:
    16.06.2010
    Сообщения:
    4
    Симпатии:
    0
    Пол:
    Мужской

    Надеюсь, помогло)) Сменил кодировку после экспорта на utf-8. Импорт прошел успешно. Надеюсь и сам сайт будет русский шрифт отображать корректно. А то в самом sql файле русский шрифт не правильый.
    Спасибо.

  7. Movant

    Offline

    Movant

    Недавно здесь

    Регистрация:
    04.06.2009
    Сообщения:
    28
    Симпатии:
    0
    Пол:
    Мужской

    У меня тоже проблема при импорте базы. Кодировка базы ютф 8 все ставлю в этой кодировке..
    Пишет следующее:

    Error
    SQL query:


    — Дамп данных таблицы `jos_xmap_sitemap`

    INSERT INTO `jos_xmap_sitemap` ( `id` , `name` , `expand_category` , `expand_section` , `show_menutitle` , `columns` , `exlinks` , `ext_image` , `menus` , `exclmenus` , `includelink` , `usecache` , `cachelifetime` , `classname` , `count_xml` , `count_html` , `views_xml` , `views_html` , `lastvisit_xml` , `lastvisit_html` , `excluded_items` , `compress_xml` )
    VALUES ( 1, ‘_XMAP_NAME_NEW_SITEMAP’, 1, 1, 1, 1, 1, ‘img_grey.gif’,

    MySQL said:

    #1064 — You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near » at line 6

    Буду благодарен за помощь!

  8. DKraev

    Offline

    DKraev

    <i>(aka gft)</i>
    => Cпециалист <=

    Регистрация:
    16.08.2008
    Сообщения:
    1 627
    Симпатии:
    219
    Пол:
    Мужской

    Используйте Sypex Dumper для экспорта/импорта базы. Проблемы уйдут сами собой.

  9. Movant

    Offline

    Movant

    Недавно здесь

    Регистрация:
    04.06.2009
    Сообщения:
    28
    Симпатии:
    0
    Пол:
    Мужской

    Я к сожалению понятия не имею как пользоваться этим скриптом и не знаю для чего он нужен.
    Можно подробней?

    И в чем моя проблема состоит?

  10. DKraev

    Offline

    DKraev

    <i>(aka gft)</i>
    => Cпециалист <=

    Регистрация:
    16.08.2008
    Сообщения:
    1 627
    Симпатии:
    219
    Пол:
    Мужской

    По ссылке что я дал все прекрасно описано. НЕ ленитесь и просто изучите информацию. Раскладывать по полочкам что и как делать никто не будет, при наличии хорошего источника. Там большого ума не надо. Один раз научитесь, в дальнейшем проблем с кодировками вообще возникать не будет.

  11. Movant

    Offline

    Movant

    Недавно здесь

    Регистрация:
    04.06.2009
    Сообщения:
    28
    Симпатии:
    0
    Пол:
    Мужской

    Установил, все работает, но….

    выбираю импорт — базу данных куда необходимо залить — а вот поле файл sql, где нужно указать путь к файлу, я так понял, не работает. Разворачивается пустая табличка….

    ?

  12. DKraev

    Offline

    DKraev

    <i>(aka gft)</i>
    => Cпециалист <=

    Регистрация:
    16.08.2008
    Сообщения:
    1 627
    Симпатии:
    219
    Пол:
    Мужской

    Файл базы нужно положить в папку backup в корне сайта. Тогда она станет видна при импорте.

  13. Movant

    Offline

    Movant

    Недавно здесь

    Регистрация:
    04.06.2009
    Сообщения:
    28
    Симпатии:
    0
    Пол:
    Мужской

    Спасибо начал понемногу разбираться. Отпишусь о результате!:)

  14. Nargiza

    Offline

    Nargiza

    Недавно здесь

    Регистрация:
    10.11.2010
    Сообщения:
    9
    Симпатии:
    0
    Пол:
    Женский

    у меня похожая проблема помогите пожалюсто

    Ошибка

    SQL-запрос:

    — — Database: `xxxxxx` — — ——————————————————— — — Table structure for table `jos_banner` — CREATE TABLE IF NOT EXISTS `jos_banner` ( `bid` int(11) NOT NULL AUTO_INCREMENT, `cid` int(11) NOT NULL DEFAULT ‘0’, `type` varchar(30) NOT NULL DEFAULT ‘banner’, `name` varchar(255) NOT NULL DEFAULT », `alias` varchar(255) NOT NULL DEFAULT », `imptotal` int(11) NOT NULL DEFAULT ‘0’, `impmade` int(11) NOT NULL DEFAULT ‘0’, `clicks` int(11) NOT NULL DEFAULT ‘0’, `imageurl` varchar(100) NOT NULL DEFAULT », `clickurl` varchar(200) NOT NULL DEFAULT », `date` datetime DEFAULT NULL, `showBanner` tinyint(1) NOT NULL DEFAULT ‘0’, `checked_out` tinyint(1) NOT NULL DEFAULT ‘0’, `checked_out_time` datetime NOT NULL DEFAULT ‘0000-00-00 00:00:00’, `editor` varchar(50) DEFAULT NULL, `custombannercode` text, `catid` int(10) unsigned NOT NULL DEFAULT ‘0’, `description` text NOT NULL, `sticky` tinyint(1) unsigned […]

    Ответ MySQL: Документация
    #1046 — No database selected

  15. Offline

    Crash

    Недавно здесь

    Регистрация:
    01.06.2011
    Сообщения:
    4
    Симпатии:
    0
    Пол:
    Мужской

    Здравствуйте,
    Вам удалось решить свою проблему? у меня точно такая же ошибка #1046

    Если да то не подскажете каким образом, буду очень благодарен.

  16. DKraev

    Offline

    DKraev

    <i>(aka gft)</i>
    => Cпециалист <=

    Регистрация:
    16.08.2008
    Сообщения:
    1 627
    Симпатии:
    219
    Пол:
    Мужской
  17. OlegK

    Offline

    OlegK

    Russian Joomla! Team
    Команда форума
    ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    768
    Пол:
    Мужской

    Crash,
    Там всё просто,файл дампа БД должен быть с расширением sql.
    А Nargiza, сделала просто архив таблиц.Я ей по аське помогал.

  18. Offline

    Crash

    Недавно здесь

    Регистрация:
    01.06.2011
    Сообщения:
    4
    Симпатии:
    0
    Пол:
    Мужской

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

    SQL-запрос:


    — Ġ���䠭��� ?��� `jos_categories`

    INSERT INTO `jos_categories`
    VALUES ( 1, 0, ‘$������??», ‘2011 -05 -10 -11 -42 -54 ‘, », ‘com_contact_details ‘, ‘
    LEFT ‘, », 1, 0, ‘0000 -00 -0000 :00 :00 ‘, NULL, 1, 0, 0, »); INSERT INTO `jos_categories` VALUES (2, 0, ‘Ѳ������ ? 㧬 », ‘2011-05-18-12-04-30’, », ‘1’, ‘left’, », 1, 0, ‘0000-00-00 00:00:00’, NULL , 1, 0, 0, » ) ;

    Ответ MySQL: Документация
    #1064 — You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘2011-05-10-11-42-54’, », ‘com_contact_details’, ‘left’, », 1, 0, ‘0000-00-00 0’ at line 5

    Полагаю опять кодировка, но как её исправить пока понять не могу =(.

  19. Offline

    Crash

    Недавно здесь

    Регистрация:
    01.06.2011
    Сообщения:
    4
    Симпатии:
    0
    Пол:
    Мужской

    Спасибо, большое очень полезный ответ.
    Я бы сам не догадался.

  20. Offline

    Crash

    Недавно здесь

    Регистрация:
    01.06.2011
    Сообщения:
    4
    Симпатии:
    0
    Пол:
    Мужской

    Господа,
    Всем огромное спасибо! на работе опять сделал экспорт, потом сохранил в кодировке UTF-8 и все получилось (почему дома неполучилось понятия не имею, винда везде одна Win 7 64), а как пользоваться скриптом так и не разобрался =(.

Страница 1 из 2

Поделиться этой страницей

I am using Joomla 3.7.5. if I do some changes in configuration in some component in administration and want to save those changes it write me this:

error 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘ORDER BY group_id DESC LIMIT 1’ at line 1

I tried fix database (in Extension > Manage > Database), but it didn’t help. I think there is some mistake in database with group_id table, but I am not sure where or how to fix it.

I tried it also on some old backup and it write something similar:

error 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘ORDER BY group_id DESC LIMIT 1’ at line 1 SQL=select group_id from #__user_usergroup_map where user_id = ORDER BY group_id DESC LIMIT 1

I haven’t needed to change some settings in component configuration until now. So I am not sure for how long it is not able to save it without error 1064.

Any suggestions what to fix to repair this issue? I am not sure what is that mentioned Line 1 — is it line 1 in database or in some php file?

Thank you very much!

asked Sep 1, 2017 at 1:07

Radek100's user avatar

I know nothing about joomla but looking carefully at this part of your error message

select group_id from #__user_usergroup_map where user_id = ORDER BY group_id DESC LIMIT 1

leads me to suspect your problem is that the predicate in your where clause user_id = is incomplete. A proper where clause would look something like user_id = X where X is a constant or some other expression.

Also, this sort of question may be more appropriate for Server Fault

answered Sep 1, 2017 at 1:14

jq170727's user avatar

jq170727jq170727

13.2k3 gold badges46 silver badges56 bronze badges

5

Понравилась статья? Поделить с друзьями:
  • Ошибка 10632 vag
  • Ошибка 1073548784 сбой выполнения запроса backup log
  • Ошибка 1063 сузуки
  • Ошибка 1073 митсубиси
  • Ошибка 1063 java