Uncaught Error: Call to undefined function nice_font_weight()
This support request was posted in Flatbase by murphster47
- murphster47 November 21, 2017 at 3:42 pm
Started Receiving this issue after WordPress 4.9 was updated and now when trying to add an article we get a client 500 and our log file shows this.
[Tue Nov 21 10:18:59.024697 2017] [:error] [pid 31675] [client 10.10.1.55:64377] PHP Fatal error: Uncaught Error: Call to undefined function nice_font_weight() in /var/www/webroot/cargo/intranet/dev/htdocs/public/wp-content/themes/flatbase/includes/custom-post-types/article/custom-fields.php:266\nStack trace:\n#0 /var/www/webroot/cargo/intranet/dev/htdocs/public/wp-includes/class-wp-hook.php(286): nice_custom_fields_article(Array, ‘article’)\n#1 /var/www/webroot/cargo/intranet/dev/htdocs/public/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)\n#2 /var/www/webroot/cargo/intranet/dev/htdocs/public/wp-content/themes/flatbase/engine/admin/metaboxes.php(49): apply_filters(‘nice_custom_fie…’, Array, ‘article’)\n#3 /var/www/webroot/cargo/intranet/dev/htdocs/public/wp-content/themes/flatbase/engine/admin/metaboxes.php(240): nice_get_custom_fields()\n#4 /var/www/webroot/cargo/intranet/dev/htdocs/public/wp-content/themes/flatbase/engine/admin/metaboxes.php(362): nice_metaboxes_init()\n#5 /var/www/webroot/cargo/intranet/dev/htdocs/public/wp-includes/class-wp-hook.php(288): nice_metaboxes(‘article’)\n#6 /v in /var/www/webroot/cargo/intranet/dev/htdocs/public/wp-content/themes/flatbase/includes/custom-post-types/article/custom-fields.php on line 266, referer: http://intranet/wp-admin/edit.php?post_type=article
Saw this post that seems to have a similar issue, i downloaded the file and customized the line changes where different for flatbase theme – https://nicethemes.com/forums/topic/fatal-error-call-to-undefined-function-nice_font_weight/ and it did not work.
Can someone assist.
Juanfra Aldasoro November 21, 2017 at 4:42 pmHi,
Thank you for writing. I hope you are doing well.
Does that happen when you perform a particular action, visit any particular page?
Would you please tell me the version number of the theme and the framework? (You can check these by visiting the “System Status” page, which can be accessed by visiting the link on the footer that can be found on the Theme Options panel).
I can see that you are using the theme on your local server. Would you please tell me what type of server are you currently using, PHP version?
Thank you very much,
Juan.murphster47 November 22, 2017 at 6:06 pmThis happens when you are logged in (not as an administrator) and try to add a new article.
Wordpress 4.9
NiceFramework 2.0.8
FlatBase 2.0.1
BBPress 2.5.14-6684Ubuntu/Apache/PHP 7.0.18-1+deb.sury.org~trusty+1
Juanfra Aldasoro November 22, 2017 at 6:12 pmHi,
Thanks for the follow-up and the information.
What’s the specific role of the user which is trying to add the article?
Thanks,
Juan.Juanfra Aldasoro November 23, 2017 at 1:26 pmThank you very much for the follow-up.
I’ve been able to reproduce the issue.
Would you please copy the following code to your flatbase/functions.php file (or the one in your child theme if you are using a child theme):
We’ll be adding a fix for this problem in the upcoming version.
Best,
Juan.Juanfra Aldasoro November 27, 2017 at 4:43 pmHi,
Thank you very much for the follow-up.
Have a nice day,
Juan.
You must be logged in to reply to this topic.