Jump to content

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

Featured Replies

Posted
comment_111147

Здравствуйте! Пытаюсь через приложение 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.