Финансовая поддержка VPS, бесплатные дополнения и docs Донаты оплачивают сервер и двигают бесплатные дополнения MODX и документацию. Поддержать

Всего 126 145 комментариев

Николай
Николай
Все сайты не дают попасть в админку — пустая страница. В логах это
2013/04/21 11:42:27 [error] 3425#0: *92 FastCGI sent in stderr: "PHP message: PHP Warning:  tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/suslik/) in /var/www/suslik/www/core/model/smarty/sysplugins/smarty_internal_write_file.php on line 31
PHP message: PHP Warning:  file_put_contents(): Filename cannot be empty in /var/www/suslik/www/core/model/smarty/sysplugins/smarty_internal_write_file.php on line 33
PHP message: PHP Fatal error:  Uncaught exception 'SmartyException' with message 'unable to write file ' in /var/www/suslik/www/core/model/smarty/sysplugins/smarty_internal_write_file.php:35
Stack trace:
#0 /var/www/suslik/www/core/model/smarty/sysplugins/smarty_internal_template.php(271): Smarty_Internal_Write_File::writeFile('/var/www/suslik...', '<?php /* Smarty...', Object(modSmarty))
#1 /var/www/suslik/www/core/model/smarty/sysplugins/smarty_internal_template.php(412): Smarty_Internal_Template->compileTemplateSource()
#2 /var/www/suslik/www/core/model/smarty/sysplugins/smarty_internal_template.php(554): Smarty_Internal_Template->renderTemplate()
#3 /var/www/suslik/www/core/model/smarty/Smarty.class.php(335): Smarty_Internal_Template->getRenderedTemplate()
#4 /var/www/suslik/www/core/model/modx/modmanagercontroller.class.php(257): Smarty->fetch('security/login....')
#5 /var/www/suslik/www/core/model/modx/modmanagercontroller.class.php(174): modManagerController->fetchTemplate('security/login....')
#6" while reading response header from upstream, client: 223.206.14.131, server: domen.ru, request: "GET /manager/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-suslik.sock:", host: "domen.ru"
Переведите пожалуйста, а то я не понимаю, что это за смарти вообще
Николай
Николай
Не могу с почтой разобраться — выдает WARNING: local host name (localhost) is not qualified; see cf/README: WHO AM I?
в hostname
suslik
в hosts
127.0.0.1 localhost
178.79.37.12 suslik domen.ru
Что ещё нужно локалхосту прописать не пойму?
Это может происходит из-за того, что домен еще не делегирован?
Володя
Володя
да с твоим, но выборка в таком виде
[0] => Array ( [msProductFile_id] => 299 [msProductFile_product_id] => 12 [msProductFile_source] => 2 [msProductFile_parent] => 0 [msProductFile_name] => gallery-04.jpg [msProductFile_description] => [msProductFile_path] => 12/ [msProductFile_file] => 8f01bd34e430f133847685525c02e807.jpg [msProductFile_type] => image [msProductFile_createdon] => 2013-04-07 14:56:30 [msProductFile_createdby] => 2 [msProductFile_rank] => 0 [msProductFile_url] => /assets/gallery/12/8f01bd34e430f133847685525c02e807.jpg )
как я ее смогу отсортировать то по published и deleted?
или я туплю?
Sadykh Sadykhov
Sadykh Sadykhov
Код неадекватно опубликовался. Ещё раз:

[[!UpdateProfile? &validate=`fullname:required,email:required:email`]]
<div class="update-profile">
    <div class="updprof-error">[[+error.message]]</div>
    [[+login.update_success:if=`[[+login.update_success]]`:is=`1`:then=`[[%login.profile_updated? &namespace=`login` &topic=`updateprofile`]]`]]
 
    <form class="form" action="[[~[[*id]]]]" method="post">
        <input type="hidden" name="nospam" value="" />
 
        <label for="fullname">[[!%login.fullname? &namespace=`login` &topic=`updateprofile`]]
            <span class="error">[[+error.fullname]]</span>
        </label>
        <input type="text" name="fullname" id="fullname" value="[[+fullname]]" />
 
        <label for="email">[[!%login.email]]
            <span class="error">[[+error.email]]</span>
        </label>
        <input type="text" name="email" id="email" value="[[+email]]" />
 
        <label for="phone">[[!%login.phone]]
            <span class="error">[[+error.phone]]</span>
        </label>
        <input type="text" name="phone" id="phone" value="[[+phone]]" />
 
        <label for="mobilephone">[[!%login.mobilephone]]
            <span class="error">[[+error.mobilephone]]</span>
        </label>
        <input type="text" name="mobilephone" id="mobilephone" value="[[+mobilephone]]" />
 
        <label for="fax">[[!%login.fax]]
            <span class="error">[[+error.fax]]</span>
        </label>
        <input type="text" name="fax" id="fax" value="[[+fax]]" />
 
        <label for="address">[[!%login.address]]
            <span class="error">[[+error.address]]</span>
        </label>
        <input type="text" name="address" id="address" value="[[+address]]" />
 
        <label for="country">[[!%login.country]]
            <span class="error">[[+error.country]]</span>
        </label>
        <input type="text" name="country" id="country" value="[[+country]]" />
 
        <label for="city">[[!%login.city]]
            <span class="error">[[+error.city]]</span>
        </label>
        <input type="text" name="city" id="city" value="[[+city]]" />
 
        <label for="state">[[!%login.state]]
            <span class="error">[[+error.state]]</span>
        </label>
        <input type="text" name="state" id="state" value="[[+state]]" />
 
        <label for="zip">[[!%login.zip]]
            <span class="error">[[+error.zip]]</span>
        </label>
        <input type="text" name="zip" id="zip" value="[[+zip]]" />
 
        <label for="website">[[!%login.website]]
            <span class="error">[[+error.website]]</span>
        </label>
        <input type="text" name="website" id="website" value="[[+website]]" />
 
        <br class="clear" />
 
        <div class="form-buttons">
            <input type="submit" name="login-updprof-btn" value="[[!%login.update_profile]]" />
        </div>
    </form>
</div>