zoeck Posted yesterday at 11:36 AM Share Posted yesterday at 11:36 AM Hello @bernhard, I have just installed the RockFrontend update to v3.23.1 (form v3.21.2) in my dev environment. Unfortunately, my Processwire frontend no longer works at all. The whole thing has always worked without problems until now, my dev environment runs with ddev (Windows WSL2). The problem occurs from v3.22.0 onwards. ProcessWire\WireException Unable to load Latte File: /site/modules/RockFrontend/RockFrontend.module.php:2390 2380: // for regular page rendering we want the auto-prepend-layout feature 2381: // but for RockPdf rendering we don't want it. 2382: if ($this->noLayoutFile) $withLayout = false; 2383: else { 2384: $withLayout = $file === __DIR__ . "/default.latte" 2385: || dirname($file) . "/" === $this->wire->config->paths->templates; 2386: } 2387: 2388: // load latte and return rendered file 2389: $latte = $this->loadLatte($withLayout); 2390: if (!$latte) throw new WireException("Unable to load Latte"); 2391: return $latte->renderToString($file, $vars); 2392: } 2393: 2394: /** In the log file: rock‑frontend 29‑10‑2024 12:32:24 https://mypage.ddev.site/ Class "Latte\Engine" not found When I install v3.21.2 again, everything works again without any problems. Is there anything else that needs to be taken care of when configuring the new versions? Thanks 🙂 Link to comment Share on other sites More sharing options...
bernhard Posted yesterday at 12:17 PM Share Posted yesterday at 12:17 PM Hi @zoeck thx for the report. 40 minutes ago, zoeck said: Is there anything else that needs to be taken care of when configuring the new versions? That's definitely not intended. Otherwise I'd bumped the version to v4.0 to indicate a breaking change. There should be no changes necessary when upgrading the module. Could you please look into this and let me know what you can find? Link to comment Share on other sites More sharing options...
zoeck Posted yesterday at 12:40 PM Author Share Posted yesterday at 12:40 PM Hi @bernhard, I think i have found the cause of the error, i changed the Line 184 in RockFrontend.module.php to: require_once __DIR__ . "/vendor/autoload.php"; Just checked "$this->path" and it's null? Link to comment Share on other sites More sharing options...
bernhard Posted yesterday at 01:57 PM Share Posted yesterday at 01:57 PM Thx @zoeck seems I made a mistake when refactoring! Should be fixed in v3.23.2 🙂 Thank you! Link to comment Share on other sites More sharing options...
zoeck Posted 13 hours ago Author Share Posted 13 hours ago With the new version everything works again, thank you @bernhard 🙂 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now