Jump to content

Пытаюсь создать страницу в Pages, выходит EX0


Recommended Posts

ParseError: syntax error, unexpected '"', expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) (0)
#0 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/system/Theme/Theme.php(4272): IPS\_Theme::runProcessFunction('\tfunction uniqu...', 'unique_function...')
#1 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/system/Theme/Theme.php(4247): IPS\_Theme::makeProcessFunction('\r\n<script>\r\nfun...', 'unique_function...', '')
#2 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/applications/cms/sources/Pages/Page.php(767): IPS\_Theme::checkTemplateSyntax('\r\n<script>\r\nfun...')
#3 [internal function]: IPS\cms\Pages\_Page::IPS\cms\Pages\{closure}('\r\n<script>\r\nfun...')
#4 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/system/Helpers/Form/FormAbstract.php(365): call_user_func(Object(Closure), '\r\n<script>\r\nfun...')
#5 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/system/Helpers/Form/TextArea.php(113): IPS\Helpers\Form\_FormAbstract->validate()
#6 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/system/Helpers/Form/FormAbstract.php(165): IPS\Helpers\Form\_TextArea->validate()
#7 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/system/Helpers/Form/FormAbstract.php(142): IPS\Helpers\Form\_FormAbstract->setValue(true)
#8 [internal function]: IPS\Helpers\Form\_FormAbstract->__construct('page_content', '', false, Array, Object(Closure), NULL, NULL, 'page_content')
#9 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/system/Helpers/Form/TextArea.php(60): call_user_func_array('parent::__const...', Array)
#10 [internal function]: IPS\Helpers\Form\_TextArea->__construct('page_content', '', false, Array, Object(Closure), NULL, NULL, 'page_content')
#11 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/system/Helpers/Form/Codemirror.php(60): call_user_func_array('parent::__const...', Array)
#12 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/applications/cms/sources/Pages/Page.php(802): IPS\Helpers\Form\_Codemirror->__construct('page_content', '', false, Array, Object(Closure), NULL, NULL, 'page_content')
#13 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/applications/cms/sources/Pages/Page.php(1411): IPS\cms\Pages\_Page::formElements(Object(IPS\cms\Pages\Page))
#14 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/system/Node/Controller.php(467): IPS\cms\Pages\_Page->form(Object(IPS\Helpers\Form))
#15 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/system/Node/Controller.php(366): IPS\Node\_Controller->_addEditForm(Object(IPS\cms\Pages\Page))
#16 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/system/Dispatcher/Controller.php(85): IPS\Node\_Controller->form()
#17 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute()
#18 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/applications/cms/modules/admin/pages/pages.php(45): IPS\Node\_Controller->execute()
#19 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/system/Dispatcher/Dispatcher.php(146): IPS\cms\modules\admin\pages\_pages->execute()
#20 /var/www/vhosts/u0143900.plsk.regruhosting.ru/physics.pagodane.ru/admin/index.php(13): IPS\_Dispatcher->run()
#21 {main}

Вот такая ошибка выходит после того как я добавляю контент в страницу .php (созданную в Pages)

Link to comment
Share on other sites

Только что, Respected сказал:

Код php имеет синтаксическую ошибку.

если запускать отдельно как index.php файл, то все ок

Link to comment
Share on other sites

32 минуты назад, Respected сказал:

Код php имеет синтаксическую ошибку.

А есть ли в открытом доступе чисто базовая разметка IPS для создания новой страницы? В том плане, что был бы хедер, футер (и с залогиненым юзером), но чтоб потом свой код писать? 

взять и создать custom.php в pages, а потом скачать его нельзя, т.к. страница генерируется "статично" с профайлом того юзера, под которым ты сидишь. Иначе говоря, там не $user_id например, а конкретно http://blahblah/user_1/

Link to comment
Share on other sites

1 минуту назад, Respected сказал:

В Pages нельзя создавать php страницы, только блоки

хм, я создал страницу и дал ей название custom.php - вроде вышло. Так по поводу базовой разметки - нет?

Link to comment
Share on other sites

30 минут назад, Respected сказал:

Создаёшь php блок со свои кодом и размещаешь его на страницу.

У меня есть код страницы index.html. Я открываю его в браузере - все ок. Создаю custom.html без дефолтного HTML wrapper и вставляю туда блок html в который предварительно вставил в точности тот же самый код, что и в index.html.

Мне выходит - [[Block indexphp is throwing an error]]

В чем может быть проблема?

Link to comment
Share on other sites

Только что, Respected сказал:

Видимо блок indexphp ошибку создаёт.

А откуда она может взяться если в точности такой же файл index.html загрузить на сервер и открыть все будет норм?

Link to comment
Share on other sites

1 минуту назад, Respected сказал:

Значит где-то на странице подключается блок indexphp

Можете пояснить, пожалуйста?

Link to comment
Share on other sites

1 минуту назад, AntonMorgunov сказал:

Можете пояснить, пожалуйста?

А что пояснять? Если существует ошибка, значит её что-то создаёт. В описании ошибки явно идёт указание на блок. Вообще заочно сложно что-то диагностировать.

Link to comment
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...