prodport
Forum Replies Created
-
Forum: Plugins
In reply to: [Code Snippets] Plugin Broke 5.03Shea,
I have a similar scenario. I’ve got a local install on my PC. When I go view my home page, I have this error:
Warning: Use of undefined constant CHILD_URL – assumed ‘CHILD_URL’ (this will throw an Error in a future version of PHP) in /app/public/wp-content/plugins/code-snippets/php/snippet-ops.php(361) : eval()’d code on line 4
I see your code above but not sure where to implement it.
I’m wondering if it’s a false positive. It seems the file is used lots of places. I see the file in GitHub with the same reference to that problem URL.
https://github.com/serbanghita/Mobile-Detect/blob/master/Mobile_Detect.php
But, it also looks like it’s a comment. It doesn’t look to me that the file goes to that website in question.
Hi,
Sorry if I wasnt’ clear in my earlier message, but I don’t use this plugin. And, I was able to get it to work when I stopped using “defer”
On my Google Search Console, if I click through to a URL and the Issue Details panel, I can see a script reference in pink.
I’ve just grabbed those offending scripts and plugged in the whole URL. For example, on my plugin, there is a dedicated box to have a script run ASYNC. So, I entered the full path.
https://cdn.ampproject.org/v0.js
Your plugin probably has some settings and different pages use different AMP scripts. I’ve pulled out 4 for my site so far. I don’t think minification is the issue. It wasn’t for me.
If you’re not sure the setting, I would contact the Velocity plugin author or test on a staging site if you have one.
Just a follow up. My staging site showed no errors so I figured it was a plugin setting.
I had a plugin called “Async JavaScript” that my host had installed. I changed is so the AMP scripts that were showing as “defer” were changed to “async”. That cleared the issue for me and the pages validate.
But the Google test page I referenced above seems to hold on to a cached version. I had to go back to Google Search Console, click into the page with issues and then click “TEST LIVE VERSION” at the bottom right. It’s on that Issue Detail panel.
I’m having the same issue. For me, it looks the issue is I’m deferring the JS.
I used the testing tool at https://search.google.com/test/amp
If I plug your page in this tool, I also see the error about “defer” Line 31.
I’m not using the same AMP plugin you are, but I do have some plugins that defer scripts. I’m thinking that may be my issue.
Forum: Plugins
In reply to: [Cloudflare] HTTP/2 Server Push – File Selection & Web SettingsThanks John.
I appreciate the fast reply.
Glad to know Rocket Loader can work with the plugin in my case. I don’t recall having an issue before. I just have to remember to use “Disable cache” on Chrome Dev tools so I can see the “push”
This whole performance area can get so crazy when you have multiple plugins that may overlap etc (SiteGround’s caching plugin, WP Rocket, CloudFlare). And I also have to recognize that you need to design for us “masses”.
It sounds like…I’ll have to manually create my <links> then. I’m not sure I would get enough gain.
If you need feature requests, it would be great if you allowed end-users to submit files via some interface. Maybe like the way WP Rocket allows me to put in entries for DNS pre-fetch.
In the meantime, I need to see if my host uses fast-cgi. My header is around 3.3k so maybe there’s a way to get another file or two.
Thanks for the clarification
Forum: Plugins
In reply to: [Media Library Assistant] Warning: Parameter 2 to MLAQueryIs there an easy way to do a “stack trace”? I’m happy to try to do one for you as it seems the most efficient way. This is on a staging server if that helps.