Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка 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.

Ошибка при добавлении php кода в приложении pages

Featured Replies

Posted

Здравствуйте! Пытаюсь через приложение pages встроить spurcebans в дизайн сайта. Есть код, когда прописываю его, появляется ошибка не понятная.

Подскажите как с этим бороться? 

Вот сам код: тык

 

Ошибка в журнале системы:

 

ParseError: syntax error, unexpected '[', expecting ']' (0)
#0 /home/u30988/html/system/Theme/Theme.php(4018): IPS\_Theme::runProcessFunction('\tfunction uniqu...', 'unique_function...')
#1 /home/u30988/html/system/Theme/Theme.php(3993): IPS\_Theme::makeProcessFunction('Paste2\r\nCreate ...', 'unique_function...', '')
#2 /home/u30988/html/applications/cms/sources/Pages/Page.php(717): IPS\_Theme::checkTemplateSyntax('Paste2\r\nCreate ...')
#3 [internal function]: IPS\cms\Pages\_Page::IPS\cms\Pages\{closure}('Paste2\r\nCreate ...')
#4 /home/u30988/html/system/Helpers/Form/FormAbstract.php(354): call_user_func(Object(Closure), 'Paste2\r\nCreate ...')
#5 /home/u30988/html/system/Helpers/Form/TextArea.php(114): IPS\Helpers\Form\_FormAbstract->validate()
#6 /home/u30988/html/system/Helpers/Form/FormAbstract.php(161): IPS\Helpers\Form\_TextArea->validate()
#7 /home/u30988/html/system/Helpers/Form/FormAbstract.php(138): IPS\Helpers\Form\_FormAbstract->setValue(true)
#8 [internal function]: IPS\Helpers\Form\_FormAbstract->__construct('page_content', '<div class="...', false, Array, Object(Closure), NULL, NULL, 'page_content')
#9 /home/u30988/html/system/Helpers/Form/TextArea.php(61): call_user_func_array('parent::__const...', Array)
#10 [internal function]: IPS\Helpers\Form\_TextArea->__construct('page_content', '<div class="...', false, Array, Object(Closure), NULL, NULL, 'page_content')
#11 /home/u30988/html/system/Helpers/Form/Codemirror.php(61): call_user_func_array('parent::__const...', Array)
#12 /home/u30988/html/applications/cms/sources/Pages/Page.php(752): IPS\Helpers\Form\_Codemirror->__construct('page_content', '<div class="...', false, Array, Object(Closure), NULL, NULL, 'page_content')
#13 /home/u30988/html/applications/cms/sources/Pages/Page.php(1277): IPS\cms\Pages\_Page::formElements(Object(IPS\cms\Pages\Page))
#14 /home/u30988/html/system/Node/Controller.php(452): IPS\cms\Pages\_Page->form(Object(IPS\Helpers\Form))
#15 /home/u30988/html/system/Node/Controller.php(351): IPS\Node\_Controller->_addEditForm(Object(IPS\cms\Pages\Page))
#16 [internal function]: IPS\Node\_Controller->form()
#17 /home/u30988/html/system/Dispatcher/Controller.php(85): call_user_func(Array)
#18 /home/u30988/html/system/Node/Controller.php(63): IPS\Dispatcher\_Controller->execute()
#19 /home/u30988/html/applications/cms/modules/admin/pages/pages.php(40): IPS\Node\_Controller->execute()
#20 /home/u30988/html/system/Dispatcher/Dispatcher.php(129): IPS\cms\modules\admin\pages\_pages->execute()
#21 /home/u30988/html/admin/index.php(13): IPS\_Dispatcher->run()
#22 {main}

ТРАССИРОВКА

#0 /home/u30988/html/init.php(498): IPS\_Log::log('ParseError: syn...', 'uncaught_except...')
#1 [internal function]: IPS\IPS::exceptionHandler(Object(ParseError))
#2 {main}

 

 

error.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

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.