Posts by dosa

    Hello! I'm told by a security team of my client that "The PHP version is disclosed in the response headers" in the following pages:

    -- /perch/phpinfo.php

    -- /perch/resources/phpinfo.php

    -- /perch/

    I don't even see these files and I'm not sure what they mean by "response headers". Is there something I can edit to remove the PHP version mention in the documents they mentioned?

    I do have access. Here's the most recent lines:

    1. [Wed Aug 26 21:32:58.623283 2020] [core:error] [pid 31784:tid 140652704646912] [client] AH00126: Invalid URI in request GET /%2500../../../../../../etc/passwd%2500 HTTP/1.1
    2. [Wed Aug 26 21:32:59.051633 2020] [proxy_fcgi:error] [pid 29986:tid 140652629112576] [client] AH01071: Got error 'Primary script unknown'

    You think it's the PHP version? Using 7.3.21

    Thanks I did enable it. Tests out correct. Oddly it's only the home page, all the other pages work fine. I can't see the debug since the page doesn't load. THoughts?

    Setting up a mirror copy of a site for staging and I'm getting this error on my last step in testing it. The CMS works fine, but when viewing the pages, this comes up in most browsers: "cannot decode raw data"

    I'm pretty sure I've seen this before but can't remember the fix. hus_hmd - I'm sure you know this :) A bit of help?

    That changes the whole method of how my search works. Isn't there a way to simply add the filter for the date?

    I tried the above, but again the layout is thrown off. When I try to add the correct template or save the template to the right place, I get blank results.

    You helped me do this in this thread: Use The Image In A Blog Post In Search Results

    I just didn't realize the order was backwards.

    Thanks hus_hmd - this worked mostly. The posts are in DESC order by date now finally, but it's not using the template to layout the design. I added the search-result.html template in, but it's not changing anything.

    So how do I use the search-result.html template on these results?

    Hi all - I realized all my blog searches have the order wrong. So I added the sort and sort-order option. But nothing is happening:

    Blog results template:

    So shouldn't the results be showing the post in ascending order by post date?

    Using Perch Runway 3.1.6 with an updated site that I took from 2.8. None of my textarea items are showing the CKeditor though, as if it's missing the editor. I thought it was installed in the core?

    The code calls out the editor:

    1. <perch:blog id="postDescHTML" type="textarea" label="Post" editor="ckeditor" html="true" size="xxl autowidth" required="true" />

    Diagnostics says it's installed (see attached) and but the CKeditor is missing (see attached).


    Hi. Having an odd license issue. I'm moving a site to a new server. I've put up the old files, database, updated the config file with the details, yet I get a "Sorry, your license key isn't valid for this domain."

    There are TWO licenses my client has. One I bought when the project started, the other he bought so he could manage it. So there are 2 licenses with the domain name. Could that be the issue? I went into the old license and changed the staging domain name I setup. But it made no difference.

    Both license keys don't work. Any solutions to this?

    Ah great to know. Thank you thank you thank you for all your help hus_hmd

    For anyone else looking for the final code for all this, here's how to create your blog search:

    Your master page calls the search content, Blog specific, sorted, using a template:

    1. <?php
    2. perch_content_search(perch_get('q'), [
    3. 'apps' => ['PerchBlog'],
    4. 'sort' => 'postDateTime',
    5. 'sort-order' => 'ASC',
    6. 'count' => '9',
    7. 'template'=>'search-result.html',
    8. ]);
    9. ?>

    That template is search-result.html:

    Now the key to connecting everything is in the Layout referenced, blog_search_result.php:

    Which references this last template, post_search_result.html:

    Note the "urlify" links which reuse existing name of the author to make the slug link.