Jump to content

matjazp

Members
  • Posts

    722
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by matjazp

  1. I upgraded to the latest version and I get TracyDebugger.module, line 154. No access to admin. I commented lines in ready() so that admin worked again, then updated module settings.
  2. Yes, of course I was just commenting the difference between results from Tracy and PW timers and not "requesting" to be the same. Sorry for not making that clear. I was thinking like this: if you have multiple timers, than it might be visually better to see them aligned ...
  3. Maybe: $roundedTime = number_format(Debugger::timer($name),4); How about displaying a list of local variables, without PW variables, something like get_defined_vars() but without fuel, wire, classLoader, hooks, config etc.
  4. The difference is because you are returning float using round function, while PW timer is returning string using number_format ...
  5. t(); sleep(1); bd(t()); $timer = Debug::timer(); sleep(1); bd(Debug::timer($timer)); result: 1.0 in ...\site\modules\TracyDebugger\TracyDebugger.module:286 "1.0000" (6) in ...\site\modules\TracyDebugger\TracyDebugger.module:286
  6. 4 decimal places is ok (from my point of view), but now it show 0.0 instead of 0.0000
  7. t() returns number like 3.0994415283203e-6 Could that be "better" formated?
  8. Now that was fast response! Fixed, thank you.
  9. Hi Adrian! When I mark children page for delete and then Save the page, I get errors (see attachment). The page itself (http://localhost/processwire/page/edit/?id=1) returns " The process returned no content." Could it be my fault (playing around...)? No problem with editing and adding pages. error.txt
  10. I've done 3 sites with PW, all are educational, nonprofit and I don't get payed for that so crowdfunding would have to go from my personal/family budget...
  11. @OllieMackJames: I would love to have that module. I can help with testing/debugging as I'm not that good at programming. @Horst: I know ProcessImageMinimize.pw, but it is not free (although they have free plan). ProcessImageMinimize is not supported on PW3 (I asked Marvin Scharle at Conclurer). I tested it and couldn't make it work (running on Windows with IIS - maybe this is the culprit). And probably there will be no more support for it. Module JpegOptimImage is using exec, some sites do not allow that. Most of my users doesn't know anything about images so they upload just what they have, even if those are big images (like 5-10 Mb) and large sizes. I just go after them, resize if needed (yes, I have max/min width set in ImageField) and then optimize with jpegmini.
  12. I can confirm that PW is working with MariaDB. Did you add user to the MariaDB? Sometimes you have to specify host as localhost or 127.0.0.1 or even ::1. But from the error response it looks like username is not sent to the DB. As LostKobrakai said, there is "plugin" column in mysql table and in my case it is empty (for all users).
  13. I've written the issue on GitHub to hear Ryan's thoughts. I'm not good enough in PHP or PW internals and don't know when ajax upload is used. In "ajax mode" uploaded file is read from php://input and then created at the $config->$uploadTmpDir (if set) folder. In "nonajax mode" $config->$uploadTmpDir is not used - files are uploaded to the folder set up by upload_tmp_dir directive in php.ini It would be ideal if "nonajax upload" would store files in $config->$uploadTmpDir to... Is this possible? Sorry for dumb questions...
  14. PHP stores the uploaded file in the folder determined by upload_tmp_dir directive in php.ini. By default this is C:\Windows\Temp directory. After the uploaded file is stored to the upload_tmp_dir, ProcessWire will then move/rename the file to the final destination directory and that doesn’t inherit destination directory’s permissions. There are multiple options on how to make it work: a.) Change the permissions on the windows temp folder giving IUSR and IIS_IUSRS write/modify b.) Change the path of the upload_tmp_dir in the php.ini file to a folder with appropriate permissions c.) Change the way WireUpload works so that it copy the file, not rename/move it. I didn't have upload problems in admin, because I used $config->$uploadTmpDir pointing to the /site/assets/uploads folder (created by me). This folder is used in WireUpload.php with ajax uploading (using $_SERVER['HTTP_X_FILENAME']). Since /site/assets/uploads folder inherits /site/assets folder permissions, moving/renaming the file is not the problem. When uploading using PHP's $_FILES global variable, $config->$uploadTmpDir is not used and files are uploaded to the folder set up by upload_tmp_dir directive. As copying in slower than renaming, I'm not sure if this is the right solution (file WireUpload.php in function saveUpload): $success = move_uploaded_file($tmp_name, $destination); to: $success = is_uploaded_file($tmp_name); if($success) $success = @copy($tmp_name, $destination); if(is_file($tmp_name)) @unlink($tmp_name);
  15. Testing again on IIS with PW3. After upload I don't have access to uploaded files. I get HTTP 500.50 error along with 0x80070005 and that is (from my experience) permission issue. I'm assuming (didn't look at your sources) that files are uploaded to temp directory (PHP's upload_tmp_dir?) and then moved/renamed to the final destination at /site/assets/files/jqfu/files. In the process of moving the files, permissions of the files are inherited from the temp directory and those are not sufficient for the web server. Would you consider using $config->$uploadTmpDir instead of PHP's upload_tmp_dir? Edit: I see you are using WireUpload class so I'll have to take a closer look into WireUpload.php...
  16. I finally made it to work on frontend - didn't notice 'disableUploads' => true in the example ... should read more carefully
  17. if($vessel == 2) {
  18. Also comment this line: this.$timeObj[0].setSelectionRange(sPos, ePos); in jquery-ui-timepicker-addon.js to avoid focus bug (#1528).
  19. I replaced $timeFormatJS = str_replace('h24', 'h', $timeFormatJS); with $timeFormatJS = str_replace('hh24', 'HH', $timeFormatJS); in InputfieldDateTime.module (line 160).
  20. Switching to old timepicker.js solves the problem, at least with slider
  21. It also happens with select mode.
  22. How about replacing PW logo with my company's logo (branding) without modifying the admin theme?
  23. I welcome 2016 roadmap but I also think that open github issues should be fixed/closed first (cleaning the desk)...
  24. Title changes only on the first edit attempt eg. "edit->change title->save" title change is visible in BCE, then again "edit->change title->save" this time the title stays unchanged
×
×
  • Create New...