Muhammad Junaid
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] AMP ErrorsThanks. One other thing I want to know is that Is this the right way of implementing google analytics.
One more thing I want to know Is this the right way of implementing Google Analytics? Using this code in the head
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
and Using this in body
<amp-analytics type="gtag" data-credentials="include"> <script type="application/json"> { "vars" : { "gtag_id": "G-xxxx", "config" : { "<TARGET_ID>": { "groups": "default" } } } } </script> </amp-analytics>
How can the same be done using AMP plugin analytics option?
Thanks. The problem was solved in the latest update.
Forum: Themes and Templates
In reply to: [Neve] AMP IncompatibilityInformation AMP does not allow the use of JS <script> tags unless they are for loading AMP components, which are added automatically by the AMP plugin. For any page to be served as AMP, all invalid script tags must be removed from the page. Instead of custom or third-party JS, please consider using AMP components and functionality such as amp-bind and actions and events (as opposed to JS event handler attributes like onclick). Some custom JS can be added if encapsulated in the amp-script. Learn more about how AMP works. If all invalid markup is “removed” the page will be served as AMP. However, the impact that the removal has on the page must be assessed to determine if the result is acceptable. If any invalid markup is “kept” then the page will not be served as AMP. Error code DISALLOWED_TAG Invalid markup <script> Element name script Parent element form Text content Sources #1 Type: Theme Name: Neve (neve) Function: Neve\Views\Partials\Comments::render_comment_form() Action: neve_do_comment_area (priority 10) Location: inc/views/partials/comments.php:39 #2 Type: Core Name: wp-includes Function: wp_comment_form_unfiltered_html_nonce() Action: comment_form (priority 10) Location: comment-template.php:1363
Forum: Plugins
In reply to: [AMP] AMP ErrorsUpdated:
ampwp-90598f67-1d4d-52cf-ab73-223b6cc31eb6
I have tried my best to fix the errors. Now there is some issue with the theme(Neve). Although it is amp-compatible it still shows errors for
[
{
"url": "https://filectory.com/people-steel-mills-limited-psmltd-jobs-2024-apply-online/",
"type": "is_singular[post]",
"label": "Post",
"amp_url": "https://filectory.com/people-steel-mills-limited-psmltd-jobs-2024-apply-online/amp/",
"validation_errors": [
{
"node_name": "script",
"parent_name": "form",
"code": "DISALLOWED_TAG",
"type": "js_error",
"node_attributes": {
"type": "text/javascript"
},
"text": "\n/* /\n(function(){if(window===window.parent){document.getElementById(SINGLE_QUOTED_STRING).name=SINGLE_QUOTED_STRING;}})();\n/ ]]> */\n",
"node_type": 1,
"sources": [
{
"type": "theme",
"name": "neve",
"file": "inc/views/partials/comments.php",
"line": 39,
"function": "Neve\Views\Partials\Comments::render_comment_form",
"hook": "neve_do_comment_area",
"priority": 10
}
]
}
],
"stale": true
}
]Forum: Plugins
In reply to: [AMP] Which theme is used by your website?Ok Thanks.
There is some problem in
background-image:url
Yes, I have swift theme installed.
Also, my admin area appears broken if the plugin is not in learning mode.
Please check this Screenshot
Just to let you know, the admin area appears to be broken, and this error is displayed in the console. If I disable the Wordfence plugin, the error goes away. Additionally, the Jetpack stats are not working. Only the URL with /wp-admin breaks the admin area. I have sent you a new report by Email.
- This reply was modified 11 months, 3 weeks ago by Muhammad Junaid.
I have tried all these steps before creating this thread, but nothing worked.
Forum: Plugins
In reply to: [Redis Object Cache] Redis is unreachable:Thanks this worked for me.
define('WP_REDIS_CLIENT', 'predis'); define('WP_REDIS_SCHEME', 'tcp'); define('WP_REDIS_HOST', '127.0.0.1'); define('WP_REDIS_PORT', '6379');
Forum: Plugins
In reply to: [Redis Object Cache] Redis is unreachable:Status: Not enabled Client: predis Drop-in: Not installed Disabled: No PhpRedis: 5.3.7 Relay: Not loaded Predis: 2.1.2 Credis: Not loaded PHP Version: 8.0.29 Plugin Version: 2.4.3 Redis Version: Unknown Multisite: No Metrics: Disabled Metrics recorded: 0 Filesystem: Working WP_REDIS_CLIENT: "predis" WP_REDIS_SCHEME: "unix" WP_REDIS_PATH: "/home/filector/.redis/redis.sock" WP_REDIS_PLUGIN_PATH: "/home/filectory.com/public_html/wp-content/plugins/redis-cache" Drop-ins: [ "advanced-cache.php v by " ] Redis is unreachable: Permission denied [unix:/home/filector/.redis/redis.sock]
- This reply was modified 1 year, 4 months ago by Muhammad Junaid.
Forum: Plugins
In reply to: [Redis Object Cache] Redis is unreachable:Can you provide tutorial for it?
Forum: Plugins
In reply to: [Redis Object Cache] Redis is unreachable:lsphp80-redis. This extension is already installed using cyberpanel.