getOrCreateGlobalArea not run in Concrete5 5.6.x

Permalink
The following code runs perfectly in Concrete5 since version 5.6.x:

Loader::model('stacks');
$globalstack = Stack::getOrCreateGlobalArea('NameOfGlobalArea');

Now returns two errors:
( ! ) Warning: require_once(C:\wamp\www\mysite\concrete/models/stacks.php): failed to open stream: No such file or directory in C:\wamp\mysite\theme\concrete\core\libraries\loader.php on line 40

( ! ) Fatal error: require_once(): Failed opening required 'C:\wamp\www\mysite\concrete/models/stacks.php' (include_path='C:/wamp/www/mysite/libraries/3rdparty;C:\wamp\www\mysite\concrete/libraries/3rdparty;.;C:\php\pear') in C:\wamp\www\mysite\concrete\core\libraries\loader.php on line 40

I also see that concrete/models/stack now not exists.

Thanks!

 

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.