-
Posts
380 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MarcC
-
It's much better software, I think, thank a lot of what's out there. I enjoy using the "like" button to save time on replying to things and still indicate that I really love someone. I also like the "search and replace" icon. "b!" NO, "a!" ha ha
-
Love it. That's really cool that keyboard nav works, too. I would add that after just learning that this stuff even exists, I'm kind of wanting to get my virtual "graphic design for film fix" so any text descriptions she wanted to add to those e.g. supermom graphics would be much appreciated. For instance, the boat drawings make sense to me, since I've seen the film, but the boxer was a big "?"
-
Thanks, Pete & Ryan. It was nice while it worked, but it seems to me that it added a bit of admin UI complexity too. Since the number of nested repeaters used was pretty homogenous anyway, we're going to move to a set number of static text fields for those sub-listings. Appreciate the quick support.
-
OK, update: We are nesting one repeater inside of another (that is, we have a repeater field as one of the fields in a repeater field that we are using in a template). Other than that complication, both repeaters are quite small and only have a couple text fields. While digging for the issue in the original post, we noticed that there are many, many unpublished blank placeholders of the inner repeater. Like, a lot. We suspect that because the default value for "Ready-to-edit New Repeater Items" in the Details section of repeater field setup is "3", somehow the inner repeater kept generating ready-to-edit items unexpectedly. We have set this setting to "0" now, and hopefully the problem will go away. Of course, we don't really know what is causing this issue, and how nested repeaters interact. But it would be great if this could be fixed, unless you think nested repeaters is undefined behavior (in the which case the API or at least the admin interface should disallow it).
-
We are looking at putting breakpoints into the Data.php and testing that way. Nothing about the repeater pages stands out as a problem.
-
Actually, I was wrong about the page ref--that's just a text field called "category". I'm looking at the repeater entries in the Admin but not seeing anything potentially troublesome yet. I will keep looking.
-
I can't open it at all via the back end, so no screenshot is available at present. The repeater has four fields: One page reference (category) and three text / textarea inputs. The front end of the site does iterate those items, but as I said there doesn't appear to be a delay there.
-
I'm experiencing DB timeouts when I try to edit a page with a bunch of repeaters (less than 50). The page data is very zippy on the public front end, though. Where should I start to troubleshoot this?
-
How to troubleshoot: non-virtual folders returning PW 404?
MarcC replied to MarcC's topic in General Support
Thanks, Ryan. Maybe support can help me figure out why this seems to be only an issue running PHP scripts. Everything else works fine, like /piwik2/example.html, etc. -
Helpful? http://www.tinymce.com/wiki.php/Configuration:extended_valid_elements
-
How to troubleshoot: non-virtual folders returning PW 404?
MarcC replied to MarcC's topic in General Support
Just confirmed that it's running Apache. -
How to troubleshoot: non-virtual folders returning PW 404?
MarcC replied to MarcC's topic in General Support
Thanks, Ryan. Well, the httpd service is showing version 2.2.22...that's got to be Apache, right? If maybe not, I can make double-sure...this is on Centos 5.8. I did try uncommenting "RewriteBase /" just now, but the problem persisted. Same with the VirtualDocumentRoot line (uncommented separately from RewriteBase)...same when I uncomment both directives (and comment out the non-virtualdocumentroot line). I can access e.g. /piwik2/piwik.js just fine (it lists out in my browser)...this is all happening when I am calling PHP files in that folder, index.php or piwik.php, etc. -
How to troubleshoot: non-virtual folders returning PW 404?
MarcC replied to MarcC's topic in General Support
OK, here's the latest: I turned directory indexes back on and now I can access any subfolder. :-/ (feeling a bit stupid there..didn't realize ProcessWire's 404 page would handle those if indexes were turned off) However, I still can't access the /piwik2 folder with Piwik's files in it. I believe this might be due to Piwik's index.php being included in ProcessWire's .htaccess rules. Is that possible? There's no .htaccess in Piwik's folder, so I'm wondering if I should put one there. Advice? -
How to troubleshoot: non-virtual folders returning PW 404?
MarcC replied to MarcC's topic in General Support
URL segments box is unchecked for Home template. Now I'm starting to wonder what I should do instead of using subfolders. Put everything under /forms? Ha ha -
How to troubleshoot: non-virtual folders returning PW 404?
MarcC replied to MarcC's topic in General Support
Maybe the nobody-group thing isn't a big deal. I have another site, same server, same group for public_html, and new folders work fine alongside ProcessWire. Here's a support reply: Good guys though; they're generally helpful. Anything I should try tweaking with that specific rule? Seems to work even on other PW sites on the same server. And it's kind of an important rule, I understand... -
How to troubleshoot: non-virtual folders returning PW 404?
MarcC replied to MarcC's topic in General Support
For kicks and giggles, I moved the Piwik files to /piwik2 and then tried to access the empty /piwik folder. In a different browser. On a different machine. With trailing slashes. Same result. And that's an empty folder! Of course accessing /piwik2 doesn't work either. The only thing that's different between /forms and /piwik, that comes to mind: the /forms folder was created some time ago, back when I was still accessing the site via http://IP/~username. The new folders were created after I got a new IP address and updated the DNS so I can go to example.com now. No idea why that would affect anything. ls -al result (changed user/group names) drwxr-xr-x 9 example example 4096 Jul 4 13:10 forms/ (working) drwxr-xr-x 2 example example 4096 Aug 17 00:01 piwik/ (not working, empty) drwxrwxr-x 12 example example 4096 Aug 15 21:34 piwik2/ (not working) piwik2 folder ls -al results: drwxrwxr-x 12 example example 4096 Aug 15 21:34 ./ drwxr-x--- 20 example nobody 4096 Aug 17 03:09 ../ -rw-rw-r-- 1 example example 676 Aug 12 09:05 composer.json drwxrwxr-x 2 example example 4096 Aug 15 21:34 config/ drwxrwxr-x 25 example example 4096 Aug 15 21:34 core/ -rw-rw-r-- 1 example example 1611 Mar 20 01:23 index.php drwxrwxr-x 2 example example 4096 Aug 15 21:34 js/ drwxrwxr-x 2 example example 4096 Aug 15 21:34 lang/ -rw-rw-r-- 1 example example 6070 Feb 13 2012 LEGALNOTICE drwxrwxr-x 20 example example 4096 Aug 15 21:34 libs/ drwxrwxr-x 6 example example 4096 Aug 15 21:34 misc/ -rw-rw-r-- 1 example example 19990 Jul 31 19:43 piwik.js -rw-rw-r-- 1 example example 2911 Aug 1 23:27 piwik.php drwxrwxr-x 45 example example 4096 Aug 15 21:34 plugins/ -rw-rw-r-- 1 example example 2640 Mar 5 20:17 README drwxrwxr-x 2 example example 4096 Aug 15 21:34 tests/ drwxrwxr-x 3 example example 4096 Aug 15 21:34 themes/ drwxrwxr-x 2 example example 4096 Aug 15 21:34 tmp/ Now, the part about /public_html (../ above) being part of group nobody ...is that normal? I just noticed that. -
How to troubleshoot: non-virtual folders returning PW 404?
MarcC replied to MarcC's topic in General Support
I contacted support and they said "yup, must be something in .htaccess." Very helpful! But at least they didn't break the site. Is there anything you guys think I should try? Edit: the folder /forms works fine but /piwik doesn't. Weird! -
How to troubleshoot: non-virtual folders returning PW 404?
MarcC replied to MarcC's topic in General Support
Yeah, permissions and ownership look OK. The folder is accessible just fine without .htaccess. Here is the full file: ################################################################################################# # START PROCESSWIRE HTACCESS DIRECTIVES # @version 2.1 ################################################################################################# # ----------------------------------------------------------------------------------------------- # Don't show directory indexes, but do follow symbolic links # ----------------------------------------------------------------------------------------------- Options -Indexes Options +FollowSymLinks # ----------------------------------------------------------------------------------------------- # Let ProcessWire handle 404s # ----------------------------------------------------------------------------------------------- ErrorDocument 404 /index.php # ----------------------------------------------------------------------------------------------- # Handle request for missing favicon.ico/robots.txt files (no ending quote for Apache 1.3) # ----------------------------------------------------------------------------------------------- <Files favicon.ico> ErrorDocument 404 "The requested file favicon.ico was not found. </Files> <Files robots.txt> ErrorDocument 404 "The requested file robots.txt was not found. </Files> # ----------------------------------------------------------------------------------------------- # Protect ProcessWire system files (part 1) # ----------------------------------------------------------------------------------------------- <FilesMatch "\.(inc|info|module|sh|sql)$|^(\..*)$"> Order allow,deny </FilesMatch> # ----------------------------------------------------------------------------------------------- # Override a few PHP settings that can't be changed at runtime (not required) # ----------------------------------------------------------------------------------------------- <IfModule mod_php5.c> php_flag magic_quotes_gpc off php_flag magic_quotes_sybase off php_flag register_globals off </IfModule> # ----------------------------------------------------------------------------------------------- # Set default directory index files # ----------------------------------------------------------------------------------------------- DirectoryIndex index.php index.html index.htm # ----------------------------------------------------------------------------------------------- # ProcessWire requires mod_rewrite # ----------------------------------------------------------------------------------------------- <IfModule mod_rewrite.c> RewriteEngine On # ----------------------------------------------------------------------------------------------- # Set an environment variable so the installer can detect that mod_rewrite is active. # ----------------------------------------------------------------------------------------------- SetEnv HTTP_MOD_REWRITE On # ----------------------------------------------------------------------------------------------- # Optional: Set a rewrite base if rewrites aern't working properly on your server. # And if your site directory starts with a "~" you will most likely have to use this. # ----------------------------------------------------------------------------------------------- # RewriteBase / # RewriteBase /pw/ # RewriteBase /~blah/ # ----------------------------------------------------------------------------------------------- # Access Restrictions: Keep web users out of dirs that begin with a period # ----------------------------------------------------------------------------------------------- RewriteRule "(^|/)\." - [F] # ----------------------------------------------------------------------------------------------- # Optional: Redirect users to the 'www.' version of the site (uncomment to enable). # For example: http://processwire.com/ would be redirected to http://www.processwire.com/ # ----------------------------------------------------------------------------------------------- RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # ----------------------------------------------------------------------------------------------- # Access Restrictions: Protect ProcessWire system files (part 2) # ----------------------------------------------------------------------------------------------- RewriteCond %{REQUEST_URI} (^|/)\.htaccess$ [NC,OR] RewriteCond %{REQUEST_URI} (^|/)site/assets/(cache|logs|backups|sessions|config|install)($|/.*$) [OR] RewriteCond %{REQUEST_URI} (^|/)site/install($|/.*$) [OR] RewriteCond %{REQUEST_URI} (^|/)site/config\.php$ [OR] RewriteCond %{REQUEST_URI} (^|/)(wire|site)/templates-admin($|/|/.*\.(php|html?|tpl|inc))$ [OR] RewriteCond %{REQUEST_URI} (^|/)site/templates($|/|/.*\.(php|html?|tpl|inc))$ [OR] RewriteCond %{REQUEST_URI} (^|/)site/assets($|/|/.*\.php)$ [OR] RewriteCond %{REQUEST_URI} (^|/)wire/(core|modules)/.*\.(php|inc|tpl|module)$ [OR] RewriteCond %{REQUEST_URI} (^|/)site/modules/.*\.(php|inc|tpl|module)$ [OR] RewriteCond %{REQUEST_URI} (^|/)(COPYRIGHT|INSTALL|README|htaccess)\.txt$ [OR] RewriteCond %{REQUEST_URI} (^|/)site-default/ RewriteRule ^.*$ - [F,L] # ----------------------------------------------------------------------------------------------- # Ensure that the URL follows the name-format specification required by ProcessWire # ----------------------------------------------------------------------------------------------- RewriteCond %{REQUEST_URI} "^/~?[-_.a-zA-Z0-9/]*$" # ----------------------------------------------------------------------------------------------- # If the request is for a file or directory that physically exists on the server, # then don't give control to ProcessWire, and instead load the file # ----------------------------------------------------------------------------------------------- RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !(favicon\.ico|robots\.txt) # ----------------------------------------------------------------------------------------------- # Optional: Don't send missing image requests to ProcessWire (uncomment below to enable). # This might be helpful if you are launching a new site and lots of images have moved. # It will reduce the load on the server not to have ProcessWire trying to serve those requests. # ----------------------------------------------------------------------------------------------- # RewriteCond %{REQUEST_URI} !\.(gif|jpg|png|ico)$ [NC] # ----------------------------------------------------------------------------------------------- # Pass control to ProcessWire if all the above directives allow us to this point. # For regular VirtualHosts (most installs) # ----------------------------------------------------------------------------------------------- RewriteRule ^(.*)$ index.php?it=$1 [L,QSA] # ----------------------------------------------------------------------------------------------- # If using VirtualDocumentRoot: comment out the one above and use this one instead. # ----------------------------------------------------------------------------------------------- # RewriteRule ^(.*)$ /index.php?it=$1 [L,QSA] </IfModule> ################################################################################################# # END PROCESSWIRE HTACCESS DIRECTIVES ################################################################################################# -
I just tried to install Piwik but when I went to http://www.example.com/piwik, I got the Processwire 404 page. I tested this in other ways, creating different folders and they all return 404s. Here are the lines in .htaccess that should be keeping this from happening: # ----------------------------------------------------------------------------------------------- # If the request is for a file or directory that physically exists on the server, # then don't give control to ProcessWire, and instead load the file # ----------------------------------------------------------------------------------------------- RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !(favicon\.ico|robots\.txt) Where should I start to troubleshoot this? I hesitate to contact the web host, as I know support techs sometimes change things in .htaccess willy-nilly...
-
Ah, thanks. That was some legacy HTML that must have slipped through review.
-
https://www.mlcu.org ...conversion away from a larger CMS. Staff seem to like it so far; it's a migration from a bulkier CMS. Note that this is just the banking service portal and not the actual online banking software...
-
Show highlighted search keywords in search results?
MarcC replied to MarcC's topic in General Support
Thanks, Soma. I didn't know that method existed, but it makes sense. I'm not sure if there is an advantage--which would you pick, and why? -
Show highlighted search keywords in search results?
MarcC replied to MarcC's topic in General Support
That makes sense. I was wondering if str_replace was the best way to do it. Thanks diogo. -
Is there a way to modify the default search.php to show keyword placement in result pages? For example, putting a span with class "highlight" around the relevant terms? I do this with other CMSes but am not sure where to start with the ProcessWire API. Thanks.