Title: marcodu's Replies | WordPress.org

---

# marcodu

  [  ](https://wordpress.org/support/users/marcodu/)

 *   [Profile](https://wordpress.org/support/users/marcodu/)
 *   [Topics Started](https://wordpress.org/support/users/marcodu/topics/)
 *   [Replies Created](https://wordpress.org/support/users/marcodu/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/marcodu/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/marcodu/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/marcodu/engagements/)
 *   [Favorites](https://wordpress.org/support/users/marcodu/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wpForo Forum] Wpforo and Yoast sitemap = critical error](https://wordpress.org/support/topic/wpforo-and-yoast-sitemap-critical-error/)
 *  Thread Starter [marcodu](https://wordpress.org/support/users/marcodu/)
 * (@marcodu)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wpforo-and-yoast-sitemap-critical-error/#post-16134440)
 * Hi,
    I would like to do that. But every time i try to register on your forum 
   i get the following error:
 * “Error: please enter a username”
 * I tried so many times. different emails and different usernames
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wpForo Forum] Wpforo and Yoast sitemap = critical error](https://wordpress.org/support/topic/wpforo-and-yoast-sitemap-critical-error/)
 *  Thread Starter [marcodu](https://wordpress.org/support/users/marcodu/)
 * (@marcodu)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/wpforo-and-yoast-sitemap-critical-error/#post-16128658)
 * I think i’m getting this error:
 *     ```
       [24-Oct-2022 13:30:37 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_option_items_per_page() on null in /home/customer/www/inneasoft.com/public_html/wp-content/plugins/wpforo/wpforo.php:791
       Stack trace:
       #0 /home/customer/www/inneasoft.com/public_html/wp-content/plugins/wpforo/includes/hooks.php(211): wpforo\wpforo->init_current_object()
       #1 /home/customer/www/inneasoft.com/public_html/wp-includes/shortcodes.php(356): wpforo\wpforo->{closure}(Array, '', 'wpforo')
       #2 [internal function]: do_shortcode_tag(Array)
       #3 /home/customer/www/inneasoft.com/public_html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(wpforo...', 'do_shortcode_ta...', '[wpforo]')
       #4 /home/customer/www/inneasoft.com/public_html/wp-content/themes/Divi/includes/builder/class-et-builder-element.php(3012): do_shortcode('[wpforo]')
       #5 /home/customer/www/inneasoft.com/public_html/wp-includes/shortcodes.php(356): ET_Builder_Element->_render(Array, '[wpforo]', 'et_pb_text')
       #6 [internal function]: do_shortcode_tag(Array)
       #7 /home/customer/www/inneasoft.c in /home/customer/www/inneasoft.com/public_html/wp-content/plugins/wpforo/wpforo.php on line 791
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce PayPal Payments] CANNOT BE NEGATIVE [UNPROCESSABLE ENTITY|](https://wordpress.org/support/topic/cannot-be-negative-unprocessable-entity/)
 *  [marcodu](https://wordpress.org/support/users/marcodu/)
 * (@marcodu)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cannot-be-negative-unprocessable-entity/#post-15480575)
 * Hi,
    I still have the same issue with Woo Discount Rules if i use the option “
   Apply cart discount as Fee”. If I set as a coupon no error. I hope the coming
   version will fix this problem 😉
 * Regards,
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[License Manager for WooCommerce] Order info + licence key to a third API](https://wordpress.org/support/topic/order-info-licence-key-to-a-third-api/)
 *  Thread Starter [marcodu](https://wordpress.org/support/users/marcodu/)
 * (@marcodu)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/order-info-licence-key-to-a-third-api/#post-14610258)
 * So far this is what i did…and it kind of work out…
    If someone want to adjust/
   clean the code it will be much appreciated 😉
 *     ```
       use LicenseManagerForWooCommerce\Models\Resources\License as LicenseResourceModel;
       use LicenseManagerForWooCommerce\Repositories\Resources\License as LicenseResourceRepository;
   
       defined('ABSPATH') or die('Unauthorized Access');
   
       add_action('woocommerce_order_status_completed', 'send_info_to_api');
   
       $url = 'https://....';
   
       function send_info_to_api ($order_id){
           $order = new WC_Order( $order_id );
   
       //Get the customer data
       $DataNeworder = array( 
           'Date commande' => $order->date_completed,
           'Numero de commande' => $order_id ,
           'Prénom' => $order->billing_first_name ,
           'Nom' => $order->billing_last_name ,
           'Société' => $order->billing_company ,
           'Addresse1' => $order->billing_address_1 ,
           'Adresse2' => $order->billing_address_2 ,
           'Ville' => $order->billing_city ,
           'Date' => $order->billing_state ,
           'CodePostal' => $order->billing_postcode ,
           'Pays' => $order->billing_country ,
           'Email' => $order->billing_email ,
           'Telephone' => $order->billing_phone ,
           );
   
       //Gets all licenses from an order according to the order_id
           $licenses = LicenseResourceRepository::instance()->findAllBy(
           array(
           'order_id' => $order_id
           ));
       // No license keys? Nothing to do...
           if (!$licenses) {
               return;
           }
           foreach ($licenses as $license):
               array_push($DataNeworder, $license->getDecryptedLicenseKey());     
           endforeach;
   
       // $order->add_order_note( implode(" ",$DataNeworder));
   
       file_put_contents('DataOrderBACnetLog.txt', print_r($DataNeworder, true), FILE_APPEND | LOCK_EX);
       }
   
       // send to url
       wp_remote_post( $url, $DataNeworder );
       ```
   
    -  This reply was modified 4 years, 11 months ago by [marcodu](https://wordpress.org/support/users/marcodu/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Loading Page with Loading Screen] Change size of logo?](https://wordpress.org/support/topic/change-size-of-logo-2/)
 *  [marcodu](https://wordpress.org/support/users/marcodu/)
 * (@marcodu)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/change-size-of-logo-2/#post-11325292)
 * Thanks a lot for your answer.
    It works!
 * Regards,
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Loading Page with Loading Screen] Change size of logo?](https://wordpress.org/support/topic/change-size-of-logo-2/)
 *  [marcodu](https://wordpress.org/support/users/marcodu/)
 * (@marcodu)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/change-size-of-logo-2/#post-11324735)
 * Hi,
    First of all thank you for the nice plugin. I used this code <style>.lp-
   screen img{width:600px !important;}</style> to change the size of the logo. However
   since the last update it doesn’t work. Any idea?
 * What can i do to increase the size of the logo?
 * Best regards,

Viewing 6 replies - 1 through 6 (of 6 total)