Jump to content

matjazp

Members
  • Posts

    722
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by matjazp

  1. I find it very easy to install PHP, URL Rewrite 2.0 and PHP manager with the help of Microsoft Web Platform Installer (WPI). Download and install WPI at http://www.microsoft.com/web/downloads/platform.aspx and then from the list of Products/Frameworks add PHP, from the list of Products/Tools add PHP Manager for IIS and from the list of Products/Server add URL Rewrite 2.0. Click "Install". Next download and install MySQL at https://dev.mysql.com/downloads/windows/installer/. You will need web.config, see attached zip. Run install.php and follow the instructions. webconfig.zip
  2. Without much testing: install AdminCustomFiles module, create /site/templates/AdminCustomFiles/ProcessPageEdit.css with: #masthead { position: fixed; height: 2.8em; width: 100%; z-index: 1; } #breadcrumbs { padding-top: 4em; }
  3. @gunter: update composer.json file, you are missing: "minimum-stability": "dev" If you see this: - Installing psr/http-message (dev-master 85d6369) Cloning 85d63699f0dbedb190bbd4b0d2b9dc707ea4c298 Failed to download psr/http-message from source: Failed to clone https://git hub.com/php-fig/http-message.git, git was not found, check that it is installedand in your PATH env. install git.
  4. Thanks @adrian, it's working.
  5. Yes, I was talking about template files. Huh, didn't know the file was there , I was using https://pla.nette.org/en/how-open-files-in-ide-from-debugger (link provided by @tpr) and modified just a little. My .js file is very simple, @tpr went few steps forward, here are the files: editor.reg: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\editor] @="URL:editor Protocol" "URL Protocol"="" [HKEY_CLASSES_ROOT\editor\shell\open\command] @="wscript //E:jscript \"D:\\editor.js\" \"%1\"" and editor.js: // full path to the editor, you have to use double backslash var editor = '"C:\\Program Files\\IDM Computer Solutions\\UltraEdit\\uedit64.exe" "%file%" -l%line%'; var url = WScript.Arguments(0); var match = /^editor:\/\/open\/\?file=(.+)&line=(\d*)$/.exec(url); if (match) { var file = decodeURIComponent(match[1]).replace(/\+/g, ' ').replace(/\//g, "\\"); var command = editor.replace(/%line%/g, match[2]).replace(/%file%/g, file); var shell = new ActiveXObject("WScript.Shell"); shell.Exec(command.replace(/\\/g, '\\\\')); }
  6. I was talking about the issues that are already fixed or feature requests that are now in the core or there are modules available to solve feature request/enhancement. We all know that real issues get fixed, but new members don't know that. Yes, the project and the community is very active and I can't wait for weekly updates and Ryan's blog posts
  7. Well, you have to trust the group or do it yourself
  8. @Beluga: I watch other github projects and the team/owner has no problems about closing issues so in my mind there is no need for external solution, you just have to go thru the issues and close one by one. Of course, you have to know what can be closed. I'm not an PW expert but I could easily close some open issues (not to mention those 150 isellsoap is addressing).
  9. I totally agree with you. It looks like PW is full of bugs. Ryan is obviously not concerned so much. If I remember, Ryan said that he will focus on those issues, but he is busy with new features we all like
  10. I'm playing with Editor Protocol Handler set to "editor://open/?file=%file&line=%line" using UltraEdit. The problem I have is that editor won't open correct file if %line is empty string. So editor://open/?file=myfile.txt&line=1 is ok, while editor://open/?file=myfile.txt&line= is not ok. This is bug in UltraEdit. Can you help by providing line number 1, if there is no line number?
  11. In PHP 5, list() assigns the values starting with the right-most parameter. In PHP 7, list() starts with the left-most parameter. But I see that adrian fixed it...
  12. Maybe it has something to do with php version?
  13. How about prepopulating a library (from Select library) if there is only one? Or some kind default library? How does it scale with a lot of images, like 1000?
  14. If anyone interested, I installed Imagick on Win8.1 x64, IIS 8.5, PHP 7.0 x86. I took ImageMagick-6.9.3-6-Q16-x86-dll.exe from http://www.imagemagick.org/script/binary-releases.php#windows (I think the latest version would be ok too). Installed as usual, then I created env variable MAGICK_HOME, pointing to the C:\Program Files (x86)\ImageMagick-6.9.3-Q16\modules\coders. Checked that application is running. Then I downloaded PHP 7.0 Non Thread Safe (NTS) x86 of Imagick from http://pecl.php.net/package/imagick/3.4.0/windows, copied php_imagick.dll to the PHP's extension dir, in my case C:\Program Files (x86)\PHP\v7.0\ext, and added extension=php_imagick.dll to php.ini. Finally I had to restart the computer!
  15. Yes, it works for me, I had to clean the templates cache. One more thing: debug.innerHTML is "oneliner", with " \n\n" etc. How do you manage to debug that?
  16. Issue remains, but depends on template file: <?php echo $page->title; is ok. <?php echo $page->title; ?> is also ok. <?php echo $page->title; ?> foo is not ok.
  17. Hm, I tried this in template file and I don't get error: $pages->addHookBefore('find','before'); function before($event) { $event->arguments(0, $event->arguments(0) . ", limit=1"); } echo $pages->find('template=basic-page')->count(); //return 1
  18. I see this in browser's View source: </body> </html> ?> <!-- Tracy Debug Bar --> <script> (function() {... There is unexpected "?>" but only in front end, not in backend. Also, is it ok to have script after the </html>?
  19. No luck with the new version, error is stil there. Hm, it's working now ... don't know what I did...
  20. Now I get (in Diag & Output panel): PDOException: SQLSTATE[HY000] [2002] Nobene povezave ni mogoe vzpostaviti, ker jo ciljni raunalnik aktivno zavraa. in C:\inetpub\wwwroot\site\assets\cache\FileCompiler\site\modules\TracyDebugger\DiagnosticsPanel.inc:287 Stack trace: #0 C:\inetpub\wwwroot\site\assets\cache\FileCompiler\site\modules\TracyDebugger\DiagnosticsPanel.inc(287): PDO->__construct('mysql:host=loca...', 'myusername', 'mypassword') #1 C:\inetpub\wwwroot\site\assets\cache\FileCompiler\site\modules\TracyDebugger\tracy\src\Tracy\Bar.php(73): DiagnosticsPanel->getPanel() #2 C:\inetpub\wwwroot\site\assets\cache\FileCompiler\site\modules\TracyDebugger\tracy\src\Tracy\Debugger.php(221): Tracy\Bar->render() #3 [internal function]: Tracy\Debugger::shutdownHandler() #4 {main} It shows user/pass for DB in plain view... A also can't move some panels, see the video.
  21. As I said, I would not show permission, status and notes columns since they show wrong info on windows. Exist/readable/writeable columns are ok. I can't test what statuses are displayed on linux box, but flaging read/orange/green is also not trivial. If you want to be able to upgrade PW version using ProcessWireUpgrade Module, /wire has to be writeable and if that user wanted to do then it should be marked green (or orange), not red (I don't make /wire writeable in production). If you want to upgrade site modules, than /site/modules has to be writeable etc. I would limit phpinfo() just for admins. I'm hosting 3 live sites on Windows server for more than a year, 2 more to come. No problems so far.
  22. There is no ls command on windows. There is icacls that shows: C:\inetpub\wwwroot>icacls install.php install.php: Access denied. Successfully processed 0 files; Failed processing 1 files Access is denied because I (my login account) don't have access to the file. The only user with access to the file is the user under which web server is running. On linux that would be 400 and file is owned by user apache. If I change the ownership to my account and run icacls again: C:\inetpub\wwwroot>icacls install.php install.php NT AUTHORITY\IUSR:(RX) Successfully processed 1 files; Failed processing 0 files It shows that iusr user has read+execute access. I wouldn't bother too much with windows permissions, they are more complicated than on linux, and maybe wouldn't even show permission, status and notes columns? Many php functions don't give reliable results on windows (I think that chmod does nothing on windows, but haven't tested...). There are also differences with rename/move operations etc.
  23. Well, now I tested with install.php. I made the owner of the file iusr and iusr is the only one with read permissions, no one else. Install File /install.php ✓ ✓ 0666 Failure Should be deleted for security. Yes, install.php should be deleted for security, file exist, is readable, not writeable, but 0666?
  24. I'm on windows + IIS. "Apache is running as user: nt authority\iusr" is correct (I would change Apache with Web server). About permissions: I tested with /site/config.php. The owner of the file is iusr user and has read only access. No one else has access so I don't know what to say about "0666 Readable by more than just the owner." Exists, Readable and Writeable columns seems to be correct.
  25. Related to this? https://github.com/ryancramerdesign/ProcessWire/issues/1624
×
×
  • Create New...