vagu71
Forum Replies Created
-
Forum: Plugins
In reply to: [wp-forecast] Change Weather IconsHere’s what I did:
1. Installed an older version of the plugin.
2. Replaced the icon files with new ones.
3. Updated the plugin with the new version.The new icon files which were added are now gone. How to make this change persistent?
Where are the following files being called in the plugin:
PHPMailer.php
SMTP.php
Exception.phpUnable to locate these in the easy-wp-smtp.php file. There is code that checks if the wordpress version is = 5.4.99 and then calls then down below from the wp include directory. The wordpress version is now 5.5. The plugin code needs an update. You need to be checking if the version is > 5.4.99 and then call these files from wp include. In short, the below code needs updation:
if ( version_compare( $wp_version, '5.4.99' ) > 0 ) { require_once ABSPATH . WPINC . '/PHPMailer/PHPMailer.php'; require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php'; $mail = new PHPMailer( true ); } else { require_once ABSPATH . WPINC . '/class-phpmailer.php'; $mail = new \PHPMailer( true ); }
When the following code is added right at the top of the easy-wp-smtp.php file in the plugin folder, the plugin starts working:
require_once '[complete-path]/wp-includes/PHPMailer/PHPMailer.php'; require_once '[complete-path]/wp-includes/PHPMailer/SMTP.php'; require_once '[complete-path]/wp-includes/PHPMailer/Exception.php';
Without this code, the error that is received is as follows:
Fatal error: Class ‘PHPMailer\PHPMailer\Exception’ not found in [server-path]/wp-includes/PHPMailer/PHPMailer.php on line 1859
There has been a critical error on your website. Please check your site admin email inbox for instructions.
- This reply was modified 4 years, 3 months ago by vagu71.
Forum: Plugins
In reply to: [WooCommerce] Add tooltips to variation options?The code for these is inside the file variable.php inside templates/single-product/add-to-cart/. However, they’re being generated in a foreach attribute loop and I’m unable to find a way to add tooltips next to each attribute label.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Duplicate Scripts@ahmedkaludi, by when do you reckon you’ll be adding this to the plugin code? This causes issues when the menu is implemented in the form of an accordion. On pages where there is an accordion in the content, duplicate script errors show up.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Duplicate Scriptsthanks @ahmedkaludi!
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Duplicate AMP URLs@ahmedkaludi is there an email I can mail you the link on? Would not want to share the link here on a public forum.
We searched the entire website code and database manually, but were not able to find “/?amp=”.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Duplicate AMP URLsI checked the plugin code in greater detail. /?amp=1 appears to be ok and expected.
What concerns me is what could be causing links like “/?amp=” to show up?
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Duplicate AMP URLsHere you go: https://ibb.co/Rvy1rB5. Let me know if you’re able to access it. This is a screenshot from inside of Google Analytics.
I’m thinking, when the user opens the careers page on their mobile, it loads the url careers/?amp.
So what exactly could be pulling up the other two links (/?amp= and /?amp=1)?
Thanks Ahmed!
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] UTM Parameters Getting LostMy issue is exactly the same as the one explained on https://www.ads-software.com/support/topic/redirecting-to-amp-on-mobile-is-deleting-utm-parameters-from-link/.
Specifically, I face the exact same error as @kapil3790 which he explains on the link above.
“So, basically what I want is if a url suppose https://www.xyz.com/test-page?utm_source=facebook&utm_medium=referrel is redirected to amp version then it should come as https://www.xyz.com/test-page/amp?utm_source=facebook&utm_medium=referrel rather than simple https://www.xyz.com/test-page/?amp.”
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] UTM Parameters Getting Lost@magazine3, @ahmedkaludi, is there an email id I may send you the url on?
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] UTM Parameters Getting LostIs there a knowledgebase article that explains how to achieve it? I’m checking this on multiple sites we’re using your plugin on and when a url with UTM parameters is pulled up on a mobile device, it scraps the UTM parameters and just has amp at the end of the url.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Duplicate AMP URLs“Change End Point to ?amp” has been set to yes in the backend.
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] After Update to Versionthanks Ahmed!
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] amp_loop_template() OverrideThere is a file in loop.php (which is inside the folder amp-theme-framework-master) that has the following code:
<?php while(amp_loop('start')): ?> <div class="loop-post"> <?php amp_loop_image(); ?> <?php amp_loop_category(); ?> <?php amp_loop_title(); ?> <?php amp_loop_excerpt(); ?> <?php amp_loop_date(); ?> </div> <?php endwhile; amp_loop('end'); ?> <?php amp_pagination(); ?>
It appears that this line of code amp_loop_image() is being used to fetch the loop image. Is there a way to edit the code for this function and have it load the full sized image and not the cropped one? And also keep the changes persistent on plugin update.