Jump to content

Lance O.

Members
  • Posts

    371
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Lance O.

  1. This is a great module and a simple solution to providing contextual help for my clients. Thank you, Soma!
  2. I tried resetting the password, but the same error occurs. I'm considering downgrading to 2.3.0.
  3. Is this as easy as replacing core files with version 2.3.0 files, or is modification to the 2.4.0 database needed?
  4. Is it possible to downgrade ProcessWire from 2.4.0 to 2.3.0?
  5. @Pete Yes, the installer tells you which PHP version you need, but that's only if you are using the installer. I was exporting/importing the database from a development server to a production server. The site ran fine until I tried to log into the admin and received a "Unable to generate password hash" error.
  6. Any reason why the requirements page hasn't been updated? That's the page that I send to my clients and their hosting companies. How do I explain to my hosting company contact that I've been providing them with the wrong information and they have wasted their time this week trying to get this site running correctly? Grrrrr.
  7. The ProcessWire requirements page states that ProcessWire requires PHP version 5.2.4 or greater. http://processwire.com/about/requirements/ Yet when I just tried to install ProcessWire 2.4.0, I receive the following error: ProcessWire requires PHP version 5.3.8 or newer. You are running PHP 5.3.3-7+squeeze19" I'm installing on a host I've never used before, and I'm not sure what "squeeze19" is. Why is ProcessWire giving me this error? What are the actual PHP version requirements?
  8. Thank you Soma, adrian, and horst! This seems to work: foreach ( $results as $item ) { if ( $item->matches("template=resource-category|resource-subcategory|resource-file|resource-link") ) { foreach ( $item->parents() as $parent ) { if ( $parent->template->filenameExists() ) { $url = $parent->url; $title = $parent->title; } } } else { $url = $item->url; $title = $item->title; } echo "<a href='{$url}'>{$title}</a>"; }
  9. Is there a way to find a page's closest parent that has an uploaded template file if I don't know what that template file name is?
  10. A site I am currently developing has a need for multiple levels of container pages, named as "Category" and "Subcategory" below. Pages that include files can be added as children to both the "Category" and "Subcategory" container pages. Pages named "Page" and "Subpage" display the content of child "Category", "Subcategory", and "File" pages. The "Category", "Subcategory", and "File" pages do not use a an uploaded template, so viewing those pages in a browser will produce a 404 error. - Home -- Page 1 --- Category 1 ---- File 1 ---- File 2 ---- Subcategory 1 ---- File 3 ---- File 4 -- Page 2 --- Subpage 1 ---- Category 2 ----- File 5 ----- File 6 ----- Subcategory 2 ------ File 7 ------ File 8 My question is, when a user performs a find on the site and finds one of the "Category", "Subcategory", or "File" pages, how I do I display the found page's closest parent that uses an uploaded template? For example, in the file structure above, how can I display the "Page 1" page when a user searches for "File 1" or "File 3"? How can I display "Subpage 1" when a user searches for "File 5" or "File 7"?
  11. Removed my reply and moved it into a new post.
  12. When you are in the modal and can select an alignment, first select something other than the No Alignment option. Then, immediately change your selection to No Alignment and insert the image. The No Alignment class appears in the code. So it looks like it only appears when the alignment option is changed to No Alignment from one of the other options.
  13. Ah, I just found the solution on the PW forum! As discovered by Sylvio, Media Temple Grid has PHP by default as FastCGI and this doesn't go well with PW. Changing it to CGI (stable) solved the problem. http://processwire.com/talk/topic/4309-no-css-rendering-in-admin/#entry42209
  14. I just took a look using Firebug and while some JavaScript errors are reported, they are in relation to the missing header and footer. So unfortunately, this isn't providing me any insight, but thanks for the suggestion.
  15. I've just installed PW on Media Temple Grid server using an exported site profile, and for some odd reason, some of the pages in the Admin are not loading the header and footer into the page. This appears to be random. For instance, I just verified that the /processwire/access/ page was loading properly, but after visiting it again, it only loads the following: <dl class='nav'> <dt><a class='label' href='/processwire/access/users/'>Users</a></dt> <dd>Manage system users</dd> <dt><a class='label' href='/processwire/access/roles/'>Roles</a></dt> <dd>Manage user roles and what permissions are attached</dd> <dt><a class='label' href='/processwire/access/permissions/'>Permissions</a></dt> <dd>Manage system permissions</dd> </dl> And then after refreshing the page, it loads properly with header and footer in place. However, any page that I edit displays the Admin page without the header and footer. I installed the site using a fresh copy of PW, substituting only modules, templates, and install folders. In fact, I've done this twice, with the same results. At first I thought it might be a permissions problem, but it doesn't seem like that would produce random results. Anyone have any ideas? I couldn't find reference to this problem in the forums.
  16. If I upload an image to a multiple images field, then add the image to the body field of the same page and select No alignment, the following class is assigned to the image ("No Alignment"): <p><img class="No Alignment" src="/site/assets/files/1001/image.png" alt="Example" /></p> This seems like a bug since it registers as two separate classes ("No" and "Alignment"). Can this be changed to a single (lowercase) class that doesn't include a space (or not included altogether, since it assumes the image is inline)?
  17. Facepalm. "template" didn't show up in the You may enter one or more of these fields listing, so I didn't even try, but it is exactly what I needed.
  18. To clarify, viewing the list of pages within PW typically looks like this: About Us 3 | edit | view | new | move Our Board edit | view | new | move Our Leadership edit | view | new | move Our Partners edit | view | new | move I'd like the ability to add the template name next to the page title, using the List of fields to display in the admin Page List from the Advanced tab of template. About Us (template-a) 3 | edit | view | new | move Our Board (template-b) edit | view | new | move Our Leadership (template-c) edit | view | new | move Our Partners (template-d) edit | view | new | move
  19. It would be great to have the ability to add the template name in the list of fields to display in the admin Page List. This would be helpful on sites where there are a lot of pages and templates.
  20. Ah jeez. I'll work with the host on a resolution. Thanks for your quick response, teppo!
  21. I'm getting the following error when installing PW on a client's server. It appears after I've entered admin account information. Unfortunately, my client's hosting customer support is worthless and hasn't been able to help. Does anyone have any idea why this error is occurring? ERROR: MCRYPT_CREATE_IV(): COULD NOT GATHER SUFFICIENT RANDOM DATA (LINE 161 OF C:\HOSTINGSPACES\CPVINCCO\RETHINKPAINT.COM\WWWROOT\WIRE\CORE\PASSWORD.PHP) THIS ERROR MESSAGE WAS SHOWN BECAUSE /INSTALL.PHP STILL EXISTS. ERROR HAS BEEN LOGGED.
  22. Magic! Discovering a hidden gem like this always makes my day. Thanks, diogo!
×
×
  • Create New...