Page 1 of 1

Как работать с доменом в зоне РФ

Posted: Thu Apr 12, 2012 8:05 am
by seregarem
Хочу сделать сайт на рф. Залил на фтп, настроил БД, но при обращении к сайту пишет: "Not Found The requested URL was not found on this server."

Правильно ли я прописал: $config['root_url'] = 'http://кекушин-клуб.рф'; ?

Re: Как работать с доменом в зоне РФ

Posted: Thu Apr 12, 2012 11:18 am
by Fenik17

Re: Как работать с доменом в зоне РФ

Posted: Thu Apr 12, 2012 11:32 am
by seregarem
Ага, уже исправил. Другая проблема: при подтверждении регистрации пользователя: пишет сообщение:

Code: Select all

string(157) "Smarty error: [in module_db_tpl:SelfRegistration;selfreg_reg2template line 3]: syntax error: unidentified token '\'\'' (Smarty_Compiler.class.php, line 1410)" string(157) "Smarty error: [in module_db_tpl:SelfRegistration;selfreg_reg2template line 4]: syntax error: unidentified token '\'\'' (Smarty_Compiler.class.php, line 1410)" 
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/hiphop/public_html/karate_club/tmp/templates_c/SelfRegistration^%%9E^9E9^9E9BA8BB%%module_db_tpl%3ASelfRegistration%3Bselfreg_reg2template.php on line 5

Parse error: syntax error, unexpected T_STRING in /home/hiphop/public_html/karate_club/tmp/templates_c/SelfRegistration^%%9E^9E9^9E9BA8BB%%module_db_tpl%3ASelfRegistration%3Bselfreg_reg2template.php on line 6
Пробовал заменить в шаблоне \'\' на '', но не помогло. Подскажите, в чем дело?

Re: Как работать с доменом в зоне РФ

Posted: Thu Apr 12, 2012 11:40 am
by Fenik17
Шаблон покажите.

Re: Как работать с доменом в зоне РФ

Posted: Thu Apr 12, 2012 11:43 am
by seregarem
В админке почему-то \'\' не удалились:

Code: Select all

{* registration 2 template *}
{$title}
{if isset($messsage) && $message != \'\'}
  {if isset($error) && $error != \'\'}
    <p><font color="red">{$message}</font></p>
  {else}
    <p>{$message}</p>
  {/if}
{/if}
{$startform}
  <center>
  <table width="75%">
  <tr>
    <td>{$prompt_username}</font>
    </td>
    <td>{$input_username}</td>
  </tr>
  <tr>
    <td>{$prompt_password}</font>
    </td>
    <td>{$input_password}</td>
  </tr>
  <tr>
    <td>{$prompt_code}</font>
    </td>
    <td>{$input_code}</td>
  </tr>
  </table>
  </center>
<br/>
 {$hidden}{$hidden2}{$submit}
{$endform}
orig_registration2.tpl:

Code: Select all

{* registration 2 template *}
{$title}
{if isset($messsage) && $message != ''}
  {if isset($error) && $error != ''}
    <p><font color="red">{$message}</font></p>
  {else}
    <p>{$message}</p>
  {/if}
{/if}
{$startform}
  <center>
  <table width="75%">
  <tr>
    <td>{$prompt_username}</font>
    </td>
    <td>{$input_username}</td>
  </tr>
  <tr>
    <td>{$prompt_password}</font>
    </td>
    <td>{$input_password}</td>
  </tr>
  <tr>
    <td>{$prompt_code}</font>
    </td>
    <td>{$input_code}</td>
  </tr>
  </table>
  </center>
<br/>
 {$hidden}{$hidden2}{$submit}
{$endform}

Re: Как работать с доменом в зоне РФ

Posted: Fri Apr 13, 2012 3:33 am
by Fenik17
seregarem wrote:В админке почему-то \'\' не удалились
Т.е. проблема найдена, как я понял.

Re: Как работать с доменом в зоне РФ

Posted: Fri Apr 13, 2012 6:33 am
by seregarem
Да, получилось. Спасиба!

Re: Как работать с доменом в зоне РФ

Posted: Fri Apr 13, 2012 4:19 pm
by sandro
Огромное спасибо, какраз возникла подобная проблема.

Тоже помогло.