Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

You have an error in your SQL syntax

Опубликовано:

Пришла личка, но прочесть не могу. Выскакивает ошибка с БД

 

 Date: Wed, 04 Mar 2015 18:18:46 +0000
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 'ORDER BY start_date DESC LIMIT 0,5' at line 1
IP Address: 11.11.11.11 - /index.php?app=members&module=messaging&section=view&do=showConversation&topicID=1108
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
mySQL query error: SELECT tid,title,starter_id,start_date,forum_id,approved,title_seo FROM toptalkru_jtapia_topics WHERE approved = 1 AND starter_id = ORDER BY start_date DESC LIMIT 0,5
.--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------.
| File                                                                       | Function                                                                      | Line No.          |
|----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------|
| cache/skin_cache/cacheid_1/skin_messaging.php                              | [ZozMyTopicsUserInfoPanel].userInfoPane                                       | 636               |
'----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'
| cache/skin_cache/cacheid_1/skin_messaging.php                              | [skin_messaging_1].__f__cf1b71b256edd7872efb59935e6f3740                      | 564               |
'----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'
| admin/applications/members/modules_public/messaging/view.php               | [skin_messaging_1].showConversation                                           | 733               |
'----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'
| admin/applications/members/modules_public/messaging/view.php               | [public_members_messaging_view].showConversation                              | 150               |
'----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'
| admin/sources/base/ipsController.php                                       | [public_members_messaging_view].doExecute                                     | 306               |
'----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'

Рекомендованные сообщения

Опубликовано:
  • Автор

Разобрался.

 

Ошибка была из-за хука.

Изменено пользователем Атаман

Опубликовано:

В запросе есть синтаксическая ошибка. Хук ZozMyTopicsUserInfoPanel.

Лечится заменой

if ( in_array( $this->request['f']

На

if ( $author['author_id'] AND in_array( $this->request['f']

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.