Jump to content

Soma

Moderators
  • Posts

    6,798
  • Joined

  • Last visited

  • Days Won

    158

Everything posted by Soma

  1. If you watch console it says: Refused to display 'http://processwire.com/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. Just confirming that it's htaccess.
  2. PW doesn't allow to be Iframed via a htaccess setting, maybe that's why. You can take it out and test.
  3. "41-0" PRIMARY I think it is an indize of pages_id and sort or alike. FieldtypeMulti can be a lot. It could also be a page field etc. 1062 is the #id of the error not a page Welcome to advanced PW. I've been there since a long time.
  4. If you have some import script/bootstrap or maybe or alike that will result sometimes in a /http404/, I'm seeing that since long time in logs when errors occur. Meaning there's no page with a url. Bootstraped scripts also result in a "guest" user. Or if it is triggered by a lazycron by a guest visit. A little annoying in that you need to know it or assume it's happening on the 404 page, which is not true. I wonder if it would be possible to fix this.
  5. What's the best arguments against a "back" button on website. Client and print designer insist and waste hours discussing how and where.

  6. I can have multiple repeaters multilanguage in 2.5.23 with no problems. Do you have some security modules on your server that get's in the way?
  7. RT @processwire: New post: Inline ajax page editing comes to ProcessWire with the latest ListerPro (ProcessWire 2.6.6) – https://t.co/fqwCZ…

  8. As far as I know you can't unpublish user in admin.
  9. RT @Suspiremedia: We've just launched Precise Research: http://t.co/CuWYyJ5Fsg a #responsive site built with #Processwire

  10. I don't really know, it's just something we had to turn off for every project because of users or site users. I never had this happened to me. What I noticed through is problems with login itself, wire challange cookie not getting deleted when logging out etc.
  11. Turn off sessionFingerprint in config.php. I'll record this, so I don't need to write it every other week the same.
  12. This FormTemplateProcessor is older and wasn't meant to work with file/image fields, because of "you need to save page before files.." protected function ___savePage($form) { if(!$this->contact->parent) return; $this->contact->name = date('y-m-d-H-i-s-u'); if(in_array('title', $this->skipFields)) { $this->contact->title = date($this->dateFormat); } if(ProcessWire::versionMajor == 2 && ProcessWire::versionMinor == 0) { $this->contact->status = Page::statusHidden; $this->contact->removeRole('guest'); } else { // PW 2.1 and above $this->contact->status = Page::statusUnpublished; } $this->contact->save(); } You'd need to change how the script saves the page values to exclude file fields, save page and add files. Apart from that I doubt the rendering of a file or even image field in the way this module is set does work, as when you render a form from a page's (input)fields will throw problems as file field in a context of a page isn't working as it needs a page that is existing and saved. It's designed for backend primarily. // get the collection of inputs that can populate this page's fields $inputfields = $this->contact->getInputfields(); // make all the fields required and add them to the form foreach($inputfields as $inputfield) { if(in_array($inputfield->name, $this->skipFields)) continue; if(in_array($inputfield->name, $this->requiredFields)) $inputfield->required = true; $form->add($inputfield); } It can get tricky to use this approach and need special workarounds to get this working. File fields need a page id to know where to store and upload the image. So after submitting and processing the form the page should already be created and the file will get uploaded no matter if the form was valid or not and so on.
  13. Can you show code or tell what you're doing? From the error you create new user, and this works fine here with file fields on user template. $u = new User(); $u->name = "test2"; $u->save();
  14. It's in the error.. "save page before files can be accessed". This isn't a bug and has always been like this.
  15. "/site/assets/files/1015/" I guess you have multiple image field which would be an array. How about <img src="<?php echo $page->promote->first->url; ?>" />
  16. Turn off session fingerprint in config.php.
  17. Enter that in Google. "processwire limit character output" You're welcome
  18. I just experience something else. In backend when I have single value select, once I have selected an option I can't go back and select the first bank value to "remove", it just doesn't save it and it's still previous value selected. Why is there a blank value if I can't save it?
  19. For me it works fine even without turning outputformatting off.
  20. get the same error as regesh when "settings" tab is turned off.
  21. Hm, maybe it works like this? $field = $modules->get("InputfieldMapMarker"); $field->label = "Localização"; $field->attr('id+name','map'); $marker = new MapMarker(); $marker->lat = "38.694147"; $marker->lng = "-9.205794"; $field->attr('value', $marker); $field->required = 0; $form->append($field);
  22. It doesn't work on frontend, it requires the Fieldtype. http://modules.processwire.com/modules/fieldtype-map-marker/ read comments. Edit: Maybe it still works. https://processwire.com/talk/topic/10110-cant-get-inputfieldmapmarker-working-on-frontend/
  23. I doesn't work on frontend, it requires the Fieldtype. http://modules.processwire.com/modules/fieldtype-map-marker/ read comments.
×
×
  • Create New...