Git Product home page Git Product logo

base's Introduction

TypiCMS

Software License Larastan

TypiCMS is a modular multilingual content management system built with Laravel. Out of the box you can manage pages, events, news, places, menus, translations, etc.

TypiCMS screenshot

Table of contents

Features

URLs

This kind of URLs are managed by the CMS:

Modules:

  • /en/events/slug-in-english
  • /fr/evenements/slug-en-francais

Pages:

  • /en/parent-pages-slug-en/subpage-slug-en/page-slug-en
  • /fr/parent-pages-slug-fr/subpage-slug-fr/page-slug-fr

Requirements

  • PHP >= 7.2
  • MySQL 5.7.8
  • BCMath PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Installation

First install Composer

  1. Create a new project

    composer create-project typicms/base mywebsite
    
  2. Enter the newly created folder

    cd mywebsite
    
  3. Migration of the database, seeding, user creation, npm installation and directory rights

    php artisan typicms:install
    

Note: if you use MariaDB, set 'mariadb' to true in config/typicms.php

Go to http://mywebsite.test/admin and log in.

Assets

Assets are managed with Laravel Mix. In order to work on assets, you need to install Node.js, then go to your website folder and run these commands:

  1. Install npm packages (in directory node_modules)

    npm install
    
  2. Compile admin and public assets

    npm run dev
    

Locales configuration

  1. Set the locales in config/typicms.php, the first key of this array is the main locale and should be the same as the locale defined in config/app.php.
  2. Set main_locale_in_url in config/typicms.php to true or false.

Installation of a module

This example is for the News module. After these steps, the module will appear in the sidebar of the back office. If you need to customize it, you can publish it!

  1. Install a module with Composer

    composer require typicms/news
    
  2. Add TypiCMS\Modules\News\Providers\ModuleServiceProvider::class, to config/app.php, before TypiCMS\Modules\Core\Providers\ModuleServiceProvider::class,

  3. Publish the views and migrations

    php artisan vendor:publish
    
  4. Migrate the database

    php artisan migrate
    

Module scaffolding

Let’s create a module called Cats.

  1. Create the module with artisan:

    php artisan typicms:create cats
    
  2. The module is in /Modules/Cats, you can customize it

  3. Add TypiCMS\Modules\Cats\Providers\ModuleServiceProvider::class, to config/app.php, before TypiCMS\Modules\Core\Providers\ModuleServiceProvider::class,

  4. Migrate the database

    php artisan migrate
    

Available modules

Each module can be published.

Pages

Pages are nestable with drag and drop, on drop, URIs are generated and saved in the database. Each translation of a page has its own route. A page can be linked to a module. A page can have multiple sections.

Menus

Each menu has nestable entries. One entry can be linked to a page or URL. You can return a HTML formated menu with Menus::render('menuname') or @menu('menuname').

Projects

Projects have categories, projects URLs follows this pattern: /en/projects/category-slug/project-slug

Tags

Tags are linked to projects and use the Selectize plugin. The tags module has many to many polymorphic relations so a tag can be easily linked to any module.

Events

Events have starting and ending dates.

News

News module.

Contacts

Frontend contact form and admin side records management.

Partners

A partner has a logo, website URL, title and body content.

Files

The files module allows you to upload and organize images, documents and folders. It works with DropzoneJS for the uploading proccess. Thumbnails are generated on the fly thanks to Croppa.

If you want to store the original images on a storage service such as Amazon s3 and your cropped images on the local disk, set FILESYSTEM_DRIVER=s3 in your .env file and in config/croppa.php set 'src_dir' => 'filesystem.default.driver' and 'crops_dir' => storage_path('app/public').

Users and roles

User registration can be enabled through the settings panel (/admin/settings). Roles and Permissions are managed with spatie/laravel-permission.

Blocks

Blocks are useful to display custom content in your views. You can display the content of a block with Blocks::render('blockname') or @block('blockname').

Translations

Translations can be stored in the database through the admin panel (/admin/translations).

You can get a translation from the database with the standard Laravel functions: __('Key'), trans('Key') or @lang('Key').

Sitemap

A sitemap is generated by reading all pages available in your project. The URL is /sitemap.xml.

Settings

Change the website title, logo, and other options in the settings panel.

History

created, updated, deleted, online and offline actions are logged in database. Latest records are displayed in the back office’s dashboard.

Facades

Each modules has a facade that give you access to the repository, you can call for example News::latest(3) to get the three latest news. Check available methods in each module’s repository.

Artisan commands

Commands are located in /vendor/typicms/core/src/Commands

Installation of TypiCMS

php artisan typicms:install

Initial migration and seed

php artisan typicms:database

This command is triggered by typicms:install

Publish a module

If you want to modify a module, for example to add some fields or a relation, you have to publish it by running:

php artisan typicms:publish <modulename>

The module is now located in the /Modules directory.

These steps will be executed:

  1. Publishing of views and migrations for Pages module.
  2. Copying of everything excepted views and migrations from /vendor/typicms/pages/src to /Modules/Pages.
  3. Running composer remove typicms/pages.

When a module is published, it will be tracked by git and you will be able to make changes in /Modules/Modulename directory without loosing changes when running composer update.

Changelog

Please see CHANGELOG for more information on what has changed.

Contributing

Please see CONTRIBUTING for details.

Credits

License

TypiCMS is an open-source software licensed under the MIT license.

base's People

Contributors

chriskonnertz avatar dependabot[bot] avatar hdvinnie avatar hooper21 avatar kezkankrayon avatar ldaril avatar rperello avatar scil avatar sdebacker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

base's Issues

Migration fails

I have fresh TypiCMS/Base repo installed (composer install, created mysql 5.7 database).
When I run php artisan migrate I get this:

[Illuminate\Database\QueryException] SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL : alter table 'typicms_permission_user' add constraint 'permission_user_use r_id_foreign' foreign key ('user_id') references 'typicms_users' ('id') on delete cascade)

[PDOException] SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint

ideas

Hi TypiCMS developer,

You have done a very very good work, congratulations and thank you very very much for publishing it open source.

I am trying to make a website for a friend who speaks German, English and French, so I tried to modify the code but no success at all. Maybe a milestone to add language management system would be a very good next step.

I do a little work on lostideaslab.com, and I thought I may can do a little for TypiCMS, what do you think?

blade templates are not parsed

After a clean installation. My admin dashboard shows variables from the template without parsing them. Something like :
{{ model.created_at | dateFromMySQL:'short' }} {{ model.title }} {{ model.title }} ({{ model.locale }}) {{ model.historable_table }} {{ model.action }} {{ model.user_name }}

Any solutions ?
Thank you

Module routes are not considered

Except the admin url, all the module routes are ignored and not even shown using 'php artisan route:list'
Only the pages route is considered and it looks like it is overriding the others. Trying events/{slug} for example throw a 404 error.

...

GET|HEAD | {uri}||TypiCMS\Modules\Pages\Http\Controllers\PublicController@uri|publicAccess,publicLocale |

vendor/typicms/history/src/repositories

EloquentHistory
CacheDecorator
HistoryInterface

has colliding function name empty()

this resulting in:

syntax error, unexpected 'empty' (T_EMPTY), expecting identifier (T_STRING)

on PHP 5.6.14

Changing name to f.e. clear() seems to be good workaround and quick fix, but need another steps to bring back history clear function online.

Pages & parent_id

Hi!

I cannot find if there is removed function to put page under other page as child or there is some issue?

And if it is new way, so how to make submenus?

Installation Failed Class 'Memcached' not found

I tried composer create-project typicms/base. I am getting an error
PHP Fatal error: Class 'Memcached' not found in /var/www/typicms/vendor/laravel/framework/src/Illuminate/Cache/MemcachedConnector.php on line 51

I don't have php5-memcached extension installed. However My point is I don't want to use Memcache What If I want to use redis. Can you please suggest what else should I do to make it work

FatalErrorException when I login first time, maybe because website title

Left top corner has msg:

Untitled website

following err msg in sidebar :

FatalErrorException in helpers.php line 49: Maximum function nesting level of '100' reached, aborting!

    in helpers.php line 49
    at FatalErrorException->__construct() in HandleExceptions.php line 127
    at HandleExceptions->fatalExceptionFromError() in HandleExceptions.php line 112
    at HandleExceptions->handleShutdown() in HandleExceptions.php line 0
    at app() in helpers.php line 157
    at config() in TypiCMS.php line 90
    at TypiCMS->title() in Facade.php line 207
    at Facade::__callStatic() in MasterViewComposer.php line 10
    at TypiCMS::title() in MasterViewComposer.php line 10
    at MasterViewComposer->compose() in Factory.php line 467
    at call_user_func_array:{G:\Documents\Dropbox\zc\vagrant\www\typ2\vendor\laravel\framework\src\Illuminate\View\Factory.php:467}() in Factory.php line 467
    at Factory->Illuminate\View\{closure}() in Dispatcher.php line 221
    at call_user_func_array:{G:\Documents\Dropbox\zc\vagrant\www\typ2\vendor\laravel\framework\src\Illuminate\Events\Dispatcher.php:221}() in Dispatcher.php line 221
    at Dispatcher->fire() in Factory.php line 497
    at Factory->callComposer() in View.php line 105
    at View->renderContents() in View.php line 81
    at View->render() in Renderable.php line 15
    at SidebarAppend->render() in 1a20227eda05613a36efec504123390d line 18
    in PhpEngine.php line 40
    at PhpEngine->evaluatePath() in CompilerEngine.php line 58
    at CompilerEngine->get() in View.php line 138
    at View->getContents() in View.php line 107
    at View->renderContents() in View.php line 81
    at View->render() in Renderable.php line 15
    at SidebarItem->render() in 5899d10898645b4c48d917223e8f9a66 line 9
    in PhpEngine.php line 40
    at PhpEngine->evaluatePath() in CompilerEngine.php line 58
    at CompilerEngine->get() in View.php line 138
    at View->getContents() in View.php line 107
    at View->renderContents() in View.php line 81
    at View->render() in Renderable.php line 15
    at SidebarGroup->render() in SidebarManager.php line 131
    at SidebarManager->render() in e658fde039370aa0ac9377d08dd04833 line 2
    in PhpEngine.php line 40
    at PhpEngine->evaluatePath() in CompilerEngine.php line 58
    at CompilerEngine->get() in View.php line 138
    at View->getContents() in View.php line 107
    at View->renderContents() in View.php line 81
    at View->render() in f240dd272943d19fe17a4fa2e21ac163 line 39
    in PhpEngine.php line 40
    at PhpEngine->evaluatePath() in CompilerEngine.php line 58
    at CompilerEngine->get() in View.php line 138
    at View->getContents() in View.php line 107
    at View->renderContents() in View.php line 81
    at View->render() in 301cbb0171f86e26080c9cb2ef475e6d line 32
    in PhpEngine.php line 40
    at PhpEngine->evaluatePath() in CompilerEngine.php line 58
    at CompilerEngine->get() in View.php line 138
    at View->getContents() in View.php line 107
    at View->renderContents() in View.php line 81
    at View->render() in Response.php line 51

where could I set site title?

Cannot use Symfony\Component\HttpFoundation\File\UploadedFile

I have a fresh install of TypiCMS, everything runs smoothly on local XAMPP.
This error appears when I try to upload a file (image) in the admin section for the Pages, New, Events, Slides, Categories, Projects.

I am talking about the single file upload form. The multiple upload form (dropzone js) for galleries works fine.

Here is the error :

FatalErrorException in RedirectResponse.php line 11:
Cannot use Symfony\Component\HttpFoundation\File\UploadedFile as UploadedFile because the name is already in use

The image is still uploaded and cropped though. Error seems to appear after the file manipulation.

Update : Tested online on my host, and everything works fine : no errors. It is probably due to a limitation of my local installation. You can close this issue.

How to add TypiCMS/Tags ?

after add provider, run php artisan, following:

php artisan



  [Illuminate\Database\QueryException]
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'typ.typicms_tags
  ' doesn't exist (SQL: select `tag` from `typicms_tags`)






  [PDOException]
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'typ.typicms_tags
  ' doesn't exist



Events

hi I have a problem in the events Module, when I created an event it is not displayed in the frontend

i have some problem

I try to install Modules. Everything was successfully installed and i see the Module names in the admin nav but when i click the Module its 404 error.
Can you tell me what missed it?

ErrorException in News Module

Hello,
firstly very good job! I have a fresh install of TypiCMS, everything runs smoothly on homestead. When I tried to install News module everything was OK in backend - the option News in menu has appeared, but in frontend I got the following error:
ErrorException in UrlGenerator.php line 307: Route [en.news.feed] not defined. (View: /home/vagrant/Code/typiCMS/resources/views/vendor/core/public/_feed-links.blade.php) (View: /home/vagrant/Code/typiCMS/resources/views/vendor/core/public/_feed-links.blade.php) (View: /home/vagrant/Code/typiCMS/resources/views/vendor/core/public/_feed-links.blade.php)
Could you please help me with this issue?
Thanks in advance,
George

Large database table in admin

Hi Samuel,

We have a project with an admin module which has to manage thousands of records. I noticed that the API is serving the entire dataset and then the paging is done with angular. For small tables this is convenient but for large ones it takes forever to load. Have you thought about adding some limits in the database requests and using ajax for loading each page?

Nasko.

no css appeared after installation

i follow all steps menthoied

Create a new project

composer create-project typicms/base mywebsite
Enter the newly created folder

cd mywebsite
DB migration and seed, user creation, npm installation, bower installation and directory rights

php artisan typicms:install
Go to http://mywebsite.local/admin and log in.

installation was successful but
the page without any css styling and no css found at all !!

Nginx 502 error on fresh installtion

Hey,
I get 500 Error from Nginx when I install the package.
I've tried to install the original Laravel package and it works with the exact same settings.

Disabling all "Online" languages throws error

Error 404
Sorry, this page was not found.
Go to our homepage?

I know someone would not likely do this but in the event they do they will have to manually get to the db to enable one of the languages to fix this error.

API Endpoints not respecting public setting.

I'm trying to get TypiCMS configured and even after granting access to the "Public" group in the dashboard, the api endpoints return 401 error until I actually log in.

Where it seems to be getting hung up is the app/HTTP/Middleware/Authenticate L19-29

The call is getting passed through this no matter the settings, however if I disable this, then the dashboard doesn't redirect correctly.

Any advice.

Thanks.

Admin backend on all versions of IE broken

Not sure if you can reproduce, but for me the admin backend is breaking with all versions if IE (9-Edge)
I've tested this on an existing project, and a fresh installation of typicms

The site works correct on Chrome, Safari, and Firefox

Here's the error I'm seeing

TypeError: Object doesn't support this action
   at Anonymous function (http://pretendco.com/js/admin/components.min.js:13:22704)
   at i (http://pretendco.com/js/admin/components.min.js:4:21865)
   at Anonymous function (http://pretendco.com/js/admin/components.min.js:4:20272)
   at i (http://pretendco.com/js/admin/components.min.js:4:21865)
   at Anonymous function (http://pretendco.com/js/admin/components.min.js:4:22458)
   at r (http://pretendco.com/js/admin/components.min.js:4:21488)
   at i (http://pretendco.com/js/admin/components.min.js:4:21822)
   at Anonymous function (http://pretendco.com/js/admin/components.min.js:5:11916)
   at m (http://pretendco.com/js/admin/components.min.js:5:1481)
   at s (http://pretendco.com/js/admin/components.min.js:4:30008)

And After unminifying components.js

TypeError: Object doesn't support this action
   at Anonymous function (http://pretendco.com/js/admin/components.min.js:52609:9)
   at invoke (http://pretendco.com/js/admin/components.min.js:15631:9)
   at enforcedReturnValue (http://pretendco.com/js/admin/components.min.js:15470:7)
   at invoke (http://pretendco.com/js/admin/components.min.js:15631:9)
   at Anonymous function (http://pretendco.com/js/admin/components.min.js:15430:13)
   at getService (http://pretendco.com/js/admin/components.min.js:15577:11)
   at injectionArgs (http://pretendco.com/js/admin/components.min.js:15600:9)
   at invoke (http://pretendco.com/js/admin/components.min.js:15623:7)
   at Anonymous function (http://pretendco.com/js/admin/components.min.js:20882:11)
   at nodeLinkFn (http://pretendco.com/js/admin/components.min.js:19954:11)

And the Screen shot

screen shot 2016-03-23 at 10 15 34 pm

Note: The news model here has a couple hundred entries that are not appearing
Any advice would be much appericaited.

optimization auggestions

And what suggestions about optimization of queries ?

With the tableset of 10376 records I got query timings showed in attachment.(front side)

39 seconds is baaaaaddd.....

in the backend side i got 6 second for select all from typicms_news and 55 second fo select all from typicms_news_translations.

it's all about All() method from repositories

limiting to about 2500 records shorts timings, but it's not the point for frontend...

i though about:

  1. in frontend homepage using cloned All() with limit to 50 last records - it's enough for blocks - maybe the best solution
  2. Somehow force to query All() just once at the beginning and then take qhat i need in blocks
  3. In backend i've added list without angular, just jquery, but it's still not enough, planning to make portions of records grouped by year of publication - feeding the list with data selected by year from date.

What' you can suggest also ?

Is it a way to optimize All() in any way ?

I've also done some VARCHAR-->CHAR tables optimization but with no significant results...

PS: Anyway - the module generator rocks and it's really helpful :)
timings

How to install / enable additional modules?

Hi,

I just tried an install of the 2.0/L5 series

I got similar mysql issue as reported by others in closed issue #3
But install does proceed after a manual setup of env file

However installation then appears to be short of a lot of modules, such as:
Categories, Projects, News, Events, Places, Partners

These will install with a manual inclusion in composer
but then no migration, or dashboard views etc

Is this something that is coming?

Regards

l.

Page editing issue

I can not edit page. When I press edit button editor opens, but there is no content in ckeditor, nor meta information...

If I add some content now and save the page - that new content will be displayed on front end, but when I come back to edit that page again, ckeditor is empty...

Any idea why is this happening?

CamelCase typicms:create errors

So I found an interesting edge case.

if I do artisan typicms:create Tagcollection everything works fine

However if I do artisan typicms:create TagCollection with a camel case I get this in the admin portal

Looks like a case sensitive fs issue, in the vein of this https://laracasts.com/discuss/channels/general-discussion/homestead-and-case-sensitivity

(Or is it splitting on the second capital letter and inserting an underscore?)

Next ErrorException: No hint path defined for [tag_collections]. (View: /home/vagrant/Code/MyCatsProject/resources/views/vendor/core/admin/index.blade.php) in /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:112
Stack trace:
#0 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(44): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(InvalidArgumentException), 1)
#1 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(59): Illuminate\View\Engines\PhpEngine->evaluatePath('/home/vagrant/C...', Array)
#2 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/View/View.php(147): Illuminate\View\Engines\CompilerEngine->get('/home/vagrant/C...', Array)
#3 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/View/View.php(118): Illuminate\View\View->getContents()
#4 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/View/View.php(83): Illuminate\View\View->renderContents()
#5 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Http/Response.php(53): Illuminate\View\View->render()
#6 /home/vagrant/Code/MyCatsProject/vendor/symfony/http-foundation/Response.php(197): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#7 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1030): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#8 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(94): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#9 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#10 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#11 /home/vagrant/Code/MyCatsProject/vendor/typicms/core/src/Http/Middleware/UserPrefs.php(26): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#12 [internal function]: TypiCMS\Modules\Core\Http\Middleware\UserPrefs->handle(Object(Illuminate\Http\Request), Object(Closure))
#13 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#14 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#15 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#16 /home/vagrant/Code/MyCatsProject/vendor/typicms/core/src/Http/Middleware/JavaScriptData.php(39): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#17 [internal function]: TypiCMS\Modules\Core\Http\Middleware\JavaScriptData->handle(Object(Illuminate\Http\Request), Object(Closure))
#18 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#19 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#20 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#21 /home/vagrant/Code/MyCatsProject/vendor/typicms/core/src/Http/Middleware/AdminLocale.php(38): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#22 [internal function]: TypiCMS\Modules\Core\Http\Middleware\AdminLocale->handle(Object(Illuminate\Http\Request), Object(Closure))
#23 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#24 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#25 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#26 /home/vagrant/Code/MyCatsProject/vendor/typicms/core/src/Http/Middleware/Authorization.php(27): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#27 [internal function]: TypiCMS\Modules\Core\Http\Middleware\Authorization->handle(Object(Illuminate\Http\Request), Object(Closure))
#28 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#29 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#30 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#31 /home/vagrant/Code/MyCatsProject/app/Http/Middleware/Authenticate.php(28): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#32 [internal function]: App\Http\Middleware\Authenticate->handle(Object(Illuminate\Http\Request), Object(Closure))
#33 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#34 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#35 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#36 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(64): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#37 [internal function]: Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#38 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#39 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#40 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#41 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#42 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#44 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#45 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#46 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#47 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#48 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#49 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#51 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(59): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#52 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#53 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#54 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#55 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#56 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#57 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#58 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(96): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#59 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(54): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(TypiCMS\Modules\TagCollections\Http\Controllers\AdminController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'index')
#60 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Route.php(174): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'TypiCMS\\Modules...', 'index')
#61 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Route.php(140): Illuminate\Routing\Route->runController(Object(Illuminate\Http\Request))
#62 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Router.php(703): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#63 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#64 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#65 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#66 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#67 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Router.php(705): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#68 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Router.php(678): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#69 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Router.php(654): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#70 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(246): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#71 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#72 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(52): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#73 /home/vagrant/Code/MyCatsProject/vendor/barryvdh/laravel-debugbar/src/Middleware/Debugbar.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#74 [internal function]: Barryvdh\Debugbar\Middleware\Debugbar->handle(Object(Illuminate\Http\Request), Object(Closure))
#75 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#76 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#77 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#78 /home/vagrant/Code/MyCatsProject/vendor/edvinaskrucas/notification/src/Krucas/Notification/Middleware/NotificationMiddleware.php(58): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#79 [internal function]: Krucas\Notification\Middleware\NotificationMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#80 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#81 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#82 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#83 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(44): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#84 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#85 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#86 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#87 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#88 /home/vagrant/Code/MyCatsProject/vendor/typicms/core/src/Http/Middleware/PublicLocale.php(50): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#89 [internal function]: TypiCMS\Modules\Core\Http\Middleware\PublicLocale->handle(Object(Illuminate\Http\Request), Object(Closure))
#90 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#91 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#92 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#93 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(62): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#94 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#95 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#96 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#97 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#98 /home/vagrant/Code/MyCatsProject/vendor/dingo/api/src/Http/Middleware/Request.php(95): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#99 [internal function]: Dingo\Api\Http\Middleware\Request->handle(Object(Illuminate\Http\Request), Object(Closure))
#100 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#101 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#102 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(32): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#103 [internal function]: Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#104 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#105 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(132): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#106 /home/vagrant/Code/MyCatsProject/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(99): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#107 /home/vagrant/Code/MyCatsProject/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#108 {main}  

SQLSTATE[42S02]: Base table or view not found:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hrv_social.typicms_pages' doesn't exist (SQL: select * from typicms_pages where (select count(*) from typicms_page_translations where typicms_page_translations.page_id = typicms_pages.id and status = 1 and locale = en) >= 1 and module != )

This occurs on either manual installation or attempt @ auto installation on Laravel Framework version 5.1.26 (LTS). Any direction would be helpful.

Installation: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected

Hi,

I am trying to install the CMS on local machine, using MAMP and get the following error after being asked for my database password:

SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected

I've tried including the below snippet within the config/database.php file, which helps (as without it I get a different error), but doesn't resolve this issue.

'unix_socket'   => '/Applications/MAMP/tmp/mysql/mysql.sock',

Any help would be greatly appreciated.

Regards,
Mat

$model in master.blade

Hi,
How can i get $model in master.blade because i have error var not found? I think that master.blade should be getting from pages/public/ but now is getting from views/public/ and that is why this error shows.

Problems with php artisan typicms:install

I'm having problems with your artisan typicms:install command. Specifically, when I respond to the prompts for Database Name, Username, and Password, it fails with the message:

 [Illuminate\Database\QueryException]
  SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for u
  ser ''@'localhost' to database 'assist' (SQL: CREATE DATABASE IF NOT EXISTS
   `assist`)

Please note that I get this message _despite the fact that I typed in a username and password_. Am I doing something wrong or is there something else that I should be doing?

Redirects to root directory

I created a new module named "News" by executing command: composer require typicms/news. I also added providers in config/app.php, have publish views and migrations and migrated the database too.

The only problem I am facing is that whenever the url I given, it redirects me to the root directory of my project, that is, http://localhost/mywebsite/public/

Even, if I give invalid route like http://localhost/mywebsite/public/foobar, instead of showing me error, it again redirects to the root directory.

I have checked the htaccess and routes.php file and there is no modifications.

Regards:
Adnan

Documentation & Community

Hello,

Is there a better documentation available? I would like to try TypiCMS out, but i need some custom content types and page layouts.

Error install - Memcahed problem

I have received the error bellow during TypiCms installation:

php composer.phar create-project typicms/base mywebsite
...
Generating autoload files
PHP Fatal error:  Class 'Memcached' not found in /var/www/projects/dev/typicms/vendor/laravel/framework/src/Illuminate/Cache/MemcachedConnector.php on line 51

  [Symfony\Component\Debug\Exception\FatalErrorException]  
  Class 'Memcached' not found                              

Script php artisan clear-compiled handling the post-install-cmd event returned with an error

  [RuntimeException]                                                           
  Error Output: PHP Fatal error:  Class 'Memcached' not found in /var/www/pro  
  jects/dev/typicms/vendor/laravel/framework/src/Illuminate/Cache/MemcachedCo  
  nnector.php on line 51    


php artisan typicms:install
PHP Fatal error:  Class 'Memcached' not found in /var/www/projects/dev/typicms/vendor/laravel/framework/src/Illuminate/Cache/MemcachedConnector.php on line 51

  [Symfony\Component\Debug\Exception\FatalErrorException]  
  Class 'Memcached' not found                              

I have tried to install Memcached. But I've recceived this message:

aptitude install php5-memcached
The following NEW packages will be installed:
  php5-memcached{b} 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 39.1 kB of archives. After unpacking 151 kB will be used.
The following packages have unmet dependencies:
 php5-memcached : Depends: php5-common (= 5.5.25-1~dotdeb+7.1) but 5.6.9+dfsg-0+deb8u1 is installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     php5-memcached [Not Installed] 

Change php5-common would produce some problems. I've tried to install only Memcached, but the error haven't changed.

What must I do?

Problem installing

thanks very much for this, been looking forward to it.

But it doesnt install. I downloaded zip, unzip and...

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - typicms/base v2.0.0 requires typicms/core ~1.8 -> no matching package found.
    - Installation request for typicms/base 1.0.0 -> satisfiable by typicms/base[1.0.0].
    - typicms/files v2.0.0 requires typicms/core ~2.0.0 -> satisfiable by typicms/core[v2.0.0, v2.0.1, v2.0.2].
    - typicms/core v2.0.0 requires typicms/base ~2.0.0 -> satisfiable by typicms/base[v2.0.0, v2.0.1, v2.0.2, v2.0.3].
    - typicms/core v2.0.1 requires typicms/base ~2.0.0 -> satisfiable by typicms/base[v2.0.0, v2.0.1, v2.0.2, v2.0.3].
    - typicms/core v2.0.2 requires typicms/base ~2.0.0 -> satisfiable by typicms/base[v2.0.0, v2.0.1, v2.0.2, v2.0.3].
    - Can only install one of: typicms/base[v2.0.1, 1.0.0].
    - Can only install one of: typicms/base[v2.0.2, 1.0.0].
    - Can only install one of: typicms/base[v2.0.3, 1.0.0].
    - Installation request for typicms/files ~2.0.0 -> satisfiable by typicms/files[v2.0.0].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

dont set 777 on uploads dir

...
this isnt really a good idea.
at least ask me the question, or offer suggestion it might be necessary if things dont work.

also about pulling in all those node bower modules to the local install - couldnt they be global

regards

l.

could i install Typicms on shared hosting?

i have install other projects like yours and it was laravel 5 and it works but this one i can not becauase i have to install Node and Bower think it wont work out

i hope any suggestion for that

Thank you in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.