Invoicing plugin Fatal Error
Mots-clés : Invoicing plugin - Fatal error: Uncaught Error
December 4, 2018 à 11:58 am #383012
Hello, I recently purchased the Invoicing plugin. It has been installed and activated correctly. when I click on the “Pay” button it takes me to slug: payments-checkout and returns the following error:
Fatal error: Uncaught Error: Call to a member function get_id() on string in /homepages/20/d762041899/htdocs/clickandbuilds/GestoriaRomero/wp-content/plugins/customer-area/src/php/core-addons/payments-checkout/templates/payments-checkout-gateways.template.php:55 Stack trace: #0 /homepages/20/d762041899/htdocs/clickandbuilds/GestoriaRomero/wp-content/plugins/customer-area/src/php/core-addons/payments-checkout/templates/payments-checkout.template.php(49): include() #1 /homepages/20/d762041899/htdocs/clickandbuilds/GestoriaRomero/wp-content/plugins/customer-area/src/php/core-addons/payments-checkout/payments-checkout-addon.class.php(137): include(‘/homepages/20/d…’) #2 /homepages/20/d762041899/htdocs/clickandbuilds/GestoriaRomero/wp-content/plugins/customer-area/src/php/core-classes/templates/customer-page.template.php(61): CUAR_PaymentsCheckoutAddOn->print_page_content(Array, ”) #3 /homepages/20/d762041899/htdocs/clickandbuilds/GestoriaRomero/wp-content/plugins/customer-area/src/php/core-classes/addon-page.class.php(338) in /homepages/20/d762041899/htdocs/clickandbuilds/GestoriaRomero/wp-content/plugins/customer-area/src/php/core-addons/payments-checkout/templates/payments-checkout-gateways.template.php on line 55December 4, 2018 à 12:32 pm #383036
– which are the add-on and plugin versions?
– did you override any template files?December 4, 2018 à 12:57 pm #383068
Hello, attached capture with the versions of the plugin. I have not modified any template.
regardsDecember 4, 2018 à 4:37 pm #383267
Are you using our Paypal or Stripe payment gateway? Which payment gateways are active?December 4, 2018 à 4:46 pm #383279
I understand that the plugin must work without its payment gateways. Even so I have tried with Stripe (without configuration) and the error is the same.December 4, 2018 à 9:19 pm #383390Cette réponse a été marquée comme privée.December 4, 2018 à 9:27 pm #383391Cette réponse a été marquée comme privée.December 5, 2018 à 1:32 am #383462
Sorry that you are facing this issue. There is a little code error inside this template, this has been reported recently and this is already fixed and will be available in the next plugin update.
We’ll check if we can do an update within the next 48 hours and let you know.
Regards.December 5, 2018 à 1:40 am #383463
Could you maybe try to unzip this file : https://wp-customerarea.com/app/uploads/2018/11/payments-checkout-gateways.template.zip which contains a template? Unzip it (and replace the file) in wp-content/plugins/customer-area/src/php/core-addons/payments-checkout/templates/payments-checkout-gateways.template.php
Please, let me know if that works.
Regards.December 5, 2018 à 10:36 am #383691
Hello, I followed your instructions but the error persists. I have checked that the cache has been cleaned.December 5, 2018 à 10:42 am #383711
I have tried to delete the file “payments-checkout-gateways.template.php” and now it is shown as follows (attached)December 5, 2018 à 10:42 am #383716Cette réponse a été marquée comme privée.December 5, 2018 à 4:05 pm #383975
Hi Vincent, I can not visualize this last response that you have marked as private, although I think it is for me. XDDecember 5, 2018 à 5:43 pm #384079
You should now be able to view our private replies, sorry.
I’ll check again if this template fix this issue or not and will let you know.
Regards.December 5, 2018 à 5:51 pm #384080
Sorry Vincent, I do not know what has happened with the credentials, I have restored them and I have verified that now they work. They are the same ones that I’ve had before. Please try again. Thank you very much for your supportDecember 5, 2018 à 6:15 pm #384094
Thank you very much Thomas, I look forward to your help anxiously. 😉December 5, 2018 à 7:33 pm #384172
@thomas I noticed that the template works properly when only a single gateway is active (see @Ernesto website settings). Must be the template file. I could not change it directly from the website. The template shows at the beginning :
<?php /** * Template version: 3.1.0 * * -= 3.1.0 =- * - Replace clearfix CSS classes with cuar-clearfix * * -= 3.0.0 =- * - Initial version * */ ?> <?php /** @var array $gateways */ ?> <?php /** @var string $object_type */ ?> <?php /** @var int $object_id */ ?> <?php /** @var CUAR_PaymentGateway $gateway */ ?> <?php /** @var string $selected_gateway */ ?> <?php $is_single_gateway = (count($gateways)==1); $first_gateway = reset($gateways); if ($is_single_gateway) $selected_gateway = $first_gateway; ?>December 5, 2018 à 9:29 pm #384249
Hi guys, the information that @Vincent gives us is correct. Everything works correctly when we only have one gateway enabled. But I need more than one gateway enabled, haha :). So, should I do something? or are you going to do something? Thank you!!December 6, 2018 à 10:29 am #384479
@Ernesto : The template file that @Thomas sent to you does not seem to be on your server. Or maybe not at the right location. Try to upload that again please. What I saw was the original template file which is the one which has the bug.December 6, 2018 à 10:43 am #384502Cette réponse a été marquée comme privée.
- Vous devez être connecté pour répondre à ce sujet.