Jump to content

Lance O.

Members
  • Posts

    371
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Lance O.

  1. @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.

  2. 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.

  3. 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?

    • Like 1
  4. 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>";
    }
     
  5. 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"?

  6. 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.

  7. 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)?

  8. 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

  9. 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.

×
×
  • Create New...