Jump to content

Manaus

Members
  • Posts

    212
  • Joined

  • Last visited

Posts posted by Manaus

  1. Hello, I need to change $user's data on form submission, this is the code:

    // prepare for saving
    $user->of(false);
    
    // save the data
    $user->nome = $nome;
    $user->cognome = $cognome;
    $user->azienda = $azienda;
    [...]
    
    $user->save();
    $user->of(true);
    

    But I get an error:

    Call $page->setOutputFormatting(false) before getting/setting values that will be modified and saved.

    Can't get the source of the error.

    Thanks for any suggestion

  2. Getting closer..

    At line 198 of DownloadGuard.module I added this line:

    $this->message("{$path}.htaccess");
    

    So I get in the messages this awkward line:

    /Users/utente/Sites/mysupermegawebsite//mysupermegawebsite/site/assets/files/1079/.htaccess
    

    Path is

    $path = $this->config->paths->root . $this->config->urls->files . $page->id . '/';
    

    But I don't know the proper way to edit it... :)

    Thanks!

  3. Ah! :lol: Thats it!

    Well forgery is gone, but I cannot login via usual credentials. Should I change pass uploading some temp code?

    Setting debug to true I see the error resides in session_start(),

    No such file or directory (2) in /var/www/[...]/web/site/modules/AutoFbPost/AutoFbPost.module

    Failed to write session data.

  4. Hello, I get destinationPath is not writable (image) when saving a page with an Image on remote host. 

    This thread advises to put return $this->error($this->destinationPath." is not writable"); on the inputField.module.

    I get /site/assets/files/1058/ is not writable as a result. Oddly, the dir is 755.

    Phpinfo does not mention safe_mode, save a sql.safe_mode which I don't think fitting.

    The website resides under a /test/ directory. Pw version is 2.7.2.

    Thanks for any suggestion...

  5. Hello,

    I noticed that for geting the image right url I have to print two values

    <? foreach ($page->children as $child): ?>
      <img src="<?php echo $child->image->url, $child->image ?>" alt="" />
    <? endforeach ?>
    

    Is this the normal usage, or am I skipping some important part?

    Thanks!

  6. Hello,

    browsing through Pw's admin pages on localhost usually has some disadvantages, loading pages or saving values requires 5-15 seconds each.

    Doing the same on the remote server is much faster, 2-3 seconds.

    I'm asking if there is some catch for fixing config or something...

    I'm using MAMP with php 5.4.10

    Thanks!

  7. Hello,

    I have a files repeater, containing two fields: file and counter. Sill I cannot access many values in the field, save url.

    The structure is thus:

    files [repeater]

      file [field]

        description [text]

      counter[field]

    I'd like to make the file downloadable, and display the description associated with it.

    Many thanks!

  8. Hi, I need to export from a Joomla website some pages/articles, and move them to Processwire. A bit of tweaking (creating parents, batch adding categories) is allowed. Any suggestion on what way worth taking?

    Thank you very much

  9. Hello,

    I have a page with children pages. Pages have parent.php and child.php as template files. I'd like to use child template in parent page to render the content, I tried

    foreach ($children as $child): 
      $child->render();
    endforeach;
    

    but it did not work.

    Tried also

    foreach ($children as $child):
      include 'child.php';
    endforeach;

    without appreciable results.

    Thanks for any suggestion!

×
×
  • Create New...