Dennis Spohr

  • Content count

  • Joined

  • Last visited

Community Reputation

5 Neutral

About Dennis Spohr

  • Rank
    Jr. Member

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Dennis Spohr

    Just found the error, adding the path did the trick: $imageSizer = new ImageSizer($lesson->video_image->path().$original, $options); Thanks!
  2. Dennis Spohr

    I just did a test, but unfortunately it doesn't work somehow. I have the following code: if ($_FILES['thumbnail']['name']) { $upload = new WireUpload('thumbnail'); $upload->setMaxFiles(1); $upload->setOverwrite(true); $upload->setDestinationPath($lesson->video_image->path()); $upload->setValidExtensions(array('jpg', 'jpeg', 'png')); $lesson->video_image->removeAll(); foreach ($upload->execute() as $file) { $original = $file; $options = array('upscaling' => false, 'quality' => 100); $imageSizer = new ImageSizer($original, $options); $success = $imageSizer->resize(500, 500); if ($success) $lesson->video_image->add($original); } } I always get this error:
  3. Dennis Spohr

    Perfect horst, thank you very much!
  4. Dennis Spohr

    Hi all, in the backend of ProcessWire it's possible to define a maximum width and height for images. If you upload an image, it will be resized automatically. I find this feature very handy to safe space. Very often users upload images which are much bigger than needed. On my application users can upload their images via the frontend. But if you upload images using the API, images won't be resized automatically. Is there any way to do this? Currently that's my code: if ($_FILES['thumbnail']['name']) { $upload = new WireUpload('thumbnail'); $upload->setMaxFiles(1); $upload->setOverwrite(true); $upload->setDestinationPath($lesson->video_image->path()); $upload->setValidExtensions(array('jpg', 'jpeg', 'png')); $lesson->video_image->removeAll(); foreach ($upload->execute() as $file) $lesson->video_image->add($file); } Thanks very much! Dennis
  5. Dennis Spohr

    Horst, thank you very very much, your reply helps me a lot!
  6. Dennis Spohr

    How can I find such a hook? I don't have much experience with them yet. Very nice idea regarding weekly emails! Wow nice module, didn't see this one before. I will check it out for sure. Thank you!
  7. Dennis Spohr

    Hi all, with $config->adminEmail it's possible to send out an email for fatal errors (for example a syntax-error). It would be nice to get also an email in case of an unhandled exception. There could be a situation of an wrong upload and exceptions on the live-page. Is this possible? Also it could be a very handy feature to be able to choose specific logs which are sent our via email automatically. Thanks for your feedback, Dennis
  8. Hi all, I'm using the AIOM+ module for speeding up my page. My website is using SSL. In the module there's the option for domain sharding. Without SSL it's working perfectly, but as soon as I access the website via SSL it's not working. Seems like the Option "Domain sharding (SSL)" is beeing totally ignored. Is there anybody with the same problem? Thanks! Dennis
  9. Dennis Spohr
  10. Dennis Spohr

    Hi Robin, thanks for your feedback. Yesterday I changed the whole structure of my project, so I don't have to use different domains. But still it's more like a workaround since now I don't have the full functionality I wanted to have. I will open a GitHub Issue soon. Thanks again!
  11. Dennis Spohr

    If I look into the session-table, I get 3 entries: I go to Domain B, session is created. I login there and $user is set. While the login process Domain A is called via ajax and create another session. Also with $user set. All seems to be fine until here. I go to Domain A - but here another session is created. The session which was created via the ajax request is ignored. Why? In the config I set $config->sessionFingerprint = false; Anyone an idea? There must be a solution somehow ...
  12. Dennis Spohr

    Hi all, somehow I can't properly login with ajax. That's the content of my ajax-file (placed on Domain B, called on Domain A) <?php namespace ProcessWire; $name = $sanitizer->text($input->post->name); $pass = $sanitizer->text($input->post->pass); if ($name != '' && $pass != '') { $test = $session->login($name, $pass); print $test->name; print $user->name; } ?> The first print gives me the name like expected. Means, that the login was successful. But the second print returns "guest". If I reload the page on Domain B, the user is not logged in. Any idea? Thanks!
  13. Dennis Spohr

    Hi Robin, all domains/subdomains are using the same PW-installation. I use my htaccess-file to point each of them to a specific page. Yes I want to login the user for both domains. Exactly. I use PW 3,0,42. The sessions are stored in the database. Currently I'm trying to login the user via an ajax-request, but couldn't get this one to work either. But still working on this. Could be an interesting option since I use https everywhere and later on I will have other domains (not subdomains) as well. Got this idea from here:
  14. Dennis Spohr

    Anything in the logs?
  15. Dennis Spohr

    For testing I use both domains without an ssl-certificate and without any redirects. I tried to set the cookie-domain with these 3 ways: config.php: session_set_cookie_params(0, '/', ''); config.php: $config->sessionCookieDomain = ''; htaccess: php_value session.cookie_domain "" All of them have the same behavior: if I login on domain A and then on subdomain B, the sessions on both are destroyed. I also played with these values: $config->sessionFingerprint = false; $config->sessionCookieSecure = false; But no change. I'm totally stuck now ...