Jump to content

lpa

Members
  • Posts

    209
  • Joined

  • Last visited

Everything posted by lpa

  1. Hi all! I still haven't found a solution to my problem. How to force all the content to be https except one subdirectory? The problem is this final PW handler, which is always https. RewriteRule ^(.*)$ index.php?it=$1 [L,QSA] When I force all the content in .htaccess to https, the template level setting can't off course override that setting. Has anyone solved such a problem?
  2. How do you handle the exceptions like above??? I want all the content except one subdirectory redirected to https, but the above solution does not work. Is there any easy solution?
  3. How about redirecting all to https except one subdirectory? I want to change all of our domain from http to https. But I need to serve one directory without https. I have tried to do this in apache server config like this: RewriteCond %{REQUEST_URI} ^/?subdir RewriteRule ^/(.*) http://www.example.com/$1 [R,L] RewriteCond %{REQUEST_URI} ^/index.php\?it=subdir(.*) RewriteRule ^/(.*) http://www.example.com/index.php?it=subdir$1 [R,L] RewriteCond %{HTTPS} !=on RewriteRule ^/(.*) https://www.example.com/$1 [R=301,L] But this does not work. How should the redirect from /subdir to /index.php?it=subdir be handled, because now that will be forced to be https by the last rule?
  4. Any idea why do I get "Error: Unrecognized path" in the console every time I try to run some code?
  5. I have been using this module for some years. Every now and then one of my sites is loosing the Google authentication of the module. I have to authenticate again for the module to start working again. Has anybody seen this kind of problem and what could cause the need to reauthenticate?
  6. Hi It seems to me, that mods.pw is not working anymore. At least this http://mods.pw/1s URL is not working.
  7. Have you seen this before? I just upgraded to the latest version both PW (3.0.18) and TracyDebugger (1.5.6) Edit: I found this later: Error: DiagnosticsPanel exception 'RuntimeException' with message 'SplFileInfo::getPerms(): stat failed for /Library/WebServer/Documents/XXX/YYYY/ZZZ' in /Library/WebServer/Documents/pw3/site/assets/cache/FileCompiler/site/modules/TracyDebugger/DiagnosticsPanel.inc:286 Stack trace: #0 /Library/WebServer/Documents/pw3/site/assets/cache/FileCompiler/site/modules/TracyDebugger/DiagnosticsPanel.inc(286): SplFileInfo->getPerms() #1 /Library/WebServer/Documents/pw3/site/assets/cache/FileCompiler/site/modules/TracyDebugger/DiagnosticsPanel.inc(349): DiagnosticsPanel->incorrectPermissionFiles() #2 /Library/WebServer/Documents/pw3/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-stable/src/Tracy/Bar.php(73): DiagnosticsPanel->getPanel() #3 /Library/WebServer/Documents/pw3/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-stable/src/Tracy/Debugger.php(221): Tracy\Bar->render() #4 [internal function]: Tracy\Debugger::shutdownHandler() #5 {main} This is quite odd, because the RuntimeException is happening outside my pw-root which is /Library/WebServer/Documents/pw3/ not /Library/WebServer/Documents/XXX/. 2nd edit: those files are either symbolic links pointing to non-existing files or "failed to open dir: Permission denied" errors. But still I don't know why tracy is reading the files outside PW root?
  8. Yes, we might upgrade soon to 2.7. Just have to test properly. I have need for AdminRestrictBranch module which is also not compatible with 2.4, so have to upgrade.
  9. Trying to use this module with PW version 2.4.0, I get the following error: TemplateFile: Method WireHttp::setTimeout does not exist or is not callable in this context ProcessWireUpgradeCheck.module(269): Wire->__call('setTimeout', Array) The module page says, it should be compatible with 2.4.
  10. Thanks Antti! Something strange happened, because now it is working even without those additions you suggested. I must have messed with the settings.
  11. I still don't understand why is this not working. Is there something fundamentally wrong in my example?
  12. I have a multi-language site having artist pages with three languages. The content is shown correctly on the artist page. When I try to refer to those pages through a Page field called artists on an artist list page, I don't get the right language content. echo $page->title; $children = $page->artists; foreach($children as $c) { echo $c->body; echo {$user->language->title}; } The title is shown in the correct language. $user->language->title is show in the correct language. But $c->body is always in the default language. I don't understand what I am missing. PW version 2.6.5.
  13. I managed to fix this problem and now I have the Editor Protocol Handler working with Eclipse. Here comes what I did: I followed the document here: http://teleyag.com/blog/2011/08/19/openineclipse-url-scheme-for-mac/. The only change was to fix that urlencoding problem above with the following AppleScript change. On line 6 I added: set this_URL to replace_chars(this_URL, "%2F", "/") And in the end of the script this function for replace_chars: on replace_chars(this_text, search_string, replacement_string) set AppleScript's text item delimiters to the search_string set the item_list to every text item of this_text set AppleScript's text item delimiters to the replacement_string set this_text to the item_list as string set AppleScript's text item delimiters to "" return this_text end replace_chars
  14. I am about to upgrade one old site from PW 2.3.0 to 2.7.3. The site has a lot of modules both from modules directory and self-made ones. I have tried to do the upgrade twice the normal way by just replacing wire, index.php and .htaccess. But on both local machines I have run into problems with very slowly loading pages and even hanging Apache connections. What would you suggest for: - the correct way to do the upgrade? - the way to debug what might be hanging or making the site very slow after the upgrade?
  15. The Editor Protocol Handler would be great, but I have problems with escaped characters like / as %2F. The links look like this: openineclipse://open?url=file://%2FLibrary%2FWebServer%2FDocuments%2Fpw25%2Fsite%2Ftemplates%2Fhome.php&line=25 But in Safari at least this doesn't work if I don't change each "%2F" to "/". How could I change the links to be like: openineclipse://open?url=file:///Library/WebServer/Documents/pw25/site/templates/home.php&line=25 or get Safari or Chrome understand I found help on defining the Editor Protocol Handler for Eclipse "openineclipse" on this page: http://teleyag.com/blog/2011/08/19/openineclipse-url-scheme-for-mac/
  16. Yes, it is working now! Thank you for this great module!
  17. Yes, I have one variable $help defined like this from the Compiled template file: $help = 'kjlkj'; barDump($content); timer(); ?> <?php if(class_exists('\ProcessWire\TracyDebugger')) { \ProcessWire\TracyDebugger::$templateVars = \ProcessWire\TracyDebugger::templateVars(get_defined_vars(), \ProcessWire\wire('page')); } And the $Variables panel shows only: array() Nice to be of some help!
  18. I changed the module line 223 to this: $event->return = preg_replace('/(\?>)?$/s', '$1', $event->return) . "\n?>\n<?php\nif(class_exists('\ProcessWire\TracyDebugger')) {\n\t\ProcessWire\TracyDebugger::".'$templateVars'." = \ProcessWire\TracyDebugger::templateVars(get_defined_vars(), wire('page'));\n}"; And now I don't get the error any more. BUT the variables panel only shows "array()" no real variables from my template. I try to make a clean install in the evening.
  19. Yes, I have deleted files in site/assets/cache/FileCompiler/site/templates and it still gives those errors….
  20. I cleared the cache both manually and with the button at Site -> Modules settings. The problem remains. I have also the empty array() in my $Variables panel.
  21. Sorry, but it still doesn't work for me. I have PHP 5.5.29, PW 3.0.8 and Mac OS X 10.10.5.
  22. The problem is with Show Variables Panel setting. After clearing the compiled files from cache with the Show Variables Panel setting off, everything works. But when I enable the Show Variables Panel, the error is back.
  23. The original problem has not gone. At the moment all the frontend pages give me the error: "Class 'ProcessWire\TracyDebugger' not found". I have even tried to reinstall the module, but it doesn't help. I don't see the version mismatch on the upgrades page anymore. <?php 57: if(class_exists('TracyDebugger')) { 58: \ProcessWire\wire('templateVars', TracyDebugger::templateVars(get_defined_vars(), \ProcessWire\wire('page'))); 59: }
  24. It looks like this: <?php if(class_exists("TracyDebugger")) $this->wire("templateVars", TracyDebugger::templateVars(get_defined_vars(), \ProcessWire\wire("page"))); By the way, my Upgrades page tells me that I have version 0.5.0 installed and the latest is 0.4.9?
  25. After upgrading to the latest version I get this error: Class 'ProcessWire\TracyDebugger' not found on the default PW install basic-page -template. What could cause this error? file protected => "/Library/WebServer/Documents/pw3/site/assets/cache/FileCompiler/site/templates/basic-page.php"
×
×
  • Create New...