• Resolved LGW

    (@kove)


    Hi,

    I’m trying to save a feed, but everytime I click on the “save and generate feed” button I get the aforementioned error. The plugin worked once, but accessing the generated feed gave 403 (forbidden) error on the server.
    I’m working in a multisite environment.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author aukemarketing

    (@aukejomm)

    Hello @kove,

    Have you tried the following?

    1. Deactivate and then activate the plugin. Test the issue again.
    2. If that does not resolve the issue, deactivate and reinstall the plugin over the current installation. Than activate it again and test the issue.
    3. If it still does not work, remove the plugin through the plugins page (be aware, this will also delete all existing feeds) and reinstall it. Then test the issue again.
    4. If Feeds freeze when you create them in the manager, see if you have enough memory limit 256MB at least and more for bigger shops.
    5. Open the Console Tab of your browser (see below on how to do that) and check if you get any error message in the console whilst generating the feed. If you see any error message there, make a screenshot and send that to me.
    6. If you don’t see any error message on your Console Tab, look for any error log file in the ‘wp-content/plugins/wp-product-feed-manager’ folder and in the ‘wp-content’ folder or in the root folder of your web server. If you find any error log file send that to me.
    7. If you can’t find an error log file, try to put your wp-admin account in debug mode (see below on how to do that) and repeat steps 3 and 8.
    8. Let me know if all the steps above did not help

    To open the Browser Console Tab press, depending on your preferred browser: CNTRL+SHFT+J (for Chrome) CNTR+SHFT+K (for Firefox) or F12 (for Explorer). If you work on a Mac: (CMD+OPT+J for Chrome or CMD+OPT+K for Firefox).

    Thread Starter LGW

    (@kove)

    Debug.log shows this:

    25-Jan-2021 12:21:07 UTC] PHP Notice:  Trying to get property 'country_id' of non-object in /home/viehclps/chiaragini.it/wp-content/plugins/wp-product-feed-manager/includes/data/class-wppfm-feed-crud-handler.php on line 29
    [25-Jan-2021 12:21:07 UTC] WordPress database error Column 'country_id' cannot be null for query INSERT INTO <code>wp_2_feedmanager_product_feed</code> (<code>channel_id</code>, <code>language</code>, <code>include_variations</code>, <code>is_aggregator</code>, <code>country_id</code>, <code>source_id</code>, <code>title</code>, <code>feed_title</code>, <code>feed_description</code>, <code>main_category</code>, <code>url</code>, <code>status_id</code>, <code>schedule</code>, <code>feed_type_id</code>, <code>updated</code>, <code>products</code>) VALUES (1, '', 0, 0, NULL, 1, 'chiara feed', '', '', 'Home & Garden', 'https://english.chiaragini.it/wp-content/uploads/sites/2/wppfm-feeds/chiara-feed.xml', 2, '1:13:30:1', 1, '2021-01-25 13:21:07', 0) made by do_action('wp_ajax_myajax-update-feed-data'), WP_Hook->do_action, WP_Hook->apply_filters, WPPFM_Ajax_Data->myajax_update_feed_data, WPPFM_Feed_CRUD_Handler::create_or_update_feed_data, WPPFM_Queries->create_feed
    [25-Jan-2021 12:41:01 UTC] PHP Notice:  Trying to get property 'country_id' of non-object in /home/viehclps/chiaragini.it/wp-content/plugins/wp-product-feed-manager/includes/data/class-wppfm-feed-crud-handler.php on line 29
    [25-Jan-2021 12:41:01 UTC] WordPress database error Column 'country_id' cannot be null for query INSERT INTO <code>wp_2_feedmanager_product_feed</code> (<code>channel_id</code>, <code>language</code>, <code>include_variations</code>, <code>is_aggregator</code>, <code>country_id</code>, <code>source_id</code>, <code>title</code>, <code>feed_title</code>, <code>feed_description</code>, <code>main_category</code>, <code>url</code>, <code>status_id</code>, <code>schedule</code>, <code>feed_type_id</code>, <code>updated</code>, <code>products</code>) VALUES (1, '', 0, 0, NULL, 1, 'Chiara Gini feed', '', '', 'Home & Garden', 'https://english.chiaragini.it/wp-content/uploads/sites/2/wppfm-feeds/Chiara-Gini-feed.xml', 2, '1:13:50:1', 1, '2021-01-25 13:41:01', 0) made by do_action('wp_ajax_myajax-update-feed-data'), WP_Hook->do_action, WP_Hook->apply_filters, WPPFM_Ajax_Data->myajax_update_feed_data, WPPFM_Feed_CRUD_Handler::create_or_update_feed_data, WPPFM_Queries->create_feed
    [25-Jan-2021 12:51:04 UTC] PHP Notice:  Trying to get property 'country_id' of non-object in /home/viehclps/chiaragini.it/wp-content/plugins/wp-product-feed-manager/includes/data/class-wppfm-feed-crud-handler.php on line 29
    [25-Jan-2021 12:51:04 UTC] WordPress database error Column 'country_id' cannot be null for query INSERT INTO <code>wp_2_feedmanager_product_feed</code> (<code>channel_id</code>, <code>language</code>, <code>include_variations</code>, <code>is_aggregator</code>, <code>country_id</code>, <code>source_id</code>, <code>title</code>, <code>feed_title</code>, <code>feed_description</code>, <code>main_category</code>, <code>url</code>, <code>status_id</code>, <code>schedule</code>, <code>feed_type_id</code>, <code>updated</code>, <code>products</code>) VALUES (1, '', 0, 0, NULL, 1, 'Chiara Gini', '', '', 'Home & Garden', 'no-feed-generated', 2, '1:14:00:1', 1, '2021-01-25 13:51:04', 0) made by do_action('wp_ajax_myajax-update-feed-data'), WP_Hook->do_action, WP_Hook->apply_filters, WPPFM_Ajax_Data->myajax_update_feed_data, WPPFM_Feed_CRUD_Handler::create_or_update_feed_data, WPPFM_Queries->create_feed
    [25-Jan-2021 12:52:37 UTC] PHP Notice:  Trying to get property 'country_id' of non-object in /home/viehclps/chiaragini.it/wp-content/plugins/wp-product-feed-manager/includes/data/class-wppfm-feed-crud-handler.php on line 29
    [25-Jan-2021 12:52:37 UTC] WordPress database error Column 'country_id' cannot be null for query INSERT INTO <code>wp_2_feedmanager_product_feed</code> (<code>channel_id</code>, <code>language</code>, <code>include_variations</code>, <code>is_aggregator</code>, <code>country_id</code>, <code>source_id</code>, <code>title</code>, <code>feed_title</code>, <code>feed_description</code>, <code>main_category</code>, <code>url</code>, <code>status_id</code>, <code>schedule</code>, <code>feed_type_id</code>, <code>updated</code>, <code>products</code>) VALUES (1, '', 0, 0, NULL, 1, 'Chiara Gini', '', '', 'Home & Garden', 'no-feed-generated', 2, '1:14:00:1', 1, '2021-01-25 13:52:37', 0) made by do_action('wp_ajax_myajax-update-feed-data'), WP_Hook->do_action, WP_Hook->apply_filters, WPPFM_Ajax_Data->myajax_update_feed_data, WPPFM_Feed_CRUD_Handler::create_or_update_feed_data, WPPFM_Queries->create_feed
    [25-Jan-2021 12:56:36 UTC] PHP Notice:  Trying to get property 'country_id' of non-object in /home/viehclps/chiaragini.it/wp-content/plugins/wp-product-feed-manager/includes/data/class-wppfm-feed-crud-handler.php on line 29
    [25-Jan-2021 12:56:36 UTC] WordPress database error Column 'country_id' cannot be null for query INSERT INTO <code>wp_2_feedmanager_product_feed</code> (<code>channel_id</code>, <code>language</code>, <code>include_variations</code>, <code>is_aggregator</code>, <code>country_id</code>, <code>source_id</code>, <code>title</code>, <code>feed_title</code>, <code>feed_description</code>, <code>main_category</code>, <code>url</code>, <code>status_id</code>, <code>schedule</code>, <code>feed_type_id</code>, <code>updated</code>, <code>products</code>) VALUES (1, '', 0, 0, NULL, 1, 'chiara', '', '', 'Home & Garden', 'https://english.chiaragini.it/wp-content/uploads/sites/2/wppfm-feeds/chiara.xml', 2, '1:14:00:1', 1, '2021-01-25 13:56:36', 0) made by do_action('wp_ajax_myajax-update-feed-data'), WP_Hook->do_action, WP_Hook->apply_filters, WPPFM_Ajax_Data->myajax_update_feed_data, WPPFM_Feed_CRUD_Handler::create_or_update_feed_data, WPPFM_Queries->create_feed
    [25-Jan-2021 14:29:26 UTC] PHP Notice:  Trying to get property 'country_id' of non-object in /home/viehclps/chiaragini.it/wp-content/plugins/wp-product-feed-manager/includes/data/class-wppfm-feed-crud-handler.php on line 29
    [25-Jan-2021 14:29:26 UTC] WordPress database error Column 'country_id' cannot be null for query INSERT INTO <code>wp_2_feedmanager_product_feed</code> (<code>channel_id</code>, <code>language</code>, <code>include_variations</code>, <code>is_aggregator</code>, <code>country_id</code>, <code>source_id</code>, <code>title</code>, <code>feed_title</code>, <code>feed_description</code>, <code>main_category</code>, <code>url</code>, <code>status_id</code>, <code>schedule</code>, <code>feed_type_id</code>, <code>updated</code>, <code>products</code>) VALUES (1, '', 0, 0, NULL, 1, 'Chiara Gini', '', '', 'Home & Garden', 'https://english.chiaragini.it/wp-content/uploads/sites/2/wppfm-feeds/Chiara-Gini.xml', 2, '1:16:00:1', 1, '2021-01-25 15:29:26', 0) made by do_action('wp_ajax_myajax-update-feed-data'), WP_Hook->do_action, WP_Hook->apply_filters, WPPFM_Ajax_Data->myajax_update_feed_data, WPPFM_Feed_CRUD_Handler::create_or_update_feed_data, WPPFM_Queries->create_feed
    Thread Starter LGW

    (@kove)

    p.s.: I already reinstalled the plugin. For some reason it worked the first time, but not the second

    Plugin Author aukemarketing

    (@aukejomm)

    Did you enter a target country?
    Seems that the database is missing that field.

    Did you fully reinstall the plugin?

    Thread Starter LGW

    (@kove)

    plugin fully reinstalled. As I said I’m working in a multisite environment. Where should I set the target country?

    EDIT:
    here is why I didn’t put the target country: https://imgur.com/IuG7mrG

    • This reply was modified 5 years, 5 months ago by LGW.
    Plugin Author aukemarketing

    (@aukejomm)

    Hello @kove,

    Alright, that is something to go on.
    Could you check your browser console to see if you have any error notices whilst loading the feed editor? If you see any error message there, make a screenshot and send that to me.

    To open the Browser Console Tab press, depending on your preferred browser: CNTRL+SHFT+J (for Chrome) CNTR+SHFT+K (for Firefox) or F12 (for Explorer). If you work on a Mac: (CMD+OPT+J for Chrome or CMD+OPT+K for Firefox).

    Thread Starter LGW

    (@kove)

    I don’t see errors

    View post on imgur.com

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Thanks @kove,

    Could you please select the “Show all” settings so I can check if there is anything different from what is normal?

    Also, make sure to refresh the page using CNTRL F5 with the Browser Console Tab on.

    So; select the Show all (I think that is “Tutto”?), refresh the page using CNTRL F5 (Windows) or Apple + R (Mac) and make a new screenshot from that page.

    Thread Starter LGW

    (@kove)

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Thanks @kove,

    Could you check if your database contains a table named “wp_feedmanager_country” (the prefix might be different) and that it contains a list of countries?

    Thread Starter LGW

    (@kove)

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Thanks @kove,

    The table is empty so we can conclude that the plugin failed to install fully.

    Please take the following steps:
    1. Deactivate and delete the plugin through the Plugins page. Make sure the plugin is removed from both the multi-site network mode as well as the specific website.
    2. Install the plugin in the multi-site network admin mode (so not in any specific website) but do not activate it here.
    3. Then switch to the specific website admin page from where you want to use the plugin and activate it there. (So you’re using the Activate option and not the Network Activate option)

    Let me know if that solved the problem.

    Thread Starter LGW

    (@kove)

    thank you.
    This time I was able to generate the feed, but if I try to access it I get a 403 error
    https://english.chiaragini.it/wp-content/uploads/sites/2/wppfm-feeds/Chiara-Gini.xml

    Thread Starter LGW

    (@kove)

    I just checked, the folder wppfm-feeds does not exist.

    Plugin Contributor Michel Jongbloed

    (@michel-jongbloed)

    Does a https://english.chiaragini.it/wp-content/uploads/wppfm-feeds folder exist and if so does that maybe contain the Chiara-Gini.xml feed?

Viewing 15 replies - 1 through 15 (of 21 total)

The topic ‘Saving the data to the database has failed! Please try again.’ is closed to new replies.