markhamwalrus
Forum Replies Created
-
Hey guys, I found a temporary solution that worked on my end. I added strip slashes on the plugin code and my api connections started to work again.
disclaimer: If you want to try please backup your site, and do it at your own risk, I am not responsible for any problems caused.
Line 151 of class-cf7-api-admin.php:
$wpcf7_api_json_data_template = stripslashes($post->prop( 'json_template' ));
Line 367 of class-cf7-api-admin.php:
$properties['json_template'] = isset( $_POST["json_template"] ) ? stripslashes($_POST["json_template"]) : '';
Line 406 of class-cf7-api-admin.php:
$qs_cf7_data_json_template = stripslashes($WPCF7_ContactForm->prop( 'json_template' ));
- This reply was modified 3 years ago by markhamwalrus.
has anyone solved this yet? I am experiencing this bug as well
Hi @kbat82,
sorry for the delayed reply. Upon checking, it seems like the flex slider isn’t compatible with jquery 3, I tried the jquery that comes with wordpress but no luck… what version of jquery do I have to use? and would that pose any risks?
hi @kbat82 ,
I think it has something to do with my jquery, whenever the slide does not load I get this error:
https://snipboard.io/6iSPBT.jpg
I hope this helps.
I also tried renaming my jquery alias from
wp_deregister_script('jquery'); wp_enqueue_script('jquery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js', '', '3.4.1', false);
to
wp_deregister_script('jquery'); wp_enqueue_script('jquery-new', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js', '', '3.4.1', false);
and the image always show but it doesn’t show the arrows and it doesn’t slide because the dependency befor was (jquery) instead of (jquery-new)
I also tried to disable the enqueued javascript one by one, and the problem became more prevalent. As soon as I enable it again then the problem becomes random again.
- This reply was modified 5 years, 1 month ago by markhamwalrus.
Hi @kbat82,
I’ve disabled all my plugins and reactivated it one by one but still, the issue persists.
Hello @kbat82,
Thank you for your help, I will try that. Also, if it helps I’ll share my plugin settings
https://prnt.sc/pee82b
https://prnt.sc/pee7pnand I also have a custom hook on my functions.php
function metaslider_flex_params($options, $slider_id) { $options['pausePlay'] = "true"; $options['pauseText'] = "'Pause'"; $options['playText'] = "'Play'"; $options['controlsContainer'] = "'.slider__controls'"; return $options; } add_filter('metaslider_flex_slider_parameters', 'metaslider_flex_params', 10, 2);
Hi @kbat82 thank you for your prompt reply, I was using autoptimize plugin to do my lazyload, but even it’s deactivated, the problem still appears randomly. I’m using ios 12 on iphone 7 and iphone 8
here is the test page for it: https://woodbine-dev.ideatheorem.com/test-slider/