jpmolla
Forum Replies Created
-
Forum: Plugins
In reply to: [CRM Salesforce LearnDash Integration] Fatal Error when opening settingsSame error with one more precision :
Uncaught Error: Class 'Twig\TwigTest' not found in /var/www/html/wp-content/plugins/crm-salesforce-learndash-integration/vendor/twig/twig/src/Extension/CoreExtension.php:265
So I have modified the function on line 265 with “return [];” instead of all the tests that can’t be done because of the unfound function and it passed over it successfully
I ended up with :
public function getTests() { return []; // Added to bypass those tests return [ new TwigTest('even', null, ['node_class' => EvenTest::class]), new TwigTest('odd', null, ['node_class' => OddTest::class]), new TwigTest('defined', null, ['node_class' => DefinedTest::class]), new TwigTest('same as', null, ['node_class' => SameasTest::class]), new TwigTest('none', null, ['node_class' => NullTest::class]), ...
I suppose a future update will override it but also fix it
Forum: Plugins
In reply to: [VéritéCo Timeline] [Plugin: VéritéCo Timeline] PARSING DATA ERRORWell I had exactly the same problem. I am not pleased of replacing the JS files directly because I am not sure that tomorrow things will not change again in the Google API. So, why not using just the iframe statement without the wordpress extension ? As soon as something change they will update their extension, right ?
Here is what I have done and it works very well for me : I uninstall the VéritéCo extension and implement a shortcode function to mimic the extension. Following is the code I have add in my functions.php file// Shortcode to use with the iframe of VéritéCo Timeline function timeline_shortcode( $atts, $content = null ) { extract( shortcode_atts( array( 'src' => '', 'font' => 'Bevan-PotanoSans', 'lang' => 'en', 'width' => '100%', 'height' => '650', ), $atts ) ); return " <iframe src='" . $src . "&font=" . $font . "&maptype=toner&lang=" . $lang . "' width='" . $width . "' height='" . $height . "' frameborder='0'></iframe> "; } add_shortcode( 'timeline', 'timeline_shortcode' );
Then, I use it like as usually :
[timeline font='BreeSerif-OpenSans' lang='fr' src='https://embed.verite.co/timeline/?source=0Agl_Dv6iEbDadHdKcHlHcTB5bzhvbF9iTWwyMmJHdkE' ]
Not all the cases are included in the function but that is sufficient for my needs. If someone improves this function, maybe can you share it ? ??