alteropax
Forum Replies Created
-
Forum: Plugins
In reply to: [Reviews and Rating – Google Reviews] Basic Shortcode Rendering NothingOops, good catch, but unfortunately I am still not seeing anything. Any Ideas? I can provide you with access if it might help.
Forum: Plugins
In reply to: [Reviews and Rating – Google Reviews] Basic Shortcode Rendering NothingSorry to revive this thread, but this problem is happening on our website again. I am now loading the shortcode via PHP, but it is still not returning anything.
<?php /** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site will use a * different template. * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ get_header(); ?> <div id="container"> <div id="content" role="main"> <?php do_shortcode("[reviews_rating]") ?> <?php /* Run the loop to output the page. * If you want to overload this in a child theme then include a file * called loop-page.php and that will be used instead. */ get_template_part( 'loop', 'page' ); ?> </div><!-- #content --> </div><!-- #container --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Forum: Plugins
In reply to: [Reviews and Rating – Google Reviews] Basic Shortcode Rendering Nothing@designextreme Its a bit odd, but I haven’t changed anything with the website, and it is now displaying again. My best guess is something was going wrong with the API requests for a bit?
Forum: Plugins
In reply to: [Reviews and Rating – Google Reviews] Basic Shortcode Rendering Nothing@designextreme This website is still using the classic editor and the exact page content is:
<div id="reviewThing">[reviews_rating errors=true]</div> [reviews_rating_link reviews_link]Our Reviews on Google[/reviews_rating_link]
The second shortcode from the plugin has been working as expected, whereas the basic shortcode (now the errors version requested) renders no output at all that I can detect.
Visually it should be rendered above the “Our Reviews on Google” link from the second shortcode, and in the HTML it should be inside the div with the id “reviewThing”, which was added before opening the ticket to verify that the shortcode was not rendering any content.
The plugin is active, and states that it has retrieved data. The JSON object on the retrieved Data tab has a status of “OK” and 5 “reviews” objects.
The newest version is also working for me across our network of sites. @haseeb0001 Thank you for the assistance.
I am still facing this issue in production with the 2.2.3 version that is currently available. The linked version provided in the reply above is working, but it seems to only be version 2.1.10.
The PHP Fatal Error I am getting in PHP 8 is the same as the OP:[30-Dec-2022 20:10:16 UTC] PHP Fatal error: Declaration of Http\Client\Curl\Client::sendRequest(Psr\Http\Message\RequestInterface $request) must be compatible with Psr\Http\Client\ClientInterface::sendRequest(Psr\Http\Message\RequestInterface $request): Psr\Http\Message\ResponseInterface in /home/vancouverhorse/public_html/wp-content/plugins/ameliabooking/vendor/php-http/curl-client/src/Client.php on line 111