lpa
Members-
Posts
212 -
Joined
-
Last visited
Everything posted by lpa
-
I had a problem with Fredi on PW 3.0.69 in a template where I had one field on the default FieldsetTab and two fields on another FieldsetTab. Those two fields (musician_info,arrangement_info) did not save even though the field (preliminary_name) on the default Tab saved without problems. $o .= $fredi->setText('Edit')->render("musician_info|arrangement_info|preliminary_name",$p); Before PW3 these fields saved normally: After moving those fields to the default FieldsetTab all the fields save normally. How could this be fixed? I would like to keep those fields on their own FieldsetTab.
-
Is the latest version of this module at the GitHub repo? Is that version PW 3.0 compatible? I wish, you could update the GitHub repo with the latest version.
-
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?
-
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?
-
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?
-
Any idea why do I get "Error: Unrecognized path" in the console every time I try to run some code?
-
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?
-
Hi It seems to me, that mods.pw is not working anymore. At least this http://mods.pw/1s URL is not working.
-
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?
-
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.
-
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.
-
Only getting the default language content through Page field
lpa replied to lpa's topic in Multi-Language Support
Thanks Antti! Something strange happened, because now it is working even without those additions you suggested. I must have messed with the settings. -
Only getting the default language content through Page field
lpa replied to lpa's topic in Multi-Language Support
I still don't understand why is this not working. Is there something fundamentally wrong in my example? -
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.
-
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
-
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?
-
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/
-
Yes, it is working now! Thank you for this great module!
-
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!
-
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.
-
Yes, I have deleted files in site/assets/cache/FileCompiler/site/templates and it still gives those errors….
-
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.
-
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.
-
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.
-
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: }