Monthly Archive: January 2022

WPML + Contact Form 7 + Secondary language BUG 0

WPML + Contact Form 7 + Secondary language BUG

Problem     Solution (1) Enable AJAX support in WPML (2) Use in-url subdirectories like/fr instead of query strings in WPML   Solutions not working https://wpml.org/de/forums/topic/get_rest_url-returns-wrong-url/ 1 add_filter( 'rest_url', 'wpml_permalink_filter' ); Adding this in function.php did...

syntax error, unexpected 'use' (T_USE), expecting '{' 0

syntax error, unexpected 'use' (T_USE), expecting '{'

Problem syntax error, unexpected 'use' (T_USE), expecting '{' Code function fetchSumWithExplain($schemaTableName, $tag) use ($app) { $generateExplain = function ($sql, $header) use ($app) { $query = $app->db->prepare($sql); $query->execute(); $sqlData = $query->fetchAll(PDO::FETCH_ASSOC); $retVal = array_merge(array($header),$sqlData); return...

Fix hackrf_open() failed: HackRF not found (-5) 0

Fix hackrf_open() failed: HackRF not found (-5)

pi@raspberrypi:~ $ hackrf_spiflash -w ~/Downloads/hackrf-2021.03.1/firmware-bin/hackrf_one_usb.bin File size 35444 bytes. hackrf_open() failed: HackRF not found (-5) Solution Use sudo before the command: pi@raspberrypi:~ $ sudo hackrf_spiflash -w ~/Downloads/hackrf-2021.03.1/firmware-bin/hackrf_one_usb.bin File size 35444 bytes. Erasing SPI flash....