Hello
Is it possible to disable ACF plugin?
Is it mandatory to work with the ACF plugin?
when i disable ACF i get this error
Uncaught Error: Call to a member function setData() on null in C:\xampp\htdocs\blog_gva\wp-content\themes\sage9\vendor\soberwp\controller\src\Controller.php:143 Stack trace: #0 C:\xampp\htdocs\blog_gva\wp-content\themes\sage9\vendor\soberwp\controller\src\Controller.php(88): Sober\Controller\Controller->__setDatafromModuleAcf()
thakns
It is only mandatory to have the ACF plugin enabled if you are actually using it for anything in your project.
1 Like
thanks diomededavid
but i can read readme.md file from my vendor/soberwp/controller
Controller
WordPress package to enable a controller when using Blade with Sage
* [Creating Global Properties](#creating-global-properties)
* [Advanced Custom Fields Module](#advanced-custom-fields-module)
Mu soberwp\controller.php uses ACF
namespace Sober\Controller;
use Sober\Controller\Utils;
use Sober\Controller\Module\Acf;
can i disabled somehow?
thanks
The ACF module should only activate if your Controller has set $acf = true
, see the source code: https://github.com/soberwp/controller/blob/10cc0fa7c2dcac9937602ed3157b6e7450456934/src/Controller.php#L135-L143
You can also remove soberwp/controller
if you don’t want to use it–Sage will work without it, you just won’t be able to use Controllers.
1 Like
system
Closed
July 8, 2021, 1:00pm
5
This topic was automatically closed after 42 days. New replies are no longer allowed.