Home › Toolset Professional Support › [Resolved] Fields are not showing when we add products
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
Tagged: Content Templates, Views plugin
Related documentation:
This topic contains 37 replies, has 3 voices.
Last updated by Angele 6 years, 5 months ago.
Assisted by: Nigel.
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Paul
I added a small snippet of custom CSS to your product template as a workaround to stop the sidebar from displaying beneath the content (except on smaller screens).
It could be improved upon, but should help in the meantime until the escalated issue is resolved.
The product category pages all have the sidebar dropping to the bottom??
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
You'll need to try a similar CSS workaround as on the single product pages. I haven't checked if the markup issue is the same on the archives as it is on the single product pages, you may just be able to copy across the custom CSS to your archive template, or it may need tweaking when you do.
I though toolset controlled the archive?
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Actually, checking, you are not using a custom archive, the standard archives are being displayed.
So, I changed the setting at Toolset > WooCommerce Views to say use the standard WC product archive template instead of the Toolset one (which is not needed if you are not customising the archive) and that has fixed the sidebar issue on the archive pages.
Thanks Nigel
The layouts all look good now. But I just checked the products and the extra fields are not displaying again!!! arghhhh
hidden link
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Arghhhh!
Is it only happening on the production site but is working okay on the staging site?
I visited the production site again and can see the problem. We could try de-activating and re-activating plugins as I initially described, but it would be better to get to the bottom of the issue if it has re-surfaced.
So I was going to take a fresh copy of the site which I'd be able to pass to my colleagues for some more testing—but, having installed the All in One WP Migration plugin on your site, it won't activate.
It seems like you maybe have something else going on on your site.
Can you check the debug log for PHP errors?
The product fields are not showing again? I don't know what to do. My customer can't add products and is desperate
I deactivated plugins and reactivated them. Then the fields showed. Then they went off again
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Can you please check the server logs for errors?
If you don't already have debug logging turned on, check here for details: https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging
When you have logging enabled edit a product where you expect to see the custom product fields and see what appears in the log.
Staging
Filter
Search
18:12:00, 198.51.100.42, /wp-content/uploads
[Thu Jun 21 06:35:10.415667 2018] [:error] [pid 18748] [client 127.0.0.1:56953] WPE API [success]: woocommerce Nginx Profile Added
[Thu Jun 21 07:11:14.139637 2018] [:error] [pid 24650] [client 5.148.67.47:63111] PHP Fatal error: Call to a member function is_type() on boolean in /nas/content/live/flyingtiger/wp-content/plugins/woocommerce-pre-orders/includes/class-wc-pre-orders-product.php on line 257, referer: hidden link
[Thu Jun 21 07:58:40.951799 2018] [:error] [pid 13468] [client 178.62.227.93:12899] WordPress database error Cannot add foreign key constraint for query \n\t\t\t\t\tALTER TABLE `pp_wc_download_log`\n\t\t\t\t\tADD CONSTRAINT `fk_wc_download_log_permission_id`\n\t\t\t\t\tFOREIGN KEY (`permission_id`)\n\t\t\t\t\tREFERENCES `pp_woocommerce_downloadable_product_permissions` (`permission_id`) ON DELETE CASCADE;\n\t\t\t\t /* From [www.flying-tigers.co.uk/] in [/nas/content/live/flyingtiger/wp-content/plugins/woocommerce/includes/class-wc-install.php:580] */ made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Install::check_version, WC_Install::install, WC_Install::create_tables
[Thu Jun 21 07:58:41.561905 2018] [:error] [pid 360] [client 5.148.67.47:45267] WordPress database error Cannot add foreign key constraint for query \n\t\t\t\t\tALTER TABLE `pp_wc_download_log`\n\t\t\t\t\tADD CONSTRAINT `fk_wc_download_log_permission_id`\n\t\t\t\t\tFOREIGN KEY (`permission_id`)\n\t\t\t\t\tREFERENCES `pp_woocommerce_downloadable_product_permissions` (`permission_id`) ON DELETE CASCADE;\n\t\t\t\t /* From [www.flying-tigers.co.uk/wp-admin/admin-ajax.php] in [/nas/content/live/flyingtiger/wp-content/plugins/woocommerce/includes/class-wc-install.php:580] */ made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Install::check_version, WC_Install::install, WC_Install::create_tables, referer: hidden link
[Thu Jun 21 07:58:42.447876 2018] [:error] [pid 13468] [client 178.62.227.93:12899] PHP Warning: fopen(/nas/content/live/flyingtiger/.htaccess): failed to open stream: Permission denied in /nas/content/live/flyingtiger/wp-admin/includes/misc.php on line 125
[Thu Jun 21 08:21:02.128478 2018] [:error] [pid 21846] [client 92.40.248.162:32827] PHP Fatal error: Call to undefined function is_product_category() in /nas/content/live/flyingtiger/wp-content/uploads/dynamik-gen/theme/custom-hook-boxes.php on line 91, referer: hidden link
[Thu Jun 21 08:21:08.474096 2018] [:error] [pid 22129] [client 54.197.115.34:32945] PHP Fatal error: Call to undefined function is_product_category() in /nas/content/live/flyingtiger/wp-content/uploads/dynamik-gen/theme/custom-hook-boxes.php on line 91
[Thu Jun 21 08:21:09.134661 2018] [:error] [pid 22451] [client 54.197.115.34:32969] PHP Fatal error: Call to undefined function is_product_category() in /nas/content/live/flyingtiger/wp-content/uploads/dynamik-gen/theme/custom-hook-boxes.php on line 91
[Thu Jun 21 08:21:21.573768 2018] [:error] [pid 22760] [client 92.40.248.162:33127] PHP Fatal error: Call to undefined function is_product_category() in /nas/content/live/flyingtiger/wp-content/uploads/dynamik-gen/theme/custom-hook-boxes.php on line 91, referer: hidden link
[Thu Jun 21 08:21:23.019329 2018] [:error] [pid 22786] [client 92.40.248.162:33156] PHP Fatal error: Call to undefined function is_product_category() in /nas/content/live/flyingtiger/wp-content/uploads/dynamik-gen/theme/custom-hook-boxes.php on line 91, referer: hidden link
[Thu Jun 21 08:21:31.692613 2018] [:error] [pid 22816] [client 223.206.231.151:10347] WordPress database error Cannot add foreign key constraint for query \n\t\t\t\t\tALTER TABLE `pp_wc_download_log`\n\t\t\t\t\tADD CONSTRAINT `fk_wc_download_log_permission_id`\n\t\t\t\t\tFOREIGN KEY (`permission_id`)\n\t\t\t\t\tREFERENCES `pp_woocommerce_downloadable_product_permissions` (`permission_id`) ON DELETE CASCADE;\n\t\t\t\t /* From [www.flying-tigers.co.uk/wp-admin/plugins.php?action=activate&plugin=woocommerce%2Fwoocommerce.php&plugin_status=all&paged=1&s&_wpnonce=84ae6f3098] in [/nas/content/live/flyingtiger/wp-content/plugins/woocommerce/includes/class-wc-install.php:580] */ made by activate_plugin, do_action('activate_woocommerce/woocommerce.php'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Install::install, WC_Install::create_tables, referer: hidden link
[Thu Jun 21 08:21:32.521580 2018] [:error] [pid 22816] [client 223.206.231.151:10347] WPE API [success]: woocommerce Nginx Profile Added, referer: hidden link
[Thu Jun 21 09:31:13.587054 2018] [:error] [pid 9772] [client 223.206.231.151:21004] WordPress database error Cannot add foreign key constraint for query \n\t\t\t\t\tALTER TABLE `pp_wc_download_log`\n\t\t\t\t\tADD CONSTRAINT `fk_wc_download_log_permission_id`\n\t\t\t\t\tFOREIGN KEY (`permission_id`)\n\t\t\t\t\tREFERENCES `pp_woocommerce_downloadable_product_permissions` (`permission_id`) ON DELETE CASCADE;\n\t\t\t\t /* From [www.flying-tigers.co.uk/wp-admin/plugins.php?action=activate&plugin=woocommerce%2Fwoocommerce.php&plugin_status=all&paged=1&s&_wpnonce=84ae6f3098] in [/nas/content/live/flyingtiger/wp-content/plugins/woocommerce/includes/class-wc-install.php:580] */ made by activate_plugin, do_action('activate_woocommerce/woocommerce.php'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Install::install, WC_Install::create_tables, referer: hidden link
[Thu Jun 21 09:31:14.597048 2018] [:error] [pid 9772] [client 223.206.231.151:21004] WPE API [success]: woocommerce Nginx Profile Added, referer: hidden link
[Thu Jun 21 09:43:03.292736 2018] [:error] [pid 5785] [client 115.28.44.252:53835] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:04.593382 2018] [:error] [pid 5785] [client 115.28.44.252:53856] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:05.913798 2018] [:error] [pid 5785] [client 115.28.44.252:53876] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:07.458818 2018] [:error] [pid 5785] [client 115.28.44.252:53894] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:08.949274 2018] [:error] [pid 6482] [client 115.28.44.252:53936] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:11.329871 2018] [:error] [pid 5841] [client 115.28.44.252:53960] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:12.634574 2018] [:error] [pid 6149] [client 115.28.44.252:53993] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:13.973484 2018] [:error] [pid 6483] [client 115.28.44.252:54002] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:15.601747 2018] [:error] [pid 6322] [client 115.28.44.252:54017] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:16.904375 2018] [:error] [pid 6483] [client 115.28.44.252:54046] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:18.204710 2018] [:error] [pid 6149] [client 115.28.44.252:54053] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:19.509582 2018] [:error] [pid 6484] [client 115.28.44.252:54060] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:20.868893 2018] [:error] [pid 6149] [client 115.28.44.252:54125] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:22.249502 2018] [:error] [pid 7838] [client 115.28.44.252:54192] preventing possible attempt to enumerate users
[Thu Jun 21 09:43:23.557357 2018] [:error] [pid 6149] [client 115.28.44.252:54198] preventing possible attempt to enumerate users
[Thu Jun 21 10:14:26.004870 2018] [:error] [pid 11985] [client 185.234.218.125:35726] preventing possible attempt to enumerate users
[Thu Jun 21 10:14:27.737734 2018] [:error] [pid 22036] [client 185.234.218.125:35745] preventing possible attempt to enumerate users
[Thu Jun 21 10:14:29.617407 2018] [:error] [pid 10418] [client 185.234.218.125:35778] preventing possible attempt to enumerate users
[Thu Jun 21 10:14:30.812841 2018] [:error] [pid 24531] [client 185.234.218.125:35898] preventing possible attempt to enumerate users
[Thu Jun 21 10:14:32.085663 2018] [:error] [pid 24531] [client 185.234.218.125:35926] preventing possible attempt to enumerate users
[Thu Jun 21 10:14:33.483412 2018] [:error] [pid 11985] [client 185.234.218.125:36043] preventing possible attempt to enumerate users
[Thu Jun 21 10:14:34.694649 2018] [:error] [pid 24653] [client 185.234.218.125:36062] preventing possible attempt to enumerate users
[Thu Jun 21 10:14:35.852142 2018] [:error] [pid 24260] [client 185.234.218.125:36082] preventing possible attempt to enumerate users
[Wed Jun 20 14:56:21.016622 2018] [access_compat:error] [pid 21833] [client 202.46.55.86:61850] AH01797: client denied by server configuration: /nas/wp/www/sites/flyingtiger/author
[Wed Jun 20 15:51:36.927944 2018] [:error] [pid 17506] [client 81.158.223.32:38769] PHP Fatal error: Call to a member function is_type() on boolean in /nas/content/live/flyingtiger/wp-content/plugins/woocommerce-pre-orders/includes/class-wc-pre-orders-product.php on line 257, referer: hidden link
The layouts have all gone crappy again???
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Paul
Thanks for the error logs, I've tidied it up somewhat to isolate the problems so that you can see them:
[Thu Jun 21 07:11:14.139637 2018] [:error] [pid 24650] [client 5.148.67.47:63111] PHP Fatal error: Call to a member function is_type() on boolean in /nas/content/live/flyingtiger/wp-content/plugins/woocommerce-pre-orders/includes/class-wc-pre-orders-product.php on line 257, referer: <em><u>hidden link</u></em> [Thu Jun 21 08:21:02.128478 2018] [:error] [pid 21846] [client 92.40.248.162:32827] PHP Fatal error: Call to undefined function is_product_category() in /nas/content/live/flyingtiger/wp-content/uploads/dynamik-gen/theme/custom-hook-boxes.php on line 91, referer: <em><u>hidden link</u></em> [Thu Jun 21 08:21:08.474096 2018] [:error] [pid 22129] [client 54.197.115.34:32945] PHP Fatal error: Call to undefined function is_product_category() in /nas/content/live/flyingtiger/wp-content/uploads/dynamik-gen/theme/custom-hook-boxes.php on line 91 [Thu Jun 21 08:21:09.134661 2018] [:error] [pid 22451] [client 54.197.115.34:32969] PHP Fatal error: Call to undefined function is_product_category() in /nas/content/live/flyingtiger/wp-content/uploads/dynamik-gen/theme/custom-hook-boxes.php on line 91 [Thu Jun 21 08:21:21.573768 2018] [:error] [pid 22760] [client 92.40.248.162:33127] PHP Fatal error: Call to undefined function is_product_category() in /nas/content/live/flyingtiger/wp-content/uploads/dynamik-gen/theme/custom-hook-boxes.php on line 91, referer: <em><u>hidden link</u></em> [Thu Jun 21 08:21:23.019329 2018] [:error] [pid 22786] [client 92.40.248.162:33156] PHP Fatal error: Call to undefined function is_product_category() in /nas/content/live/flyingtiger/wp-content/uploads/dynamik-gen/theme/custom-hook-boxes.php on line 91, referer: <em><u>hidden link</u></em> [Wed Jun 20 15:51:36.927944 2018] [:error] [pid 17506] [client 81.158.223.32:38769] PHP Fatal error: Call to a member function is_type() on boolean in /nas/content/live/flyingtiger/wp-content/plugins/woocommerce-pre-orders/includes/class-wc-pre-orders-product.php on line 257, referer: <em><u>hidden link</u></em>
You can see that your theme is creating fatal PHP errors (related to custom-hook-boxes.php) and also the plugin woocommerce-pre-orders is likewise creating fatal errors.
Errors from one plugin can have unexpected knock-on effects on code elsewhere, so while you have these errors on your site it is not possible to say why the Toolset-related problems occur. In particular, the non-appearance of the custom fields on the product edit pages may be linked to either one of these other plugin errors.
I'm going to try and test the WooCommerce pre-orders plugin to see if I can reproduce this error on a local test site, but in the meantime I suggest you test your site with that plugin disabled and using the parent Genesis theme rather than the dynamik theme (which you can do on your staging site).
If you still can't see the product custom fields then the cause must lie elsewhere, but if they work okay then the errors reported for the theme or that plugin will be responsible.
Let me know what you find.
The products look OK. The fields are showing. But the product category pages are messed up (no margin and the sidebar drops)
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
The product category archives are not being displayed by Toolset.
In Toolset > WooCommerce Views you'll see that the template used for product archives is the standard WooCommerce template and not the Toolset WooCommerce Views template, so what is output on the product category archive pages is determined by your theme and WooCommerce.
To double-check I temporarily disabled the Toolset WooCommerce Views plugin and the Views plugin so that Toolset can't be having any influence on how the product archives are rendered and it didn't make any difference.