Posts by granttransition

    Hi,


    I am experiencing issues using Office 365 as a SMTP server. I'm aware that the `PERCH_EMAIL_FROM` and `PERCH_EMAIL_USERNAME` need to match, which they do, here is my settings minus sensitive information.


    HTML: SMTP Info
    1. define('PERCH_EMAIL_FROM', '######');
    2. define('PERCH_EMAIL_FROM_NAME', 'The Dudley Arms');
    3. define('PERCH_EMAIL_METHOD', 'smtp');
    4. define('PERCH_EMAIL_HOST', 'smtp.office365.com');
    5. define('PERCH_EMAIL_AUTH', true);
    6. define('PERCH_EMAIL_SECURE', 'tls');
    7. define('PERCH_EMAIL_PORT', 587);
    8. define('PERCH_EMAIL_USERNAME', '######');
    9. define('PERCH_EMAIL_PASSWORD', '######');

    Email settings are correct as I can log into their email.


    Do perch forms use TLS 1.2 or above? I'm lead to believe it won’t work with anything lower – that could possibly be the issue depending how Perch is programmed to connect to SMTP server?


    Thanks

    I am creating a calendar on my Runway site which basically shows dates that are unavailable. I have the php and javascript up and running.


    I am now trying to input the actual dates that are unavailable via runway, so the client can enter the dates within the Runway Dashboard.


    The dates are basically a string within the form value field, and hence I’m trying to think of a way to create the string and insert it within the value. Example value="11/04/2019>21/04/2019,17/05/2019>19/05/2019,27/05/2019,28/06/2019,05/06/2019>13/06/2019". The rest of the code uses this value and display within the calendar.


    I thought I could create a shared region which has a <perch:repeater> for multiple dates. This file looks as such…

    HTML: /content/company_profile/company_profile.html
    1. <perch:group label="Unavailable Dates"> <perch:repeater id="unavailable_dates" label="Please list unavailable dates"> <perch:content id="date_from" type="date" label="Start of unavailability" format="d m Y"> <perch:content id="date_to" type="date" label="End of unavailability" format="d m Y" help="Single days require the same date to be inputted in both Start and End of unavailability"> </perch:repeater></perch:group>

    I then created a template to output the result.

    HTML: /content/company_profile/calendar_dates.html
    1. <perch:content id="date_from" type="date">><perch:content id="date_to" type="date">

    I then have a layout to bring all the elements together.

    The result I am getting currently is:

    HTML
    1. <form>
    2. <input id="enteredDates" type="hidden" name="refDates" value=">,">
    3. </form>

    What am hoping to achieve is:

    HTML
    1. <form>
    2. <input id="enteredDates" type="hidden" name="refDates" value="11/04/2019>21/04/2019,17/05/2019>19/05/2019,27/05/2019,28/06/2019,05/06/2019>13/06/2019">
    3. </form>

    The contents of the value field, filled with a string of dates.


    Thanks in advance

    Hi,


    This is more a suggestion for what I feel would improve the 'Listing all Orders' Page.


    Currently this page has columns for Order, Date, Customer, Total and Status. Under Order is actually the Invoice number and not the Order number. Also when I export orders, the results sheet lists Order Number not Invoice.


    Personally I think it would be really helpful for customers to have both Invoice Number and Order Number listed on this page and in the resulting export.


    Here is a recent question from a client which I feel raises quite a good point.


    "None of the exporting options include Invoice number and I’m trying to think of scenarios where this might be useful. E.g. a customer queries their order and provides their order number. The quickest option would be to look down the list in the backend of the website, however, this is now listed by Invoice number not order number. I think we have 2 options here – including the Invoice number in the exports or listing the orders by their Order ID instead of Invoice. Is this something that could be arranged?"


    I wondered if this is something that could be implemented?

    Hi, thank you for the responses and I now realise I haven't explained the "issue" very well.


    I previously found and read the Filtering article, and it did move me towards an answer. The article has two methods as an example. Show a single category, or display all categories.


    I wish to display a single category on my Collection -> Index page. However, this page changes in accordance with the catSlug clicked. Hence the page dynamically changes.


    I have a URL Pattern set on this page which is strengthening/category/[slug:cat].


    To hopefully illustrate further. In the Blog App, if you have Categories listed, you can click the Category link, and then a Page (Blog Archive) is presented with only those Blog articles that match that category. This is what I am trying to achieve, however, with a collection.


    Apologies for not articulating this very well in the first instance. Fingers crossed, this is now corrected.

    I’m getting very confused (very easy to achieve!) by categories. I have a page which is displaying a category set, this includes links to the contained categories.


    Example, cat set strengthening, this set includes categories such as, Neck, Elbow etc…


    When someone clicks on Neck, I want a page to display all the items that are categorised as Neck. If they click on Elbow, everything categorised as Elbow appears. etc.


    Here is where I am at currently, tried various methods, such as trying to filter, sort and so on without success.


    PHP: Current Template
    1. $template    =    'strengthening/list.html';
    2. perch_collection('Strengthening', [
    3. 'template' => $template,
    4. 'category' => array('strengthening/neck', 'strengthening/shoulder-girdle', 'strengthening/elbow', 'strengthening/wrist-and-hand', 'strengthening/thoracic-spine', 'strengthening/lumber-spine', 'strengthening/gluteals', 'strengthening/hip', 'strengthening/knee', 'strengthening/ankle', 'strengthening/foot', 'strengthening/functional-mobility'),
    5. 'filter' => 'catSlug',
    6. 'match' => 'eq',
    7. ]);


    This template, displays all my categories regardless of filtering and sorting. Hence I think this my issue has something to do with category => array, but what should be in its place?


    Thanks in advance

    I seem to be having issues with a site sending emails. Upon testing under Settings / Email. If I try to send a test, the site times out with a 504 Gateway Time-out error and the following is logged in the server log.

    Code: Server Log
    1. Error 500 POST /perch/core/settings/email/ HTTP/1.0 https://www.###.gov.uk/perch/core/settings/email/ Apache SSL/TLS access
    2. Warning mod_fcgid: read data timeout in 60 seconds, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error
    3. Error Premature end of script headers: index.php, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error
    4. Error 24612#0: *204846 upstream timed out (110: Connection timed out) while reading response header from upstream nginx error

    I also commented out their SMTP settings and tried again. This results in Runway telling me "Invalid address: (setFrom) PERCH_EMAIL_FROM". And the server logs:

    Code: Server Log
    1. Warning mod_fcgid: stderr: PHP Warning: Use of undefined constant PERCH_EMAIL_FROM_NAME - assumed 'PERCH_EMAIL_FROM_NAME' (this will throw an Error in a future version of PHP) in /var/www/vhosts/###.gov.uk/httpdocs/public/perch/core/settings/modes/email.pre.php on line 27, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error
    2. Warning mod_fcgid: stderr: PHP Warning: Use of undefined constant PERCH_EMAIL_FROM - assumed 'PERCH_EMAIL_FROM' (this will throw an Error in a future version of PHP) in /var/www/vhosts/###.gov.uk/httpdocs/public/perch/core/settings/modes/email.pre.php on line 28, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error

    As the error is referencing core files I wondered if something changed upon my recent update to Perch Runway 3.1.4?

    Hi Ryan,


    Sorry yes to clarify.


    From Perch Forms Installation guide. "To get started you need to create and successfully submit a form. You will then be able to configure that form instance in the Control Panel".


    I have created the form, filled and pressed send to try and submit the form to Control Panel. Control Panel isn't displaying the form after I have tried to initiate it on live.


    Works fine on local though?