Posts by seoMatt

    It wasn't for all videos, just videos I was using a perch block in the main content of a page. Other pages that I used the snippet above but just a regular content template I received no error on save.


    I'm not sure what the problem is but I was receiving the error when I was in my local dev environment. However, the error goes away when I'm on a live testing server. I am wondering if the issue is related to my local development set up? I use wamp64 locally, but when I go on the live server utilizing Linux everything works without a hitch?


    I'm going to mark this as resolved because in the end I don't really care if I get the PHP error while I'm working locally. I will let you know if the problem pops up outside of my local environment.

    It appears that the Youtube Class is kicking up an error. Here is what I'm showing after I save the content https://screenshots.firefox.co…RftXY/testingserver.local


    The weird thing is even though I get an error only in the cms after saving the content but if I load the actual page everything still works properly. I just don't want my client to freak out if they get the message. Below is the content template I'm using


    Code
    1. <iframe class="lazy" data-src="https://www.youtube.com/embed/<perch:content id="video" type="youtube" output="youtubeID">"></iframe>


    Below is my extended Diagnostics


    JordinB if you have a second could you run an incognito window and rerun the page above on your phone. it should now refresh if you switch to landscape mode. It also switches whenever it passes the threshold. I've tried it on multiple devices including my wifes iPhone and everything finally seems to be working properly. Probably need to run it on icognito setting or clear cache to see the changes.


    If you don't have time no worries Jordin.

    JordinB I do utilize media queries. The problem is I tinker around with menus and I found a menu that I really wanted to use for mobile only it was intended to be used for everything as it was a mobile first menu. I combined it with the code of my regular menu. The problem is to get it to work properly I wrote a small piece of script that told the mobile menu to only initialize when less than 768 pixels wide. It works great. The problem is when you start in mobile and then go to screens > than 768 pixels or you start >768 pixels and then drop below it.


    The fix seemed simple which would be to write a script that would force a page refresh once the threshold was crossed one direction or another. I'm not a javascript wizard or anything but my thinking was how hard can this be. It proved to be fairly difficult because I was able to write a script that worked but the problem was on mobile browsers the script caused a refresh periodically even if I didn't clear the 768 pixel threshold. I got annoyed after screwing around with it for 4 hours and decided I didn't really need it and went on with out a fix. This thread is confirmation that I need a fix and probably sooner than later. So that is the backstory.

    haydn! Could you name any smart phones or tablets that adjust between landscape and portrait and cross over above 768 pixels? I don't know of any and can't find any that have this happen? The reason I'm asking is because if it is less than 1/2 of 1% of devices then I might let it slide, but if this is an issue that happens regularly then I might be looking for a solution sooner rather than later.


    And yes you are correct about responsive design I am fully aware of the concept and how it works. At this point the user bounce rate is showing dramatic improvement so I'm not sure it is a problem that needs to be fixed. I have a lot of clients to service and it is on my list of things to look at but it doesn't have my utmost attention at this point.

    Most of the time I hear people switch it’s based on a grudge held against Oracle.

    A grudge is kind of what it feels like to me as well. There is supposedly some performance and feature benefits as well but I have not had anyone confirm that there is a real performance boost and I don't think I really need the additional features. MariaDB has been around awhile and the thought process was there was going to be a divergence between the two making compatibility an issue but it doesn't seem like that has happened yet.


    Thanks Jordin

    drewm My Host gives me a choice but it says once I switch to MariaDB I can't switch back so that is a little bit of a concern. Do you use MySQL or MariaDB for your projects?

    dunc Thanks for the reply. Can I ask you a couple of more questions about your experience?

    • Why did you switch?
    • Have you noticed any performance benefits?
    • Was it a fairly painless transition or was there a learning curve?
    • Do you still use PHPMyAdmin with MariaDB or do you perform most tasks with the command line?

    I appreciate your time. I've been looking into it but prior to doing anything I like to gather info to see if it makes sense for the way I work.

    • Has anyone switched to MariaDB and used it with :burd1: ?
    • I've read about all the differences between the two software packages but I wanted to see if anyone was using it in the wild?
    • I'm not sure if it is worth the switch just gathering some more info right now.

    tclive might I suggest a task runner that you use to compile and minify your code? There are a few different options to choose from but they can minify your PHP, CSS, HTML and Javascript code on the fly.

    JordinB you are 100% correct, but that is why I feel like it is forced by Google because by not having it you get a "not secure" next to your name. Even if that particular website doesn't particularly "Need" it. Ok, I'm off my soapbox for now, because in the end I put an SSL on all my sites anyway so I can be compliant.


    Don't get me wrong I like Google as a search engine and a lot of their products, but I don't like forced coercion. Don't even get me started on my feelings for Google Amp. :/

    lachie_h I get what you are saying, regarding securing of data and that has been a main push for SSL. But if you have small business website with no form or log in do you really believe your site should be required to have an SSL? All of my clients are smaller and aren't Coca Cola so the privacy concerns seem overblown to me. I don't see how many hackers are going to be hanging out on momAndPop.com looking to steal data. Is it good in some circumstances, yes it definitely is. However, making the SSL so important that Google has made it a ranking signal for your site doesn't seem right to me. Just my 2 cents.

    I'm trying to add Webp to my site which I'm doing by using Gulp and htaccess. I'm running into a slight snag. I understand that I can't upload webp files to Perch, but I need to add the file location string to the webp section and exclude the .jpg from the string. Is there a way of doing this in Perch?



    Code
    1. <picture>
    2. <source type="image/webp" media="(min-width: 1921px)" srcset="???????.webp">
    3. <source type="image/jpg" media="(min-width: 1921px)" srcset="<perch:blog type="image" id="mainImage" label="Image" />">
    4. <source type="image/webp" media="(min-width: 1281px) and (max-width: 1920px)" srcset="???????.webp">
    5. <source type="image/jpg" media="(min-width: 1281px) and (max-width: 1920px)" srcset="<perch:blog type="image" id="mainImage" label="Image" />">
    6. <img src="<perch:blog type="image" id="mainImage" label="Image" />" style="width: 100%;">
    7. </picture>

    One of the only things I like about Wordpress is that I can Highlight Link Text and paste a link directly into the body of Text and it automagically becomes a link. Not a deal breaker but it is pretty handy.

    • IMO the SSL obsession is being pushed by Google and is unnecessary for most websites. SSL doesn't matter IMO unless the site is banking/ money related, is ecommerce or is a log in type of setup.
    • I would assume one.com is your webhost? If yes then I'm assuming they probably have Let's Encrypt set up in their cPanel. That is just a guess because I'm not familiar with one.com
    • Cloudflare would take the place of setting it up in your cPanel, but the benefit of Cloudflare IMO is it is a content delivery network which provides speed benefits and gives you an SSL for free. Cloudflare is also free to set up. I've found my Cloudflare sites perform better than my non-Cloudflare sites. You can test your site by using webpagetest.org. Here is an example of my latest project's speed test https://www.webpagetest.org/re…50484c691c69b950d85f50ee/ as you can see it's average load time is between 1.2 & 1.4 seconds which I feel is pretty good.
    • FYI, I don't like your restaurant website I love it, I think it looks pretty bad ass. I'm also a big fan of the about page and separate modals for each of the teachers on the tutor site. Very well done