Jump to content

LostKobrakai

PW-Moderators
  • Posts

    4,956
  • Joined

  • Last visited

  • Days Won

    100

Everything posted by LostKobrakai

  1. If there's nothing in the errors.txt the error does happen before pw's error handling kicks in. So probably some error either in config.php (simply checked by adding die() in various places and see if the error persists) or with any autoloading modules or in init.php. Also check your php/mysql/apache versions for any obvious mismatches.
  2. The "remember me" functionality is rather a increase in session timeout instead of a toggle for using sessions or not. $config->sessionExpireSeconds = 86400;
  3. @Nick There's just no way to track a download count without additional fields. And as soon as you need additional fields related to files you either resort to using PageTables or ImageExtra, with the first one being the more flexible solution.
  4. Take a look at the information about session fingerprinting in wire/config.php. If you'd like to change the config for it please remember to copy it to the site/config.php first.
  5. I had the same problems with nested wireRenderFile calls. Using the absolute path to the files resolved the issue, but that not a option I would want to stick with.
  6. I'd not consider that a limit, but rather you using the field incorrectly. The created (native) field is for determining the date a page was created and it's not by random a system field, because it's used all over processwire's internals. The date you're showing for the blog post is probably no that, but rather a "date the blogpost is supposed to be created for chronological purposes". That's part of your content and therefore rather supposed to be a custom field, especially if you expect it to not align with the page creation date.
  7. Did you reinstall the module after the changes to the db schema? What does wakeupValue() hold as value coming from the db?
  8. Are you sure those number inputs are correctly parsed to floats? At least the core did at some time suffer from incorrectly parsed values with , as decimal point.
  9. File extentions in the url are parsed as part of the page name. So you either need two different pages anyway or you need to handle everything on the parent page's template and use urlSegments. Alternatively you could also hook into the initial request parsing and implement your own "file type" routing logic.
  10. Hooking does only affect runtime data, but not the database. But lot's of functionality in pw does retrieve pages filtered in the database to keep resource usage to a minimum. You should rather change your template files/selectors to use your custom datefield and add a hook, which does populate your custom field with the creation time if it's empty.
  11. Would it be possible for you to describe a bit more detailed how you tackled the integration of those lego blocks in the backend?
  12. How would this make things different to the current modal solution?
  13. To stay with your example of products. You might have two different groups of products: digital ones and physical ones. A shopping cart might have a pagetable holding both types of product and displays the price, which is part of both groups. But the physical products might have addtional fields like how much products are in stock, which isn't applicable for digital products, hence the different templates.
  14. Try it like this, but instead of blindly changing them please take a look first at the phpinfo() and see if this might really be the cause of the issue. php_value upload_max_filesize 40M php_value post_max_size 42M
  15. That's what happens if there are no labels supplied. If you have labels, than this might be correlated to the overall issue.
  16. I'd look on github and the forums if other do also have issues with repeaters in the user template. There are some foggy memories, that there might have been others, but I've not much time to look myself right now.
  17. I'd take a look at these php.ini values: post_max_size=20M upload_max_filesize=20M
  18. See it like that: It is a exact match. It's just that there may be other possible matches as well. To match a field which has only a specific value even though it's mutli-value you'd need to use something like that "field=$id, field.count=1".
  19. ->add() does afaik only allow for a single item. Either use ->import() or just $task->task_person = $task_person;
  20. May I ask why you're not using a PageField to reference users? *= does not support partial word matching and in this case there are no spaces, which is why it doesn't work. ~= would work, but only in db queries and not for runtime filtering.
  21. ~= is only for textfield matching, a.k.a. matching inside of a single block of text. For multi-value fields just use = and it'll find you all pages holding that value in the field.
  22. Otherwise try: $event->object->getPage()->singleeventtable->count()
  23. What kixe said, but to add to this: It's not as simple as adding a button attribute or some different url processwire would provide. This would need you to have a url (or page, can be the page the button is on), which serves as wrapper for the image file. You then use the url of this page as the source for the download. You probably need some kind of trigger for the download, to differenciate it from normal requests, which is done either via a urlSegments or a GET variable in the url. In the template you can then check for the trigger / filename and run wireSendFile on the file the user does try to download.
  24. $names = explode(',', $names); $names = array_map('trim', $names); $names = implode('|', $names); $users->find("name=$names");
  25. Now that's some hookception $pages->addHookAfter("ProcessPageEdit::buildFormContent", function($event) { $wrapper = $event->return; if(!$wrapper->has('singleeventtable')) return; if (count($wrapper->singleeventtable->attr("value")) == 0) { $this->error('Achtung! Sie haben noch keine Termine erstellt'); $wrapper->singleeventtable->collapsed = Inputfield::collapsedHidden; } });
×
×
  • Create New...