Giter Site home page Giter Site logo

wiki's Introduction

ExpressionEngine Wiki

The ExpressionEngine Wiki provides a powerful wiki that integrates seamlessly with ExpressionEngine. See the Wiki wiki (wiki!) for a more detailed explanation of what a wiki is and what you can do with it.

The Wiki Module requires ExpressionEngine to function.

Changelog

5.0.0

  • Updated module to be 6.0 compatible

4.0.0

  • Updated module to be 4.0 compatible

3.0.2

  • Fixed MySQL 7 compatibility issue

3.0.1

  • Travis and composer compatibility

3.0.0

  • Updated module to be 3.0 compatible

License

Copyright (C) 2016 EllisLab, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL ELLISLAB, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of EllisLab, Inc. shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from EllisLab, Inc.

wiki's People

Contributors

pkriete avatar robinsowell avatar wesbaker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

wiki's Issues

Edit Wiki Entry Error

Brand new install of EE5.2.6 / Wiki 3.0.2 - receive this error when attempting to edit a wiki entry:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'm.url' in 'field list':
SELECT u.*, m.member_id, m.screen_name, m.email, m.url FROM (exp_wiki_uploads u) JOIN exp_members m ON m.member_id = u.upload_author WHERE u.wiki_id = 2 ORDER BY upload_date desc LIMIT 10

'Uncategorized links' exception caught with EE v3.2.0

When clicking "Uncategorized links", the following exception is thrown:

No such property: 'logger' on EllisLab\ExpressionEngine\Legacy\Facade

/opt/sites/utilities/wiki/htdocs/system/ee/EllisLab/ExpressionEngine/Legacy/Facade.php:107

screen shot 2016-03-15 at 3 05 00 pm

Namespace display in cp is ugly

Display of the member roles is ugly AND you can't entirely unselect all. So I left superadmin in there- they probably shouldn't be and if you don't select them it's moot. But this way, you can still unselect all of the non-super.

Screen Shot 2022-02-16 at 5 43 26 PM

Wiki not playing well with EE6

Hey guys, I'm still very much in love with EE Wiki, and a constant user for our internal team documentation. Running into some show stopping issues, and wanted to consolidate all the issues into one post for ya.

EE Version: 6.0.3
Wiki Version: 3.0.2
Wiki TOC Version: 3.0.0

1. Cannot edit Wiki in EE6

https://domain.com/admin.php?/cp/addons/settings/wiki/update&wiki_id=1

This now results in the following error, not allowing me to edit the wiki/category:

Unknown field MemberGroup.group_id
ee/ExpressionEngine/Service/Model/Query/Select.php:706

Stack Trace: Please include when reporting this error

2. Deprecated functions in Developer Log

I get hit with a dozen or so "Deprecated function" errors in the Dev Log when editing the wiki from front-end.

Deprecated function assign_parameters() called in
/var/www/path/system/user/addons/wiki/mod.wiki.php
on line 1657.

From template tag
exp:wiki:__construct
Deprecated function prep_url() called in
/var/www/path/system/user/addons/wiki/mod.wiki.php
on line 1374.

From template tag
exp:wiki:__construct
in wiki/index.

Deprecated since 4.2.0. Use ee('Format')->make('Text', $str)->url() instead.
Deprecated function assign_variables() called in
/var/www/path/system/user/addons/wiki/mod.wiki.php
on line 1345.

From template tag
exp:wiki:__construct
in wiki/index.

Deprecated since 4.0. Use ee('Variables/Parser')->extractVariables() instead.

3. Wiki TOC may be dead?

Installed the TOC add-on and now all my formatting seemed to die simultaneously and the [TOC] variable is not returning anything... very bizarre?

4. Markdown Support?

Last but not least, any chance we'll get Markdown support? Would love to use a modern framework for typing rather than bbcode ;)

Images for Wiki Documentation....

All images for the documentation live here so we can link to them on the wiki's wiki. Because Github is funky like that.

Wiki Article Template - Image 2
wiki_article_cats

Wiki Article Template - Image 1
wiki_article_highlight

Wiki Special Associated Pages Template
wiki_associated_pages

Wiki Special Categories Template
wiki_categories_highlight

wiki_cp_namespaces

Wiki Edit Template
wiki_edit_files

Wiki Edit Template
wiki_edit_highlight

Wiki Special Files Template
wiki_files_highlight

Wiki History Page
wiki_history_highlight

Wiki Article Page
wiki_page_highlight

Wiki Special Recent Changes Template
wiki_recentchanges

Wiki Special Search Results Template
wiki_search_results

Wiki Article Template - Image 3
wiki_single_cat

Wiki File Template
wiki_single_file

Wiki Special Titles Template
wiki_titles_list

Wiki Special Uncategorized Template
wiki_uncategorized

Wiki Special Upload Form Template
wiki_upload_form

Users have full access to all wikis by default

The Wiki module is using access permissions based on roles as opposed to the old member groups which was renamed to "members_roles" in EE 6.

This means that all new user registrations have access to edit, create and delete all the pages on all Wikis created.

By default a new user has no role assigned. The module is checking the exp_members_roles table, that table only has values if a user has a role assigned besides its primary role. Otherwise, its empty.

This is extremely dangerous and a potential security issue. Imagine internal wikis or if you have Wikis that allow to post HTML to staff users only. Now every person that registers a new account has access by default to alter content in any Wiki and post anything to your installation. This includes full HTML if allowed in your Wiki namespace.

By default, the module is allowing access to all users without a secondary role instead of denying if no role is found for the user. It's not checking the primary role either.

To simulate this:

Install the wiki module. Create one or more wikis with or without assigned member roles in the control panel (makes no difference) since it is using roles and not having a fall back to the primary role if none is set.

Sign up as a new user. You can access all Wikis pages, edit, delete.

@TomJaeger
@robinsowell

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.