AntonMorgunov Posted February 17, 2018 Report Share Posted February 17, 2018 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) Quote Link to comment Share on other sites More sharing options...
Respected Posted February 17, 2018 Report Share Posted February 17, 2018 Код php имеет синтаксическую ошибку. Quote Link to comment Share on other sites More sharing options...
AntonMorgunov Posted February 17, 2018 Author Report Share Posted February 17, 2018 Только что, Respected сказал: Код php имеет синтаксическую ошибку. если запускать отдельно как index.php файл, то все ок Quote Link to comment Share on other sites More sharing options...
AntonMorgunov Posted February 17, 2018 Author Report Share Posted February 17, 2018 32 минуты назад, Respected сказал: Код php имеет синтаксическую ошибку. А есть ли в открытом доступе чисто базовая разметка IPS для создания новой страницы? В том плане, что был бы хедер, футер (и с залогиненым юзером), но чтоб потом свой код писать? взять и создать custom.php в pages, а потом скачать его нельзя, т.к. страница генерируется "статично" с профайлом того юзера, под которым ты сидишь. Иначе говоря, там не $user_id например, а конкретно http://blahblah/user_1/ Quote Link to comment Share on other sites More sharing options...
Respected Posted February 17, 2018 Report Share Posted February 17, 2018 В Pages нельзя создавать php страницы, только блоки Quote Link to comment Share on other sites More sharing options...
AntonMorgunov Posted February 17, 2018 Author Report Share Posted February 17, 2018 1 минуту назад, Respected сказал: В Pages нельзя создавать php страницы, только блоки хм, я создал страницу и дал ей название custom.php - вроде вышло. Так по поводу базовой разметки - нет? Quote Link to comment Share on other sites More sharing options...
Respected Posted February 17, 2018 Report Share Posted February 17, 2018 Создаёшь php блок со свои кодом и размещаешь его на страницу. Quote Link to comment Share on other sites More sharing options...
AntonMorgunov Posted February 17, 2018 Author Report Share Posted February 17, 2018 30 минут назад, Respected сказал: Создаёшь php блок со свои кодом и размещаешь его на страницу. У меня есть код страницы index.html. Я открываю его в браузере - все ок. Создаю custom.html без дефолтного HTML wrapper и вставляю туда блок html в который предварительно вставил в точности тот же самый код, что и в index.html. Мне выходит - [[Block indexphp is throwing an error]] В чем может быть проблема? Quote Link to comment Share on other sites More sharing options...
Respected Posted February 17, 2018 Report Share Posted February 17, 2018 Видимо блок indexphp ошибку создаёт. Quote Link to comment Share on other sites More sharing options...
AntonMorgunov Posted February 17, 2018 Author Report Share Posted February 17, 2018 Только что, Respected сказал: Видимо блок indexphp ошибку создаёт. А откуда она может взяться если в точности такой же файл index.html загрузить на сервер и открыть все будет норм? Quote Link to comment Share on other sites More sharing options...
Respected Posted February 17, 2018 Report Share Posted February 17, 2018 Значит где-то на странице подключается блок indexphp AntonMorgunov 1 Quote Link to comment Share on other sites More sharing options...
AntonMorgunov Posted February 17, 2018 Author Report Share Posted February 17, 2018 1 минуту назад, Respected сказал: Значит где-то на странице подключается блок indexphp Можете пояснить, пожалуйста? Quote Link to comment Share on other sites More sharing options...
Respected Posted February 17, 2018 Report Share Posted February 17, 2018 1 минуту назад, AntonMorgunov сказал: Можете пояснить, пожалуйста? А что пояснять? Если существует ошибка, значит её что-то создаёт. В описании ошибки явно идёт указание на блок. Вообще заочно сложно что-то диагностировать. AntonMorgunov 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.