Posts by dosa

    Beautiful. The echo was what I was missing. This newer syntax is something I need to learn more. Been using Perch for over a decade, and I've gotten used to the old ways.


    Anyway, thanks again for your help hussein! 8)

    Hi all. So I have a blog build where I have some social sharing buttons on the post.php page. I have them linked like:


    PHP
    1. <a href="https://twitter.com/home?status=<?php perch_blog_post_field(perch_get('s'), 'postTitle'); ?>%20-%20<?php perch_page_url(); ?>" class="fa fa-twitter"></a>

    This outputs the URL only up to the website.com/blog......it doesn't include the slug to complete the link. How do I do that outside a template?

    Thanks guys. The tester looks fine, shows the results are correct.


    Checked the logs and found this:

    Code
    1. Apache Error
    2. AH01276: Cannot serve directory /var/www/vhosts/testsite.com/migrate.testsite.com/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm,index.shtml) found, and server-generated directory index forbidden by Options directive

    There is an index.php page - it's blank but there.

    Hi all. Having a random issue here - I have a new migration, Perch Runway 3, it was working fine, but after some HTACCESS edits, the home page is no longer showing. All the other pages however, plus the entire CMS are working fine. What did I mess up?


    Here's what I have:


    The HTaccess --- I call the directory /cms, not /perch....so that's all that is different.

    Code
    1. RewriteCond %{REQUEST_URI} !^/cms
    2. RewriteCond %{REQUEST_FILENAME} !-f
    3. RewriteRule .* /cms/core/runway/start.php [L]

    The server itself is new, but is setup to force HTTPS. I have the debug mode on, but not seeing anything flagged. Any ideas?

    Thanks, didn't know there was an approval process.


    So Admin's are adding assets, it's not about privileges, I don't think. But now I see it's under users > roles then click a given role, then the "Buckets" tab to set the default.


    However its not working. I've set it up for the defaults, and still when adding an asset, the default is Admin, not what I set it to. See the screenshots attached.

    I've got a fresh build of Perch 3 Runway running, but I see when uploading media in the Assets, the "Save In Bucket" defaults to "Admin" and not default. How do I switch the default to "default"?


    I imagine it's in the config file, but there seem to be only options for filtering the media. I tried this but it didn't work:

    Code
    1. define('PERCH_DEFAULT_BUCKET','default');

    I simply want all media going in the /resources folder, not admin at all.

    Hi Drew! I've got 2 Runway licenses. One for a site that I use a lot, and when from an old site I don't use anymore.


    Right now, I'm creating multiple staging sites for the license I use, but as you know there are only 3 domains per license.


    So - can I use the old license, rename and edit it to breakout the additional subdomains I want to use for staging? I only need one more, but I figure since the old site license is just sitting there....

    Suddenly the search in the Assets app is showing nothing. Recently our server was updated from mySQL 5.5, to 5.6, then a couple days later they realized it should 5.7 ....could that have messed with the Assets app image search?


    This is on Perch Runway 2.8.29 (we plan to upgrade soon, but didn't expect to search to break)

    I've got an event site and I want to redirect error 404's back to the home page. So I've got this in my HTaccess file:

    Code
    1. ErrorDocument 400 /
    2. ErrorDocument 401 /
    3. ErrorDocument 403 /
    4. ErrorDocument 404 /
    5. ErrorDocument 500 /

    That pushes them back to the root of the site.


    But oddly, I'm seeing an OLD error page. Inside the CMS control panel I'm seeing the Error page region, but even when a new master page, it's still finding the old page.


    Is there some kind of process I'm missing for error pages? I thought the HTaccess would override that.