Меню

Joomla 3 ошибка при сохранении

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

  • 8 Ответов
  • 2106 Просмотров

Вот такая ощибка:

Ошибка
Сохранить не удалось из-за ошибки: 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 `sha1_hash` = ‘1976c6f2fef8cd7fc0bf18f9dfc17d46cb144aff’ LIMIT 0, 1′ at line 3 SQL=SELECT * FROM `josi_ucm_history` WHERE `ucm_item_id` = 6 AND `ucm_type_id` = AND `sha1_hash` = ‘1976c6f2fef8cd7fc0bf18f9dfc17d46cb144aff’ LIMIT 0, 1

Вторая ошибка:
При использовании редактора JCE почему-то редактор вообще не работает. Текст в исходном коде и сохранить ничего не получается. Кнопки просто не работают.

Удалите JCE вообще, обновитесь до J3.3.3, если уже последний релиз — перезалейте файлы с дистрибутива.
Сделайте фикс базы, затем полную очистку кэша, в т.ч. устаревшего.

Удалите JCE вообще, обновитесь до J3.3.3, если уже последний релиз — перезалейте файлы с дистрибутива.
Сделайте фикс базы, затем полную очистку кэша, в т.ч. устаревшего.

JCE удалил, обновился уже до 3.3.4, очистку кеша провел. Ошибка осталась

Полностью перезалил дистрибутив последней версии. Проблема осталась.

Замечание:
Когда нажимаешь сохранить, то выдает данную ошибку. При этом материал все равно сохраняется.

« Последнее редактирование: 24.09.2014, 01:07:47 от laskiy »

Записан

Почистите куки и кэш браузера. Выйдите из админки, после чего в базе почистите таблицу #__session — удалите в ней все записи. Удалите вручную содержимое папки administrator/cache/. Отключите все расширения из папки editors-xtd

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

У меня та же проблема. Проделала все вышеперечисленные действия — но она не исчезла.

Действительно, материалы все равно сохраняются, категории тоже (хотя постоянное сообщение об ошибке мазолит глаза).
Но вот когда хочу добавить метку к материалу — нифига не сохраняет.  :dry:
Не знаю, может ли это быть наводкой.
Но может кто-то уже успешно решил этот вопрос? !

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

У меня та же проблема. Проделала все вышеперечисленные действия — но она не исчезла.

Действительно, материалы все равно сохраняются, категории тоже (хотя постоянное сообщение об ошибке мазолит глаза).
Но вот когда хочу добавить метку к материалу — нифига не сохраняет.  :dry:
Не знаю, может ли это быть наводкой.
Но может кто-то уже успешно решил этот вопрос? !

Пока не решили. Возникает не у всех…
https://groups.google.com/d/msg/joomla-dev-cms/Qy8U1zfUXmc/Dm-6ty1gNKgJ

UPDATE
Такое происходит, если метки выбирать с помощью клавиатуры, а не мышки.
Есть фикс — https://github.com/joomla/joomla-cms/pull/4398/files

« Последнее редактирование: 30.09.2014, 16:22:45 от b2z »

Записан

Ура! Получилось!  :D

Выходило так, что значение ucm_type_id не добавлялось к SQL, в силу битого разбитого синтаксиса.
Joomla хватает эти данные из таблицы content_types, так что проверьте и убедитесь, что у вас есть запись для типа содержимого в которую вы пытаетесь сохранить.
Спасибо большое вот этому человеку: http://stackoverflow.com/questions/22554827/editing-article-in-joomla-3-2-sql-error Навел меня на грамотную мысль.

В моем случае было достаточно стереть и перезалить с более ранней версии сайта запись таблицы content_types, — там действительно куска не хватало, утерян оказался при переносе.

У меня похоже та же проблема. Я так же вышел на этого человека, но не совсем понял что нужно сделать. Вы бы не могли мне на пальцах объяснить что именно помогло решить проблему. У меня тоже не сохраняются метки в материале. Уберешь метки все сохраняется без проблем. Что нужно исправить?

В этой таблице что то не хватает. Как мне например данные из здоровой таблице где все это есть перенести в больную? Не совсем понятен вариант исправления ошибки. Ну нет данных и что дальше. Кто то может объяснит на пальцах что нужно сделать?

On a pretty new site, something has happened that has caused articles to give following error message upon saving (on frontend only)

Save failed with the following error: Invalid Parent ID

In search for a solution, I found that one reason for the error is that the category tree structure has gotten messed up for some reason and there seems to be many solutions. I first tried the following:

  • Rebuild all menu item
  • Rebuild all categories
  • Refresh all categories by edit and save/close
  • Refresh all articles by edit and save/close

As otherwised explained in this article:
https://www.joomla-tips.org/joomla-troubleshooter/save-failed-with-the-following-error-invalid-parent-id.html

Iv’e also tried to create a temporary category and move all categories under it and back to root as explained in this article:
https://www.itsupportguides.com/knowledge-base/joomla-tips/joomla-save-failed-with-the-following-error-invalid-parent-id/

However none of this seems to work. It is only when editing or creating articles on frontend I get this error message. Never been a issue when doing the same on backend, where it saves without any error.

Last thing I tried was to install the ACL Manager extension which also has a diagnostic tool to fix issues with assets tables. One was detected with com_category. However fixing it didn’t solve it either.

Any help appreciated.

asked Aug 25, 2017 at 10:54

Marius's user avatar

2

Maybe you are using Falang component? In my case only soultions was update PHP to 7.0 or 7.1
This problem exists since of Joomla 3.7.3 — it’s all I know…

answered Aug 28, 2017 at 19:52

Tomasz Malinowski's user avatar

1

This is indeed a issue caused by the Falang Componenet (2.9.1) with Joomla 3.7.3+.

The issue seems to be a problem with php 5 and the query used by Joomla in assets tables.

One way of fixing this is to update to php 7.0+ as @Tomasz Malinowski mentioned.

However updating to php 7.0+ can cause other errors if your site is not ready for it, as was my case.

So if you need to keep php 5 (in my case 5.6) then this fix works until a new version of Falang is released with a official fix.

In …/libraries/joomla/table/asset.php line 110 replace

->select('1')

with

->select($this->_db->quoteName('id'))

For Joomla 3.8+ the above line to replace is located in …libraries/src/Table/Asset.php line 99

answered Aug 30, 2017 at 21:38

Marius's user avatar

MariusMarius

831 silver badge7 bronze badges

On a pretty new site, something has happened that has caused articles to give following error message upon saving (on frontend only)

Save failed with the following error: Invalid Parent ID

In search for a solution, I found that one reason for the error is that the category tree structure has gotten messed up for some reason and there seems to be many solutions. I first tried the following:

  • Rebuild all menu item
  • Rebuild all categories
  • Refresh all categories by edit and save/close
  • Refresh all articles by edit and save/close

As otherwised explained in this article:
https://www.joomla-tips.org/joomla-troubleshooter/save-failed-with-the-following-error-invalid-parent-id.html

Iv’e also tried to create a temporary category and move all categories under it and back to root as explained in this article:
https://www.itsupportguides.com/knowledge-base/joomla-tips/joomla-save-failed-with-the-following-error-invalid-parent-id/

However none of this seems to work. It is only when editing or creating articles on frontend I get this error message. Never been a issue when doing the same on backend, where it saves without any error.

Last thing I tried was to install the ACL Manager extension which also has a diagnostic tool to fix issues with assets tables. One was detected with com_category. However fixing it didn’t solve it either.

Any help appreciated.

asked Aug 25, 2017 at 10:54

Marius's user avatar

2

Maybe you are using Falang component? In my case only soultions was update PHP to 7.0 or 7.1
This problem exists since of Joomla 3.7.3 — it’s all I know…

answered Aug 28, 2017 at 19:52

Tomasz Malinowski's user avatar

1

This is indeed a issue caused by the Falang Componenet (2.9.1) with Joomla 3.7.3+.

The issue seems to be a problem with php 5 and the query used by Joomla in assets tables.

One way of fixing this is to update to php 7.0+ as @Tomasz Malinowski mentioned.

However updating to php 7.0+ can cause other errors if your site is not ready for it, as was my case.

So if you need to keep php 5 (in my case 5.6) then this fix works until a new version of Falang is released with a official fix.

In …/libraries/joomla/table/asset.php line 110 replace

->select('1')

with

->select($this->_db->quoteName('id'))

For Joomla 3.8+ the above line to replace is located in …libraries/src/Table/Asset.php line 99

answered Aug 30, 2017 at 21:38

Marius's user avatar

MariusMarius

831 silver badge7 bronze badges

Good morning Chris,

and many thanks for your information and your work!

The good (?) news are: In my case the error can be replicated: Whenever I try to recreate the search index or try to store / create an article the SQL-Error is thrown. I have not enabled / installed SmartSearch but use old fashioned Joomla search.

Are you interested in any further information? Unfortunately my Akeeba-Backup is about 800 MB because of a lot of pictures on the website (www.fotoblues.nethttp://www.fotoblues.net).

Additional information :

After update to 3.5 the following messages are shown:
JInstaller: :Install: Die Joomla!-XML-Installationsdatei konnte nicht gefunden werden.
Die Manifest-Datei konnte nicht gefunden werden.
Die Site wurde aktualisiert: Die neue Joomla!-Version ist jetzt 3.5.0.

On Extension | Maintain | Database::
• Die Datenbankschemaversion (3.4.0-2015-02-26) passt nicht zur CMS-Version (3.5.0-2016-03-01).
• Die Datenbankaktualisierungsversion (3.4.8) passt nicht zur CMS-Version (3.5.0).
• Die Spalte „’session_id’“ vom Typ „varchar(191) ist nicht in Tabelle „’fbj_session’“ enthalten. (Von Datei: „3.5.0-2015-07-01.sql“.)
• Die Spalte „’series’“ vom Typ „varchar(191) ist nicht in Tabelle „’fbj_user_keys’“ enthalten. (Von Datei: „3.5.0-2015-07-01.sql“.)
• Der Index „’idx_tag’“ ist nicht in Tabelle „’fbj_contentitem_tag_map’“ enthalten. (Von Datei: „3.5.0-2015-10-26.sql“.)
• Der Index „’idx_type’“ ist nicht in Tabelle „’fbj_contentitem_tag_map’“ enthalten. (Von Datei: „3.5.0-2015-10-26.sql“.)
• Der Index „’idx_link_old’“ ist nicht in Tabelle „’fbj_redirect_links’“ enthalten. (Von Datei: „3.5.0-2016-03-01.sql“.)
• Die Spalte „’old_url’“ vom Typ „VARCHAR(2048) ist nicht in Tabelle „’fbj_redirect_links’“ enthalten. (Von Datei: „3.5.0-2016-03-01.sql“.)
• Die Spalte „’new_url’“ vom Typ „VARCHAR(2048) ist nicht in Tabelle „’fbj_redirect_links’“ enthalten. (Von Datei: „3.5.0-2016-03-01.sql“.)
• Die Spalte „’referer’“ vom Typ „VARCHAR(2048) ist nicht in Tabelle „’fbj_redirect_links’“ enthalten. (Von Datei: „3.5.0-2016-03-01.sql“.)
• Der Index „’idx_old_url’“ ist nicht in Tabelle „’fbj_redirect_links’“ enthalten. (Von Datei: „3.5.0-2016-03-01.sql“.)

This looks like the update process did not update the database. A « Repair » fixes the database problems but the main SQL-error remains.

Many thanks, kind regards and happy Eastern
Michael Rocholl

#1

Отправлено 22 January 2014 — 13:01

    0 SQL=INSERT INTO nunrb_zoo_jbzoo_index_table_rab (`e_itemcategory_s`, `e_itemfrontpage_n`, `e_df8c9d86393c4b4796ebdd9965715cbc_s`, `e_5c6642724cca49ba8702b540bdd435f8_s`, `e_70855b07550747e8af3e82be508a85d0_s`, `e_70855b07550747e8af3e82be508a85d0_n`, `e_db500da0405d49a7a696c803b2c16d14_s`, `e_898aec0accc34ab5b215756c2e9faa96_s`, `e_e5e0dec0181e4a398a15e9f3a7711929_s`, `e_e177d8f360b2490686ab96fa050c6261_s`, `e_9e25e0f640de435889e90aeb3be16594_s`, `e_4306dd2403eb4b2983e9a0612a804e2a_s`, `e_1d9b1e7080714830b8e062098bdcee7b_s`, `e_a277679f080340d2a69f323d387d602f_s`, `e_47d42bfb6a5f4c11a65536f444036c05_s`, `e_dffc387efe754f5abbe6af91d32c6c21_s`, `e_dffc387efe754f5abbe6af91d32c6c21_n`, `e_c16db911dd574a45b23172b1009d3ce8_s`, `item_id`) VALUES (», ‘0’, ‘Дизайнеры-верстальщик’, ‘Иркутск’, ’20 000′, ’20’, ‘Полный день’, ‘с 9.00 до 18.00’, ‘Постоянная’, ‘Работа на территории работодателя’, ’22-25 лет’, ‘До 1 года’, ‘400-026’, ‘ООО «Аладо»‘, ‘Дарья’, ‘79016588897’, ‘79016588897’, ‘__IMAGE_EXISTS__’, ‘1’) , (NULL, NULL, ‘Маркетинг, реклама, PR’, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ‘1’)

я не понимаю почемувозникла эта ошибка

и как поправить

но оно опубликовалось

опубликовалось только в админ панели, а на сайте нет

|— Поиск вакансии (Алиас: poisk-vakansii)

ZOO » frontpage 

с самого первого раза хотела поставить joomla 3, но когда поставила возникла така же ошибка и я не стала разбираться, думала выйдет новая версия и тогда попробую, работала на 2.5 — 3 месяца, но из-за того что в новой джумла много нужных фишек которых нет в прошлой, пришлось снова вернуться к joomla, но ошибка осталась та же

Сообщение отредактировал Dalisa: 22 January 2014 — 13:06

  • 0

  • Наверх

#2


Cheren-dow

Отправлено 22 January 2014 — 13:04
  Лучший Ответ

Здравствуйте попробуйте сделать переиндексацию базы.

  • 0

Изображение
 

  • Наверх

#3


rabotairk

Отправлено 22 January 2014 — 13:10

Вот нашла http://blog.a-zazell…l-insert-error/

Подойдет ли мне такое решение вопроса

  • 0

  • Наверх

#4


Cheren-dow

Отправлено 22 January 2014 — 20:06

Dalisa,вы решили вопрос топик закрываем? 

  • 0

Изображение
 

  • Наверх

#5


rabotairk

Отправлено 23 January 2014 — 01:54

да, теперь ошибка не выходит

  • 0

  • Наверх

I’ve had this working in the past (earlier version of Joomla), but must have changed something and I can’t get it work (even in a brand new site). I’m using Joomla 3.4.8, the newest version of JCE, and DirectPhp.
I have Global Configuration > Text Filter Settings > Super Users set to No Filtering, and have adjusted JCE Administration > Editor Profiles > Default > Editor Parameters > Advanced > Allow PHP to yes.

Yet, when I save a any article with Php code I get a 403 error. Without the php code it saves correctly.

Does anybody have any hints?

asked Mar 2, 2016 at 23:06

Ben's user avatar

1

Many of our clients are facing the same problem. It turned out it is related to their host forcing browser caching on non-static content. Please follow the guide here ( http://www.itoctopus.com/how-to-disable-browser-caching-in-joomla-backend ) and add the appropriate code to the .htaccess file to prevent browser caching. Please post back here if it fixes your problem or not.

answered Mar 3, 2016 at 23:23

itoctopus's user avatar

itoctopusitoctopus

4,1134 gold badges31 silver badges44 bronze badges

1

One way around this that I worked out was to edit the php code in PHPmyAdmin directly.

It seems that mod_security on your apache server is causing the error to be forced when either your code is bad or is restricted. (this is not a bad thing as it stops hacking attempts on your site really.)

Going through phpMyAdmin requires a bit more skill but works all the same.

Anyway that is what I do now when I encounter this issue. (the hard part is finding what is causing the error in the first place)

Stephen Rauch's user avatar

Stephen Rauch

46.6k31 gold badges109 silver badges131 bronze badges

answered May 16, 2018 at 1:37

Gilly's user avatar

Probably mod_security is set to block PHP injection attacks, and it sees that as one. The way to tell is check the apache error log and the mod security audit log. Then, if you have access to the config files, you can configure an exception based around either that url or that variable to whitelist it from PHP injection checks.

WARNING: If you do that, be sure the code handling that form will be able to defend itself from injections, because you just stopped apache from defending it.

But the best solution for this is to write a plugin you can invoke from the content item, rather than inject all that code into your content. Makes it easier to maintain — changes are localized instead of scattered across lots of database records. Change the plugin once and every page that needs it gets the change, instead of having to touch each and every item in the db to make that same change.

PS: There’s a Joomla Stack Exchange. Check the list (top right, at time of writing).

answered Jul 12, 2019 at 15:47

Arlen's user avatar

ArlenArlen

2874 silver badges7 bronze badges

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

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

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Join failed no server response received ошибка starbound
  • Jocys com x360 controller emulator ошибка