Home › Toolset Professional Support › [Resolved] Custom field doesn't show – and some cf styling
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 |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
Tagged: Content Templates, Types plugin, Views plugin
Related documentation:
This topic contains 11 replies, has 2 voices.
Last updated by kjetilF 5 years ago.
Assisted by: Minesh.
Hello again
MISSING CUSTOM FIELD
After working on our new front page for a while, an issue has arrised:
A custom field (and its values) do not show up though they did previously.
Please see:
hidden link
I need to display dynamically the number of beds in each property.
Now, selecting the single field block I see an error (in purple), and in the settings (in the right sidebar) neither custom field groups nor taxonomies show up. Anyway the previously selected custom field is there ("Senger - antall totalt"), but as you see it wont pull any values.
STYLING CF
As for now, under each property name (actually post title, in orange) I have the type of location, local place name and region name.
Is it somehow possible to display the two location names as
" "local place" in "region name" "
...making for instance "Orte in Umbria" on one single line?
PS Manish has login credentials and knows the page setup 🙂
Thank you
Kjetil
Hello. Thank you for contacting the Toolset support.
Actually, as the original ticket resolved, the system will automatically removed the shared access details.
Can you please send me admin access details and problem URL so I will look at this issue further.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Merry Christmas! 🙂
Unfortunately - the access details you just shared is not working at this end. When I try to log in it says: username Helper is incorrect
Can you please send me working access details.
I have set the next reply to private which means only you and I have access to it.
Happy new year!
Sorry about the mistake. I have double-checked with the details I provided in the previous private post, and now you should get in without problems
Thanks
Kjetil
Very happy new year!!
Can you please share the problem URL where you are not able to see the custom fields?
Hi
The problem is here:
hidden link
Visible when in edit mode - please see screenshot:
hidden link
Thanks
I checked on my local test install and I am not able to reproduce the issue you raise.
Then, I checked on your server and when I checked the browser's console:
=> hidden link
I see there are few 508 errors for few JSON requests;
api-fetch.min.js?ver=3.6.4:1 POST <em><u>hidden link</u></em> 508 post.php?post=56600&action=edit:1 Uncaught (in promise) {code: "invalid_json", message: "The response is not a valid JSON response."} api-fetch.min.js?ver=3.6.4:1 GET <em><u>hidden link</u></em> 508 api-fetch.min.js?ver=3.6.4:1 POST <em><u>hidden link</u></em> 508 post.php?post=56600&action=edit:1 Uncaught (in promise) {code: "invalid_json", message: "The response is not a valid JSON response."} api-fetch.min.js?ver=3.6.4:1 POST <em><u>hidden link</u></em> 508
More info:
=> hidden link
What if you try to install the same site on some local or different server and check if you still able to see the issue.
Hi
That's odd - I've tried in different browsers with the same issue - please see screenshot:
hidden link
- The "number of beds" that I previously placed do not show - 1
- It appears that the system doesn't find any custom fields - 2
- ...which makes the "beds totally" value here some kind of ghost value(?) - 3
And... well...,
now, without touching the browser, everything seems ok - see hidden link
except it still returns no value, maybe because that bed value isn't relevant or inserted in all properties.
---- Regarding the loading json error, ----
I'm not so code savvy and can't really interpret the messages. I see, though, that they all relate to Toolset.
As described in the page you suggested, I've checked the resource use, and yes, there are some peaks:
Yesterday: hidden link
Today: hidden link
At the end of the root directory error file there are repeated instanses of this, which I guess point to the theme:
[04-Jan-2020 11:40:22 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method Astra_Addon_Background_Updater::is_db_updated() in /home/labelmkj/public_html/wp-content/plugins/layouts/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers/toolset-theme-integration-settings-front-end-controller.php on line 363
Error file here: hidden link
--------
The main question, I believe, is if this errors probably cause the missing recognition of the custom fields. Secondly what causes it.
Both Astra theme and pro plugin + the Beaver theme + themer should be fully compatible with Toolset, so maybe there's a bug in Toolset's block adaption?
Finally the question is if this is possible to solve or if we (at least for now) should leave out the Bed count part.
Thanks,
Kjetil
The warning you shared:
04-Jan-2020 11:40:22 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method Astra_Addon_Background_Updater::is_db_updated() in /home/labelmkj/public_html/wp-content/plugins/layouts/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers/toolset-theme-integration-settings-front-end-controller.php on line 363
What If you try to revert back to Astra Pro Addon plugin to version 2.1.4 - do you see everything works as expected?
I see the following error message:
Something went wrong while fetching the dynamic content from the selected source, with message: "The response is not a valid JSON response.".
So, lets try to minimize the cause of the issue step by step:
- Please try to switch back to Astra Pro Addon plugin to version 2.1.4 - Do you see the errors?
Thank you for your effort and patience. I must have overlooked the email about your latest reply.
It worked.
I downgraded Astra addon from 224 to 214 - and voila, the custom field selector works as it should! And so is the recurring json error. Good guess (or rather: pure know-how) Great!
(I'll inform the guys at Brainstorm about this since both 2.2.3 and 2.2.4 gives that error.)
The only detail, then, is if it is possible to
- put the two (local and regional) place fields side by side on the same line witn an "in" in between, so they appear as for instance "Castiglione in Toscana" instead of
"Castiglione
Toscana"
Thanks,
Kjetil
Glad to know that the solution I shared help you to resolve your issue. May I kindly ask you to open a new ticket with every new question you may have. This will help other users searching on the forum as well as help us to write correct problem resolution summery.
My issue is resolved now. Thank you!
Outstanding help from Minesh