Support » Plugin: Custom Field Suite » $cfs Call to a member function get() on null

  • Having this error in a theme I am just getting into.

    
    2018/04/18 08:04:35 [error] 16067#16067: *76030 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to a member function get() on null in /srv/www/staging.example.com/releases/20180323073017/web/app/themes/theme/header.php:51
    

    On that line we load 'startingPrice': '<?php echo $cfs->get('prix_appel');?>' and another file has loads of similar calls for custom fields.

    The site uses version2.5.12. In examples I do not see a variable used but a function like so echo CFS()->get( 'first_name' ); as mentioned at http://customfieldsuite.com/field-types/text.html . Have there been changes in CFS custom field calls over the last couple of versions perhaps?

    • This topic was modified 1 year, 3 months ago by  Rhand.
  • The topic ‘$cfs Call to a member function get() on null’ is closed to new replies.