Invoicing plugin Fatal Error

Accueil Forums Premium add-ons support Invoicing plugin Fatal Error

20 sujets de 1 à 20 (sur un total de 24)
  • Auteur
    Messages
  • #383012
    Jose J
    Participant

    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 55

    Pièces jointes:
    #383036
    Vincent Mimoun-Prat
    Admin bbPress

    Hi

    – which are the add-on and plugin versions?
    – did you override any template files?

    #383068
    Jose J
    Participant

    Hello, attached capture with the versions of the plugin. I have not modified any template.
    regards

    Pièces jointes:
    #383267
    Vincent Mimoun-Prat
    Admin bbPress

    Are you using our Paypal or Stripe payment gateway? Which payment gateways are active?

    #383279
    Jose J
    Participant

    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.

    #383390
    Vincent Mimoun-Prat
    Admin bbPress
    Cette réponse a été marquée comme privée.
    #383391
    Jose J
    Participant
    Cette réponse a été marquée comme privée.
    #383462
    Thomas Lartaud
    Admin bbPress

    Hi,

    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.

    #383463
    Thomas Lartaud
    Admin bbPress

    Issue related to https://wp-customerarea.com/support/topic/page-commande-mise-en-page-cassee/.

    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.

    #383691
    Jose J
    Participant

    Hello, I followed your instructions but the error persists. I have checked that the cache has been cleaned.

    #383711
    Jose J
    Participant

    I have tried to delete the file “payments-checkout-gateways.template.php” and now it is shown as follows (attached)

    Pièces jointes:
    #383716
    Vincent Mimoun-Prat
    Admin bbPress
    Cette réponse a été marquée comme privée.
    #383975
    Jose J
    Participant

    Hi Vincent, I can not visualize this last response that you have marked as private, although I think it is for me. XD

    Pièces jointes:
    #384079
    Thomas Lartaud
    Admin bbPress

    Hi,

    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.

    1 utilisateur a remercié l'auteur de ce message.
    #384080
    Jose J
    Participant

    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 support

    #384094
    Jose J
    Participant

    Thank you very much Thomas, I look forward to your help anxiously. 😉

    #384172
    Vincent Mimoun-Prat
    Admin bbPress

    @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;
    ?>
    
    1 utilisateur a remercié l'auteur de ce message.
    #384249
    Jose J
    Participant

    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!!

    #384479
    Vincent Mimoun-Prat
    Admin bbPress

    @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.

    #384502
    Jose J
    Participant
    Cette réponse a été marquée comme privée.
20 sujets de 1 à 20 (sur un total de 24)
  • Vous devez être connecté pour répondre à ce sujet.