This is possibly a Windows compatibility issue. This occurs on activating the theme (no changes made).
It says it can’t locate the template page.blade.php, but the file is there.
<b>Fatal error</b>: Uncaught exception 'InvalidArgumentException' with message 'View [C:.wamp.www.project.web.app.themes.project.templates.page] not found.' in C:\wamp\www\project\web\app\themes\project\vendor\illuminate\view\FileViewFinder.php:137 Stack trace: \#0 C:\wamp\www\project\web\app\themes\project\vendor\illuminate\view\FileViewFinder.php(79): Illuminate\View\FileViewFinder->findInPaths('C:.wamp.www.pro...', Array) \#1 C:\wamp\www\project\web\app\themes\project\vendor\illuminate\view\Factory.php(174): Illuminate\View\FileViewFinder->find('C:.wamp.www.pro...') \#2 C:\wamp\www\project\web\app\themes\project\src\lib\Sage\Template\BladeProvider.php(39): Illuminate\View\Factory->make('C:.wamp.www.pro...', Array, Array) \#3 C:\wamp\www\project\web\app\themes\project\src\lib\Sage\Template\BladeProvider.php(50): Roots\Sage\Template\BladeProvider->make('C:\\wamp\\www\\inc...', Array, Array) \#4 C:\wamp\www\project\web\app\themes\i in <b>C:\wamp\www\project\web\app\themes\project\vendor\illuminate\view\FileViewFinder.php</b> on line <b>137</b><br />
@ned Confirmed this is a bug with our Blade implementation which is causing incompatibility with the Give plugin - hope to have this fixed soon. Thanks for reporting
@simmbiote9999 Still trying to reproduce this. What version of PHP are you on?
I’m not certain, but I think the problem is maybe the findInPath function. I added var_dump to see where it’s looking - it doesn’t reach the /templates/ folder.
protected function findInPaths($name, $paths) { foreach ((array) $paths as $path) { foreach ($this->getPossibleViewFiles($name) as $file) { $file = str_replace('//','/',$file); var_dump($file); if ($this->files->exists($viewPath = $path.'/'. $file)) { return $viewPath; } } } throw new InvalidArgumentException("View [$name] not found."); }
I have the same issue and I think I have managed to localize the problem a bit.
In the file: src/helpers.php:26 there is a function named “template($file, $data = [])”.
When I logged out the value of the variable $file it contained the whole path: “C:\Users\daniel.hansson\Development\My-project-folder/wp-content/themes/sample-theme/templates/index.blade.php”
So I tried to override it like this and it works better:
I haven’t yet localized where the whole path is set or how that part works, but I thought I post this here to point you guys in the right direction maybe.