Jump to content

suntrop

Members
  • Posts

    323
  • Joined

Posts posted by suntrop

  1. I've got a photo album with 177 images, but I can upload only 161 of them.

    Image field limit is set to 0 (tried 177 and 200 as well)

    In the first place I could upload all my images, but not all showed on the front-end. After reloading the back-end I got this message:

    2015-12-21 13:00:03	admin	https://www.update27.example.com/processwire/page/edit/?id=2069	Removed 'images' temp file(s) for page /photos/ski-2011/ - ski2011-151.jpg, ski2011-154.jpg, ski2011-156.jpg, ski2011-155.jpg, ski2011-157.jpg, ski2011-159.jpg, ski2011-152.jpg, ski2011-161.jpg, ski2011-158.jpg, ski2011-153.jpg, ski2011-160.jpg (Pageimages)

    After that I tried to upload only a small bunch of photos. Until photo #161 it worked that way … but now I get a message, that the request seems to be forged.

    When I delete any image I can upload a new one. But 161 images seems to be some kind of limit.

    • Files are created (original and resized) in the page folder.
    • There is enough disk space
    • checked permissions for folder and files 
    • there is no memory error
    • there is nothing in my Apache log
    • tried a newly created page, but same error
      (uploaded all at once and all got delete after reloading the page, if I only upload 161 images everything is fine)

    Using PW 2.7.2, PHP 5.6 with FASTCGI

  2. Maybe I could ask in this topic if PW can handle URIs with special characters?

    I get a 404 error when I try to open

    example.com/downloader/file%20with-space.txt or

    example.com/downloader/file-with-á-special-character.txt or

    example.com/downloader/Champs-%C3%89lys%C3%A9es.txt

  3. Hi all! I need to pass a filesystem path (eg my/files/here) via URL and access the full path (URL segments) in a template. 

    I am wondering if there is some way to use PW built in input/url segment functions?

    Currently I am using 

    ltrim($_SERVER[REQUEST_URI], $page->path)
    
  4. Well, not everything :-) I am not talking about UI or ProcessWire phrases.

    I am talking about the text editor and on how to insert links/select pages. Those titles depends on the language you are editing and do not change with your user profile settings.

    I am wondering if nobody else came across this :-) I have about 70 links per language and no idea how to insert them. I am afraid the only way is to go to a language I can read, change from the front-end the language and copy paste the URL.

    Page-Select.png

  5. I've got a website with multiple languages and two of them are Chinese and Russian. Since both use characters nobody of us can read we have some big problems to insert links from the editor. If we want to pick a page we can't see what page to select.

    Is there any way to display the page titles in another language? How do you select a page from a language you can't read?

    Thanks! 

  6. Hi all.

    I have pages (templates) that are only accessible to certain users. Now I need to get all users that have view access to specific pages (they will get email when page updates).

    I thought of something like this:

    $template = wire('templates')->get($p->template);
    $roles = $template->getRoles();
    $users = wire('pages')->find('template=user, roles=' . $roles);
    
    

    But it looks like getRoles() doesn't returns the roles for that template. Roles is an empty PageArray. What is wrong or is there another way to get those users?

  7. If you create a page with the API and don't populate the file/image field, the directory won't get created at that time. 

    I just created a page and its folder is created anyway. Is that feature gone? Using PW 2.5.17

    I'm planing a site where users can create content (saved as PW pages). If it doesn't flop, there is a big chance I need more folders than my managed server is able to handle (they say it is good to keep files/folders under 20K per directory).

    Any news on $config->pagefileExtendedPaths? Is it save to use it on a live site? I am worried to rebuild my app after 12 months, because there are too many users  :-)

  8. Nothing special about your module, but I think twitter only uses https. You can avoid a redirect, if you replace the http://. And – maybe its just me :-) – you could add a config where users can choose whether links will open in a new window or not.

    Ahh … one more: adding a css class will make it possible to address those links.

    However, thanks for that module. I'll use it in an upcoming website :-)

  9. I just installed a new version and encounter the same problem. If the field (in my case 'body') has the Hanna Code Text Formatter enabled it'll replace everything with that field's content.

    I think in your case you didn't had the Hanna Code Text Formatter active for your newly created field. But your body field had – thus you got the same error. At the weekend I have some time to check where this comes from. I don't think this is "normal" behavior.

  10. Currently there is no way for an editor to change those fields. Both are static. Even from the API.

    But sometimes – especially when using a news site or some kind of blog – you have to use those fields a lot.

    It would be nice if the fields become editable, so you can change the creation date for example.

    • Like 1
  11. I think it is the Hanna Code text formatter I have enabled for the body field.

    I just enabled it for the other field and it outputs the complete body (instead of my truncated text). For the body field I cannot disabled it.

    Seems I can't use the body variable inside a HC if the field uses HC itself. Once there is $var->body inside the HC it replaces everything else. I think I'll stick with just the title :-) That works.

×
×
  • Create New...