Не работает Shop-Script, не работают include в PHP 5.3.2.

Переехал на другой сервер где установлен новый Apache/2.2.14 (FreeBSD) mod_ssl/2.2.14 OpenSSL/0.9.8k DAV/2 PHP/5.3.2. После начались проблемы с несколькими интернет магазинами, перестали работать includ-ы, белка здохла SquirrelMail.
Вот так бред:

orce_compile = true; //this forces Smarty to recompile templates each time.
//please remove this line in you finished redesign of your shopping cart
and would like to optimise your shopping cart work //select a new language?
 if (isset($_POST["lang"])) $_SESSION["current_language"] = $_POST["lang"];
 //current language session variable if (!isset($_SESSION["current_language
"]) || $_SESSION["current_language"] < 0 || $_SESSION["current_language"] >
 count($lang_list)) $_SESSION["current_language"] = 0; //set default langua
ge //include a language file if (isset($lang_list[$_SESSION["current_langua
ge"]]) && file_exists($lang_list[$_SESSION["current_language"]]-
>filename))
 include($lang_list[$_SESSION["current_language"]]->filename); //include cu
rrent language file else { die("ERROR: Couldn't find language file!"); } //c
onnect to the database db_connect(DB_HOST,DB_USER,DB_PASS) or die (db_error
 
"; $aux_pages = auxpgGetAllPageAttributes(); if ( count($aux_pages) != 0 )
 $smarty->assign( "aux_page1", $aux_pages[0] ); if ( count($aux_pages) > 1
 ) $smarty->assign( "aux_page2", $aux_pages[1] ); //show Smarty output $smart
y->display($lang_list[$_SESSION["current_language"]]->template_path."
index.tpl.html"); ?

Решение крылось в php.ini правим параметр short_open_tag=off. Перезапускаем apache. Не забываем в  добавить в php.ini разделе [Date] пареметр date.timezone = Europe/Kiev.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *