bhagp
Forum Replies Created
-
Forum: Plugins
In reply to: [Quick Page/Post Redirect Plugin] Is there a limit?There is no limit. But queries are written very poorly.
That has to be improved.
Like one of the sample change mentioned here:
in file: page_post_redirect_plugin.php
in function: get_main_arrayOriginal Query:
$theqsl = “SELECT * FROM $wpdb->postmeta a, $wpdb->posts b WHERE a.post_id= b.IDAND b.post_status!= ‘trash’ AND ( a.meta_key= ‘_pprredirect_active’ OR a.meta_key= ‘_pprredirect_rewritelink’ OR a.meta_key= ‘_pprredirect_newwindow’ OR a.meta_key= ‘_pprredirect_relnofollow’ OR a.meta_key= ‘_pprredirect_type’ OR a.meta_key= ‘_pprredirect_url’) ORDE R BY a.post_idASC;”;Needs to be changed to this:
$theqsl = “SELECT a.*, b.ID, b.post_status FROM $wpdb->postmeta a, $wpdb->posts b WHERE a.post_id= b.IDAND b.post_status!= ‘trash’ AND ( a.meta_key= ‘_pprredirect _active’ OR a.meta_key= ‘_pprredirect_rewritelink’ OR a.meta_key= ‘_pprredirect_newwindow’ OR a.meta_key= ‘_pprredirect_relnofollow’ OR a.meta_key= ‘_pprredirect_type’ OR a.meta_key= ‘_pprredirect_url’) ORDER BY a.post_idASC;”;There is one more place where it is getting huge number of rows (not sure if that can be reduced by changing this query):
line 651:
$finalSQL = “SELECT * FROM {$wpdb->prefix}postmeta asm1WHERE {$whereSQL} m1.post_id IN ( SELECT post_id FROM {$wpdb->prefix}postmeta asmWHERE 1 = 1 AND m.meta_key =’_ppr redirect_active’ AND m.meta_value = ‘1’);”;@anadnet Could you please do the above modifications. It will greatly enhance this plugin.
Forum: Fixing WordPress
In reply to: 404 on clicking “All Posts” in dashboardTried 1 and 2 already, it did not work.
For 3, problem is not immediately reproducible, it takes a week for problem to surface..so if I have 20 plugins..it will take 20 weeks and I have to live without a plugin for one whole week minimum.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Error Shortcode Visual ComposerIt is working fine now. No issues with latest update.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Error Shortcode Visual ComposerThis has crippled my whole AMP support.
I was at 0.9. I was looking solution for random tag AMP pages getting indexed. I found that you have fixed in 0.9.2.1.
So I updated and it stopped working because of above mentioned issue. I could not find zip for 0.9.2.1 else I could have used that. As of now, I have reverted to 0.9 (which was saved with me)
Thanks @ahmedkaludi,
Would be eagerly waiting for your next release. More than 70% of my posts are being errored out for this reason.
Hi @ahmedkaludi,
I am also facing similar errors:
The attribute ‘date’ may not appear in tag ‘time’.
Here is the validator page:
https://validator.ampproject.org/#url=https%3A%2F%2Fpropstory.com%2Fbrigade-lakefront-whitefield-breath-fresh-air%2Famp%2F&filter=DISALLOWED_HTMLCould you please suggest me what can be done.
To me, it looks like “theme” is adding this code but I doubt if they are doing it wrong.Forum: Plugins
In reply to: [AMP] Accelerated Mobile Pages > Prohibited or invalid use of HTML TagI am also facing similar issues:
Issue Pages with issues
1 Prohibited or invalid use of HTML Tag 381
2 AMP markup missing or incorrect 4
3 Prohibited HTML Tag with AMP equivalent 4
4 Invalid CSS stylesheet 4
5 User-authored JavaScript found on page 4
6 Info: Missing structured data element 4On digging further into 1st error, here is what I see:
The attribute ‘date’ may not appear in tag ‘time’.AMP URL: http://indianrealtybytes.com/sobha-international-city-layout-of-presidential-villas/amp/
Last detected: 11/1/16
And verification URL is: https://validator.ampproject.org/#url=http%3A%2F%2Findianrealtybytes.com%2Fsobha-international-city-layout-of-presidential-villas%2Famp%2F&filter=DISALLOWED_HTMLLet me know how it can be fixed.