• Content count

  • Joined

  • Last visited

  • Days Won


LostKobrakai last won the day on February 15

LostKobrakai had the most liked content!

Community Reputation

3,929 Excellent

1 Follower

About LostKobrakai

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Augsburg, Germany

Recent Profile Visitors

10,746 profile views
  1. Maybe you could show us a bit more code / information. It's not that easy debug by guesswork.
  2. Sure a low quality image is better compressable (lots of same color values), but it's still 3888 x 2592 x 8bit x 4 (rgb + alpha) to just hold the image in memory. Maybe some other operation in the proces is memory intensive.
  3. Alternatively you could provide methods in your module, which return the needed markup when called from manually created template files.
  4. Did you try to log the contents of $_SERVER['HTTP_X_REQUESTED_WITH']? Maybe this header is stripped out anywhere on the way to your local server.
  5. That's just not how images work. You optimize the image size by using compression methods. But to manipulate (scale, …) an image it has to be decompressed first, so your optimization should in theory do next to nothing in terms of memory footprint. Also @horst already did his best to improve the image sizing tools as far as possible to detect memory exhaustion before actually hitting the limit. But there are just limits to what's detectable beforehand. P.S.: It's not advices to optimize source images at all, because the quality of thumbs will suffer (more than the compression did your source image)
  6. Submit the form against the url without any pagination segments. Eg. action="/search/", instead of action="."
  7. I recently looked into using chunked uploads to allow for file uploads beyond php limits. What I found is that it's not really simple to get the "actual" max upload filesize of php (more here). Also the max-dimensions are not really meant to prevent too big files. Anyway the results of my dive into chunked uploads can be found here: https://gist.github.com/LostKobrakai/ddb11c64dcb0f1bf1c8eed4dd534a868 I'll try to implement it in the core as soon as I find some more time, but currently it's tough to get to any open-source work.
  8. The syntax error is detected by simply reading the file, while a php class showing up as module does require a bit more steps to be correct. So you're modules folder does have the same name as the xxx.module file and the module class? Your module is extending Process or implementing Module?
  9. Do I understand this correctly, that the client does test the site on a different server than you local one? The question is not only if headers are correctly sent, but also if those headers make it to the server. Some hosters have crazy setups with nginx or even varnish in front of the actual webserver, so things could easily get lost on the way.
  10. I'm quite sure that pages2pdf does not execute any javascript. You might be able to get what you need using google's static maps api, where maps are rendered as images, but that's not part of the mapmarker module. Also I'd suggest reading the terms of service in detail, not that such operations are prohibited by google.
  11. You might want to read this: https://processwire.com/blog/posts/introducing-iftrunner-and-the-story-behind-it/
  12. Depends on the use case. Think of a hero banner type of component showing a product fullsized right on the frontpage. That might easily need that size if it's retina ready.
  13. First of all $users->find() is not interchangeable with $users->get() (just like with $pages). The first does return a list of users. While the second one does return the first found result. So $users->find() will find both your users, but returns them in a list. To limit your query like you asked to use $users->get("email=$email, roles!=superuser") I wouldn't say so. It's perfectly fine to allow for non-unique emails if one is aware of the consequences.
  14. Also if coach_provincie is a page field, where you select provincies directly, this selector works as well: "coach_provincie=$page"
  15. <div class="row"> <?php $coaches = $pages->find("coach_provincie=$page->title"); foreach ($coaches as $coach) { echo '<div class="col-md-6"><a href="'. $coach->url .'">'. $coach->title .'</a></div><div class="col-md-6">'. $coach->coach_locatie .'</div>'; } ?> </div> What about that?