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.

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

Featured Replies

Posted
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)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.