Posts by Hoops78

    I'm currently in the process of getting php8 versions. I can't remember of the top of my head which ones aren't. A while ago I tested a few sites my upping the php in MAMP and it threw up deprecation warnings. The apps haven't been updated for quite a while, so I'm thinking they are all going to need looking at. The plan is to get a full set, so if I need to use any in the future I can.

    I know you can't give any timescales, but are making the apps php8 compatible being worked on?


    A client has forwarded an email from their hosting saying they are upgrading to php8 from the first week of November.


    At the moment I'm thinking I'm going to hire a third party developer to create me a set of php8 compatible apps. This will leave me with a set I'll no longer be able to update and also out-of-pocket. But if this is the only option I'm prepared to do this.


    Let me know either way.

    Hi


    I've built a site on my development server and just uploaded it to the clients cheap shared hosting with one.com and I'm seeing the following errors;


    Warning: Cannot modify header information - headers already sent by (output started at /customers/2/7/b/cosmic-people.co.uk/httpd.www/about-us/our-promise-to-you.php:1) in /customers/2/7/b/cosmic-people.co.uk/httpd.www/perch/core/lib/PerchUtil.class.php on line 1399 Warning: Cannot modify header information - headers already sent by (output started at /customers/2/7/b/cosmic-people.co.uk/httpd.www/about-us/our-promise-to-you.php:1) in /customers/2/7/b/cosmic-people.co.uk/httpd.www/perch/core/lib/PerchUtil.class.php on line 1400 Warning: Cannot modify header information - headers already sent by (output started at /customers/2/7/b/cosmic-people.co.uk/httpd.www/about-us/our-promise-to-you.php:1) in /customers/2/7/b/cosmic-people.co.uk/httpd.www/perch/core/lib/PerchUtil.class.php on line 1401 Warning: Cannot modify header information - headers already sent by (output started at /customers/2/7/b/cosmic-people.co.uk/httpd.www/about-us/our-promise-to-you.php:1) in /customers/2/7/b/cosmic-people.co.uk/httpd.www/perch/core/lib/PerchUtil.class.php on line 1409


    I remember ages ago I had a similar issue and it was white space at the top of the index file, but this time this isn't the case, so I'm not sure what to try? It mentions /about-us/our-promise-to-you.php but that file doesn't have any white space at the top either;


    https://www.dropbox.com/s/uoac…%20at%2016.17.29.png?dl=0

    I've got file upload in my form working OK and it attaches to the admin email. I'm using this in my form;


    Code
    1. <div>
    2. <p>Upload your CV or job Spec below (pdf or doc)</p>
    3. <perch:input type="file" id="cv" accept="pdf doc">
    4. </div>

    The admin email gets the file, but I'd also like a mention in the customer email. Not the actual file, just the filename of the document they have uploaded. I added this to the email template;


    Code
    1. <tr>
    2. <th>Uploaded file</th>
    3. <td><perch:email id="cv" /></td>
    4. </tr>

    But nothing is outputted. How do I get the filename of the file they uploaded. For example mycv.doc

    Thanks Hussein


    Changing the tags to perch_content_custom() now outputs the content, but if I go back to my original issue of changing the master, it doesn't create the regions.


    Is there a way to create the regions and output the content. Or do I need to get my client to change masters while the tags are perch_content_create() then change them to perch_content_custom() when they want to add content?

    Coming back to this. The client is adding content (which I can see in the admin), but its not showing on the page.


    To re-cap, I'm using these calls for the content;


    PHP
    1. <?php
    2. perch_content_create('CatTitle', array(
    3. 'template' => 'text.html'
    4. ));
    5. ?><img src="https://community.perchcms.com/attachment/188-screenshot-2020-04-16-at-15-47-44-png/?thumbnail=1" class="woltlabAttachment" data-attachment-id="188" id="wcfImgAttachment0">

    And there is content in the region (see attachment).


    But can't work out why the content isn't showing on the page?

    This worked for what I needed. So I changed the Perch calls to;


    Code
    1. perch_content_custom('myRegion', array(
    2. 'template' => 'my_template.html',
    3. ));

    and removed the copy from Master bit in the Master settings.


    Thanks for your help.

    Ah, that could be a way around it. Currently, I'm using the method of;


    <?php perch_content('CatTitle'); ?>


    Then setting the regions to copy from another master.


    Instead, if I change the regions on the new master to this method;


    Code
    1. perch_content_custom('myRegion', array(
    2. 'template' => 'my_template.html',
    3. ));

    that should enable me to achieve the results I'm after?

    OK. I didn’t know if the new regions should be assigned as per the new master rather than being NEW.


    If this is not the case, do you think deleting the page and re-adding with the new master would be the best way?

    Hi


    In Runway if I change a page to have a different master, should it assign the regions that the master is set to? Or have I done something wrong as the new regions are coming in as new.


    Should I delete the page and re-add it with the desired master to avoid this?


    Kind Regards

    Wayne

    Hi


    Regular Perch


    I'm not sure if I've missed a setting, but when I create a subpage and check the location url in the location tab, the page is sitting in the root of the website rather than in the subfolder. This then gives the incorrect url for the template path.


    Here are some screenshots of the page settings;


    This is the parent page;



    and this is the child page;



    Which results in a path of;


    PHP
    1. <?php include(str_replace('/', DIRECTORY_SEPARATOR, 'perch/templates/pages/service_landing_page.php')); ?>

    Rather than


    PHP
    1. <?php include(str_replace('/', DIRECTORY_SEPARATOR, '../perch/templates/pages/service_landing_page.php')); ?>

    I've tried adding the /specialist-sensors/ manually in the location tab with move to this location ticked. Which moves the file, but doesn't update the template url.


    It's a site I did a few years back and if I add a subpage to a page I originally did it works as expected, so didn't know if I'd missed a step when setting up the new pages?


    Regards

    Wayne