• Resolved jmgeffroy

    (@jmgeffroy)


    Hello,

    I’m struggling with the following issue: the list of countries remains empty. I noticed in the logs that the following foreach (see full function below) didn’t find any item in channel_configs:
    PHP Warning: Invalid argument supplied for foreach()
    After adding some custom log in the class-activate.php, I see that I can (obviously) retrieve the values with a get_option after the update_option( 'channel_statics', $channel_statics, '', 'yes')
    but in the class-attributes.php file, get_option( ‘channel_statics’ ) retrieves nothing.

    public function get_channel_countries(){
            $channel_countries = array();
            $channel_configs = get_option ('channel_statics');
            foreach ($channel_configs as $key=>$val){
                    if (($key != "All countries") && ($key != "Custom Feed")){
                            array_push ($channel_countries, $key);
                    }
            }
            return $channel_countries;
    }

    Envirnment:
    – PHP => 7.0
    – WP => 4.9.7
    – Products Feed Pro => 3.4.2

    Thanks a lot in advance for any clue !
    Best regards
    Jean-Marie

    • This topic was modified 6 years, 4 months ago by jmgeffroy.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi Jean-Marie,

    Strange, we cannot reproduce this issue nor did any other user complain that the countries do not show. Have you tried deactivating / activating the pluhgin?

    All the best,
    Eva

    Thread Starter jmgeffroy

    (@jmgeffroy)

    Hi Eva,
    Thanks a lot for your reply. Yes, I have deactivated and reactivated many times, both from the WP admin, and also manually. Nothing changes this issue. I find it very strange too! I have no new clue since my first message. Is there something else you’d recommend to check?
    Very best regards
    Jean-Marie

    Hi Jean-Marie,

    Do you happen to have access to the WP debug.logs? We might be able to find a hint in there (a PHP warning or error)?

    Thx
    Eva

    Thread Starter jmgeffroy

    (@jmgeffroy)

    Hi Eva,
    Thank you again for your fast response! To give you a simple log, I have done a clean restart, then tried to access the Products Feed Pro area in WP admin, and displayed the desperately empty list of countries. Here is the log, below. The MPM-related issue will be fixed later, it’s easy but requires to be done carefully, which we can’t currently do ??
    You can also see 1 simple trace that we have added…

    [Fri Jul 27 11:38:47.219455 2018] [mpm_prefork:notice] [pid 21716] AH00173: SIGHUP received.  Attempting to restart
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
    [Fri Jul 27 11:38:47.244318 2018] [http2:warn] [pid 21716] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
    [Fri Jul 27 11:38:47.285943 2018] [mpm_prefork:notice] [pid 21716] AH00163: Apache/2.4.33 (Ubuntu) OpenSSL/1.1.0h configured -- resuming normal operations
    [Fri Jul 27 11:38:47.285984 2018] [core:notice] [pid 21716] AH00094: Command line: '/usr/sbin/apache2'
    [Fri Jul 27 11:42:44.755834 2018] [:error] [pid 17939] [client 86.252.192.66:52698] MANTANO --- Channel configs size: 1, referer: https://assimil.mantano.com/wp-admin/admin.php?page=wc-settings&tab=email&section=wc_email_customer_completed_order&move_template=template_html&_wc_email_nonce=c3a5524314
    [Fri Jul 27 11:42:44.755889 2018] [:error] [pid 17939] [client 86.252.192.66:52698] PHP Warning:  Invalid argument supplied for foreach() in /usr/share/wordpress/wp-content/plugins/woo-product-feed-pro/classes/class-attributes.php on line 18, referer: https://assimil.mantano.com/wp-admin/admin.php?page=wc-settings&tab=email&section=wc_email_customer_completed_order&move_template=template_html&_wc_email_nonce=c3a5524314
    [Fri Jul 27 11:42:44.755907 2018] [:error] [pid 17939] [client 86.252.192.66:52698] PHP Warning:  Invalid argument supplied for foreach() in /usr/share/wordpress/wp-content/plugins/woo-product-feed-pro/classes/class-attributes.php on line 31, referer: https://assimil.mantano.com/wp-admin/admin.php?page=wc-settings&tab=email&section=wc_email_customer_completed_order&move_template=template_html&_wc_email_nonce=c3a5524314
    [Fri Jul 27 11:42:44.755917 2018] [:error] [pid 17939] [client 86.252.192.66:52698] PHP Warning:  Invalid argument supplied for foreach() in /usr/share/wordpress/wp-content/plugins/woo-product-feed-pro/classes/class-attributes.php on line 38, referer: https://assimil.mantano.com/wp-admin/admin.php?page=wc-settings&tab=email&section=wc_email_customer_completed_order&move_template=template_html&_wc_email_nonce=c3a5524314
    [Fri Jul 27 11:42:47.102271 2018] [:error] [pid 17949] [client 86.252.192.66:52708] PHP Warning:  Illegal offset type in isset or empty in /usr/share/wordpress/wp-includes/class-wp.php on line 290, referer: https://assimil.mantano.com/wp-admin/admin.php?page=woo-product-feed-pro%2Fwoocommerce-sea.php
    [Fri Jul 27 11:42:47.102332 2018] [:error] [pid 17949] [client 86.252.192.66:52708] PHP Warning:  Illegal offset type in isset or empty in /usr/share/wordpress/wp-includes/class-wp.php on line 292, referer: https://assimil.mantano.com/wp-admin/admin.php?page=woo-product-feed-pro%2Fwoocommerce-sea.php
    [Fri Jul 27 11:42:47.102343 2018] [:error] [pid 17949] [client 86.252.192.66:52708] PHP Warning:  Illegal offset type in isset or empty in /usr/share/wordpress/wp-includes/class-wp.php on line 294, referer: https://assimil.mantano.com/wp-admin/admin.php?page=woo-product-feed-pro%2Fwoocommerce-sea.php
    [Fri Jul 27 11:42:47.102352 2018] [:error] [pid 17949] [client 86.252.192.66:52708] PHP Warning:  Illegal offset type in isset or empty in /usr/share/wordpress/wp-includes/class-wp.php on line 296, referer: https://assimil.mantano.com/wp-admin/admin.php?page=woo-product-feed-pro%2Fwoocommerce-sea.php
    [Fri Jul 27 11:42:47.102360 2018] [:error] [pid 17949] [client 86.252.192.66:52708] PHP Warning:  Illegal offset type in isset or empty in /usr/share/wordpress/wp-includes/class-wp.php on line 299, referer: https://assimil.mantano.com/wp-admin/admin.php?page=woo-product-feed-pro%2Fwoocommerce-sea.php
    

    Hi Jean-Marie,

    I am a bit lost to be honest. I cannot reproduce any of this, not the warnings and not the empty country drop-down. It also seems you are the only experiencing this issue as we had no other users reporting it to us. You are not running an old PHP version, nor an old version of the plugin.

    All I can think of is that is has ‘something’ to do with your hosting environment or firewall/caching plugin that maybe blocks it.

    Sorry we are not able to give you any better news or clues on how to solve this.

    All the best,
    Eva

    Assuming the issue at hand either is no longer happening or solved I am going to close this issue for now (for housekeeping reasons).

    Please reach out in case you do need further support on this issue.

    All the best,
    Eva

    Thread Starter jmgeffroy

    (@jmgeffroy)

    Hi, I’m sorry I siwtched to other topics, but I’m again on this one today. Still same issue. Uninstalled / reinstalled the latest version, nothing changes: empty list of countries, empty channel list…
    BTW I see no wp_XX_adtribes_YY tables, isn’t it strange ? And no error in the logs during install.
    I’d love so much using this plugin ??

    Hi Jean-Marie,

    Would you be so kind to reach out to [email protected] with regards to this issue and refer to this topic?

    We’ll take it from there.

    All the best,
    Eva

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘List of countries remains empty’ is closed to new replies.