新主题在Respond 6 cms中不起作用

时间:2016-10-22 07:06:53

标签: themes respondcms

我复制了一个开箱即用的材料"主题和创建我的新主题基于相同。 当我尝试创建新网站时,它会显示在列表中。但是当我选择一个主题并点击"创建"它给了我一个错误。

Lumene错误日志如下所示:

  

[2016-10-22 06:44:57] lumen.ERROR:exception' ErrorException'带有消息'未定义的变量:main_content'在C:\ xampp \ htdocs \ respond \ app \ app \ Respond \ Models \ Page.php:652

我已经在我的页面中创建了一个html标签main,还有一个div具有role =" main"但似乎我仍然缺少一些东西。

有人可以指导我查看正确的问题。

Stacktrace就在这里:

  

[2016-10-22 06:47:31] lumen.ERROR:exception' ErrorException'带有消息'未定义的变量:main_content'在C:\ xampp \ htdocs \ respond \ app \ app \ Respond \ Models \ Page.php:652

堆栈追踪:

0 C:\xampp\htdocs\respond\app\app\Respond\Models\Page.php(652): Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}(8, 'Undefined varia...', 'C:\\xampp\\htdocs...', 652, Array)
1 C:\xampp\htdocs\respond\app\app\Respond\Models\Page.php(507): App\Respond\Models\Page::refreshJSON(Object(App\Respond\Models\User), Object(App\Respond\Models\Site))
2 C:\xampp\htdocs\respond\app\app\Respond\Libraries\Publish.php(167): App\Respond\Models\Page::listAll(Object(App\Respond\Models\User), Object(App\Respond\Models\Site))
3 C:\xampp\htdocs\respond\app\app\Respond\Models\Site.php(162): App\Respond\Libraries\Publish::publishPlugins(Object(App\Respond\Models\User), Object(App\Respond\Models\Site))
4 C:\xampp\htdocs\respond\app\app\Http\Controllers\SiteController.php(44): App\Respond\Models\Site::create('manual9', '/template', 'mygalaxy.shaile...', 'shailesh')
5 [internal function]: App\Http\Controllers\SiteController->create(Object(Illuminate\Http\Request))
6 C:\xampp\htdocs\respond\app\vendor\illuminate\container\Container.php(507): call_user_func_array(Array, Array)
7 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(593): Illuminate\Container\Container->call(Array, Array)
8 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(560): Laravel\Lumen\Application->callControllerCallable(Array, Array)
9 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(533): Laravel\Lumen\Application->callLumenController(Object(App\Http\Controllers\SiteController), 'create', Array)
10 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(501): Laravel\Lumen\Application->callControllerAction(Array)
11 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(486): Laravel\Lumen\Application->callActionOnArrayBasedRoute(Array)
12 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(383): Laravel\Lumen\Application->handleFoundRoute(Array)
13 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(636): Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}()
14 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(389): Laravel\Lumen\Application->sendThroughPipeline(Array, Object(Closure))
15 C:\xampp\htdocs\respond\app\vendor\laravel\lumen-framework\src\Concerns\RoutesRequests.php(334): Laravel\Lumen\Application->dispatch(NULL)
16 C:\xampp\htdocs\respond\app\public\index.php(28): Laravel\Lumen\Application->run()
17 {main}  

0 个答案:

没有答案