Jump to content

Dennis Spohr

Members
  • Posts

    52
  • Joined

  • Last visited

Everything posted by Dennis Spohr

  1. Looks like it doesn't have something todo with the server. I created a test-url for them (without /6 it works): https://www.coachy.net/seqtest/1/2/3/4/5/6 Their support wrote the following (freely translated from German): For testing I removed the ProCache Module. Additionally I downloaded a clean .htaccess File (latest pw-version). I'm still getting the same error.
  2. Yes I have to ask my hoster then. But should I ask him specifically? Or can I check by myself?
  3. Anyone any idea? Thanks ?
  4. This one works local and live: And this one just locally:
  5. I don't think the total length is the problem. The url is not that long (maybe 30 characters?) and it doesn't change anything if I shrink the segments itself. Now it's maybe a total length of 50 characters and it's the same problem. It's really the count of segments.
  6. Hi all, if my url has more than 6 url-segments it throws an 404 error. This happens just on my live-server, locally it works perfect. I already set $config->maxUrlSegments = 15; Is there any PHP setting that can cause this behaviour? I tried many things but got totally stuck now. Thanks for your help! Dennis
  7. Just found the error, adding the path did the trick: $imageSizer = new ImageSizer($lesson->video_image->path().$original, $options); Thanks!
  8. 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:
  9. Perfect horst, thank you very much!
  10. 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
  11. Horst, thank you very very much, your reply helps me a lot!
  12. 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!
  13. 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
  14. 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
  15. https://github.com/processwire/processwire-issues/issues/237
  16. 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!
  17. 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 ...
  18. 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!
  19. 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:
  20. Anything in the logs?
  21. 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, '/', '.mydomain.net'); config.php: $config->sessionCookieDomain = '.mydomain.net'; htaccess: php_value session.cookie_domain ".mydomain.net" 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 ...
  22. Does anyone has an idea? I tried many, many things and lost 3 days experimenting on it already. I have the feeling that ProcessWire somehow does something wrong. Thanks, Dennis
  23. Hi all, I'm trying to do it in a different way now. On Domain A, I append the session_id: $pages->get(123)->url.'?sid='.session_id(); On Domain B I placed the following code in the site/config.php: if (isset($_GET['sid'])) { session_id($_GET['sid']); } session_start() is called after loading the config, right? Unfortunately it still doesn't work. After doing this even the session on Domain A is destroyed. I got this idea here: https://www.gonnalearn.com/2008/04/10/sharing-session-data-across-domains-with-php/ Any idea from anyone? Thanks!
  24. Hi Sérgio, thanks for your reply. Unfortunately this doesn't change anything for me - still not working.
  25. Hi all, I have problems to keep my session on different subdomains (including www). I've set the following config: $config->sessionCookieDomain = '.mydomain.net'; $config->sessionCookieSecure = false; But it doesn't work, I always loose the session when I switch between www.mydomain.net and example.mydomain.net. Could it be because both of them have a different SSL-Certificate? (https) Thanks for any help! Dennis
×
×
  • Create New...