Posts by Clive Walker

    The Upgrade app is an old one now. It's on this page https://addons.perchcms.com/archive


    However, it was for Perch 1 > 2 as I remember. The Perch 2 -> 3 upgrade doesn't need the Upgrade app.


    I would make a copy of your Perch 1 site and carry out the Upgrade on a testing server. If that's OK, you could update from Perch 2 - 3 in the normal way (without using the Upgrade app).


    If the site is a small one, I would be tempted to start again with a fresh install of Perch 3 myself. It may be less work!

    It sounds like you are not a full admin user. Even though your username may be "admin", the privileges associated with that username on your site do not include the ability to edit Settings (normally a link at top right of Perch control panel). Contact the person who gave you access so that they can change what you can do.


    As for multiple Home pages, perhaps pages that used to exist but no longer there? Do they exist on your site when you "View Page"? Do they point to the same URL or are they different?

    There has been no covering of the forums this week. At least, no replies from Will B and Matt A ? There are many posts where the Perch team has not commented. Obviously, this leaves a very very poor impression. Many people are moving away from Perch. I'd suggest that establishing a much more proactive forum would be a good place to start if you want to attract people to Perch.

    Gareth S It would be great if the Perch team could provide a lot more communication. And the community deserves this!


    You may have plans and your marketing strategy could be underway. I can see that there is much to do.


    However, unless that is communicated more frequently and with a lot more detail, I don't see how you will be able to grow the product and/or maintain the small (and getting smaller) community around it. I hope I'm wrong.


    I remember a time when Perch had a Newsletter, a podcast, a lot of conversations on Twitter, promo materials, marketing at web conferences and an online day-long conference with tutorials. There's none of that now.


    Perhaps your plan is a small community around a "niche" product? Personally, I think Perch has the potential to be a lot more than that. However, if that is your approach, let's hear more about it.

    Here's my final code. It has some additional category and item filtering in it.


    I am using replace in the Perch template to get the correct URL so that's why I have used perch_template.


    Great stuff, that's working, thank you.


    I will add a filter on the categories so that I get some categories and not all:


    I may also template the output although perhaps not really needed.

    Many thanks again.

    Sorry, I meant counting the items that belong to a category. Your example would count the categories I think.


    Perhaps the Stephen Meehan example is misleading. I have a multiple item region with categories (countries). I want to display the categories (countries) with the number of items in each category.

    I want to create item counts for categories as described here Category count?


    Stephen Meehan - did you solve this?


    I can use <perch:content id="perch_item_count" type="hidden"> in a template on the region page but I need to display the counts on my category list on a separate page.


    I think this should be possible using each as follows:


    Code
    1. perch_categories([
    2. //category filtering here
    3. 'each' => function($item) {
    4. // get the count here
    5. return $item;
    6. },
    7. ]);

    Has anyone else done this??

    Hi Gareth S


    I asked my developer colleague for more details and he replied:


    Hi Gareth S - I've checked with my developer colleague and his reply was that the deprecation errors were all on screen so we're not quite sure why you cannot see these. He did the PHP 8 check as a favour to me and others in the Perchology Slack group and doesn't want to do more on this as a freebie.


    So, from his perspective, it's really up to your PHP devs to look into this.


    I've not used Perch with PHP 8 myself so cannot comment on this. Hopefully, my comments in previous post can help your team test this release in their testing process.

    Based on a discussion with a third party Perch developer (who's not on this forum), I believe there are several problems with the Shop update described here Perch V4 (and future) Megathread


    Two problems that he describes:


    1. Part of the code in the perch shop gateway now depends on a "confirm" option in the payment options. I don't have this "confirm" value in my setup

    Code
    1. Notice: Undefined index: confirm in /data/Workspace/some-website/public/perch/addons/apps/perch_shop/lib/gateways/PerchShopGateway_default.class.php on line 55


    2. The return_url has been changed to success_url in the payment options. so if you're just swapping out the shop app, you probably won't redirect to your confirmation page after a successful payment


    His other comments were that:

    Quote

    Neither Perch 3.2 or perch_shop are ready for PHP 8 in any way. Tonnes of deprecation warnings which will fill your logs in no time. Unless you're willing to go through them and correct them I would wait and keep my fingers crossed that the Perch team are going to fix it. In terms of a developer it's really not hard or that bad to correct

    ----


    I hope these problems can be reported back and fixed.