milesj / forum Goto Github PK
View Code? Open in Web Editor NEW[Deprecated] A CakePHP plugin for forum / bulletin board systems.
License: MIT License
[Deprecated] A CakePHP plugin for forum / bulletin board systems.
License: MIT License
Hey @jasanchez and @kristofferdarj. I'm currently working on v4 of the forum and this caused some of the localization strings to change. Just wondering if you would have any time to update the strings?
You should be able to edit the spa/swe PO files and then merge in the new eng ones. Let me know if you have time for this.
Thanks again!
Hi,
With a fresh install of cakephp 2.4.6 and the latest commit of forum I get this error:
Error: Unsupported operand types
File: /var/www/forum.tier-und-wir.net/htdocs/app/Config/bootstrap.php
basically I rsynced it into the fresh install and adjusted database.config.php.
Is there sth more I have to do?
--- Continuation of previous issue.
After I refresh the page to make every pages work, when user tries to logout/login, this error pops up
Fatal error: Class 'ForumAppController' not found in .../app/Plugin/forum/Controller/UsersController.php on line 1
if ($user_id && $this->Controller->Auth->user($this->config['userMap']['status']) != $this->config['statusMap']['banned']) {
above condition is never executed, i have following common setup (0 -> pending, 1->active, 2->banned), $this->Controller->Auth->user($this->config['userMap']['status'])
is evaluated to true so:
if ($user_id && true != 2) { //never executed }
CakePlugin::loadAll(array('forum',
array('bootstrap' => true, 'routes' => true),
));
Fatal error: Class 'CakePlugin' not found
Am i missing on anything?
It appears that using $this->here for the url option in Form->create() doesn't work when using the forum in a subdirectory.
For example, I'm using the forum as http://sites2/forumtest/forum
$this->here returns: /forumtest/forum/topics/add/general-discussion
However Form->create() will prepend /forumtest resulting in /forumtest/forumtest/forum/topics/add/general-discussion making all forms using $this->here to produce a missing controller error.
During install
Error: Missing database table 'accesses' for model 'Access'
I believe this is similar to https://github.com/milesj/cake-forum/issues/11
i think that user should explictly point to User model in configuration file (ie. Users.User when using plugin) and all relation bindings should be done in model's constructors with this settings. currently i had to manually change hardcoded "User" value in many models relations.
Are there any plans in place for putting notifications in place for topics or general daily summaries?
Put files in app/plugins/forum
added route
changed prefix in forum app model to forum_
tried to go to
mysite.com/forum/install
get
Error: Database table forum_access for model Access was not found.
suggestions?
In line 28
...
$this->Html->link(_d('forum', 'edit profile'),
...
is a _ missing before _d.
The correct syntax would be:
...
$this->Html->link(__d('forum', 'edit profile'),
...
I usually get this error. Sometimes logging in and out fixes it but I'm not sure why I get this error? Not too familiar with ACL.
Hi
it's not an issue, i'm just ask if there are demo ? and how to install this without composer ?
regards
I have integrated this plugin with my existing cakephp 1.3 application,
there's only single user with user_id and /forum/users/profile/2 shows it as administrator but when I do /admin/forum it gets redirected to my main application
I followed all the installation steps correctly
I am using WAMP server version 2.2
earlier login issues got fixed with 2.3 version of the forum
There are customers and there are rentals. The job is to have a forum for each customer, as well as for each Rental. Each customer or rental should have its own set of topics.
Can this be done (fairly) easily using your plugin, or will I have to modify every find()
operation?
I'm not install successful.
using Cake 2.2.2
StationsController::subscribe()
and unsubscribe()
methods are returning text/html instead of json content type, resulting in javascript error after button click
please confirm the same as it could be my environment related case
Hi
i have issue with cake Forum.install
[x] Check Database Configuration
[x] Set Table Prefix
[x] Set Users Table
[x] Check Table Status
[5] Create Database Tables
[6] Finish Installation
Existing tables will be deleted, continue? (Y/N)
> Y
Creating tables...
Unexpected error has occurred; SQLSTATE[HY000]: General error: 1364 Field 'icon' doesn't have a default value
There have admin panel ?
Hey,
I downloaded and set up Cake-Forum like described in the documentation. After I want to login my application I get this Fatal Error:
( ! ) Fatal error: Class 'ForumAppController' not found in C:\xampp\htdocs\cake\app\Plugin\forum\Error\ForumExceptionRenderer.php on line 23
Do you have any idea what I'm doing wrong?
Thanks!
I downloaded and installed forum as specified in decoumetation. Everything works, except styles and scripts - they are not linked. Links to them exist but they are not resolved and instead of they contents I get forum start page with tons of errors. I have ubuntu server 12.04.1 as a web server and the only problem I can see here is linux case sensivity. Because on windows machine everything works just fine. Tryed to adapt .htaccess files with no success
I am using 2.1 version of cakeforum and have installed with an existing user table, I could never see the admin panel and nor does it create user profile
Hello,
i installed the forum but when i run it i got this error:
Fatal error: Call to a member function nice() on a non-object in .../app/Plugin/forum/View/Elements/navigation.ctp
cakephp 2.0.5
forum 1.3
I suggest that you add 'Utility.Validateable' to $actsAs of ForumAppModel.
Not all applications are using Validateable in the AppModel.
Good day...i just downloaded 1.9.1 and i am working with cakephp 1.3.8... i renamed the repo folder to forum, put it in ...app/plugins/...so that we now have app/plugins/forum.
i try to access the folder as mysiteurl/forum/install/ and it gives me missing controller error. So its either cakephp is not seeing the plugins folder or something else.
Please let me know what you think the issue might be.
Thanks
I know your plugin was developed for 1.2 but it looks like you are working on a 1.3 version so I wanted to post an issue I have been trying to resolve but haven't had any luck yet.
If I drop a fresh version of cupcake into /app/plugins/forum and attempt to access http://myapp/forum/install I get the error:
Error: Controller could not be found.
Error: Create the class Controller below in file: app\controllers\controller.php
However, if I create a route of Router::connect('/forum/install', array('plugin' => 'forum', 'controller' => 'install', 'action' => 'index')); I am able to pull up the page.
To be sure it was a 1.3 issue, I dropped the plugin into an old project that is still using 1.2 and I was able to get to the install page just fine with no custom routes.
I am just wondering if anyone has experienced this issue before? I have been having trouble trying to debug the issue further. Any help is greatly appreciated, cheers!
For example a sample URL shows as [url=/admin/products/add]add them[/url] in the post body.
When installing new copy of forums, errors on 'dropping tables' while not necessary!
I have a completely empty database, and it connects just fine, but it does not see the tables are NOT there, it attempts to drop tables.
top snippet of error:
Notice (8): Use of undefined constant DIR - assumed 'DIR' [APP\plugins\forum\controllers\install_controller.php, line 255]
Code | Context
$prefix = "forum_"
*/
private function __rewriteSql($prefix = '') {
$path = dirname(__DIR__) . DS .'config'. DS .'schema'. DS;
InstallController::__rewriteSql() - APP\plugins\forum\controllers\install_controller.php, line 255
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 106
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
Notice (8): Use of undefined constant DIR - assumed 'DIR' [APP\plugins\forum\controllers\install_controller.php, line 107]
Code
// Prepare SQL
$this->__rewriteSql($this->Session->read('Install.prefix'));
$path = dirname(__DIR__) . DS .'config'. DS .'schema'. DS;
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 107
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
Warning (2): file_get_contents(.\config\schema\prepared_schema.sql) [function.file-get-contents]: failed to open stream: No such file or directory [APP\plugins\forum\controllers\install_controller.php, line 110]
Code | Context
$path = ".\config\schema"
file_get_contents - [internal], line ??
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 110
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
Warning (2): file_get_contents(.\config\schema\prepared_users_create.sql) [function.file-get-contents]: failed to open stream: No such file or directory [APP\plugins\forum\controllers\install_controller.php, line 115]
Code | Context
$path = ".\config\schema"
$schema = array(
""
)
file_get_contents - [internal], line ??
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 115
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
Warning (512): SQL Error: 1051: Unknown table 'forum_access' [CORE\cake\libs\model\datasources\dbo_source.php, line 527]
Code | Context
$sql = "DROP TABLE forum_access
;"
$error = "1051: Unknown table 'forum_access'"
$out = null
$out = null;
if ($error) {
trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
DboSource::showQuery() - CORE\cake\libs\model\datasources\dbo_source.php, line 527
DboSource::execute() - CORE\cake\libs\model\datasources\dbo_source.php, line 203
InstallController::__rollback() - APP\plugins\forum\controllers\install_controller.php, line 282
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 137
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
Query: DROP TABLE forum_access
;
Warning (512): SQL Error: 1051: Unknown table 'forum_access_levels' [CORE\cake\libs\model\datasources\dbo_source.php, line 527]
Code | Context
$sql = "DROP TABLE forum_access_levels
;"
$error = "1051: Unknown table 'forum_access_levels'"
$out = null
$out = null;
if ($error) {
trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
DboSource::showQuery() - CORE\cake\libs\model\datasources\dbo_source.php, line 527
DboSource::execute() - CORE\cake\libs\model\datasources\dbo_source.php, line 203
InstallController::__rollback() - APP\plugins\forum\controllers\install_controller.php, line 282
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 137
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
Query: DROP TABLE forum_access_levels
;
--- end of snippet ---
What's wrong?
I seem to have trouble installing the whole idea of the forum plugin in a fresh installation of CakePHP 2.4.0 stable. I would like to know what user auth is compatible with the forum plugin since there is non included inside the package.
Hi,
I just installed the version for 1.3 successfully however it states in the specs that the forum has e-mail notifications for topics. I'm struggling to find where you can set this or if its even an option in this version. Even when I subscribe to a topic and then post a reply I still don't get an e-mail notification.
Am I missing something here?
Charlotte
For some reason, I'm getting a memory timeout error when editing/saving forum details.
The page with the issue is:
http://mysite.com/admin/forum/stations/edit/1
Adding a post fails under recent (and more standards-compliant) versions of mysql because there is no default value defined for some fields in the database, which mysql treats as an error in strict mode.
using mysql 5.1.41 the following changes to the database were required to get it working:
ALTER TABLE topics
CHANGE firstPost_id
firstPost_id
INT( 11 ) NULL DEFAULT NULL ,
CHANGE lastPost_id
lastPost_id
INT( 11 ) NULL DEFAULT NULL ,
CHANGE lastUser_id
lastUser_id
INT( 11 ) NULL DEFAULT NULL
thanks
following shell invocation method worked for me: cake -app /path/to/app Forum.install
i think this syntax should be also reflected on: http://milesj.me/code/cakephp/forum :)
also the name of users table is hard-coded in install script - i am using 'prefix' option in my database config so my users table is prefixed and install script is unable to detect it. i think that prompting user to enter the name of users table would be the best option.
also another nice to have install feature would be the ability to pick UUIDs as table keys :)
thx for great plugin :)
If you run install script with no initial tables (other than users table), run through process and choose to use an existing user the shell throws missing table warning:
Would you like to [c]reate a new user, or use an [e]xisting user? (C/E)
> e
Error: Missing database table 'forum_profiles' for model 'Profile'
If then run the same script once more with the same settings it works fine.
Error: The action dashboard is not defined in controller UsersController
Error: Create UsersController::dashboard() in file: app/Controller/UsersController.php.
Hi Bud,
I really like this forum was wondering may I ask you for some help?
I moved css and js and img to webroot. This fixed a lot. However it seems that the javascript still isn't running for some reason (when trying to click on the 'create tables' form button). I went to the create tables action and recieved this error:
Warning (2): file_get_contents(/Users/Dean/Sites/plugins/forum/config/schema/parsed_schema.sql) [function.file-get-contents]: failed to open stream: No such file or directory [CORE/plugins/forum/controllers/install_controller.php, line 98]
This file does not appear to exist whatsoever, nor does it appear on your online copy, so I was wondering if this should have been generated by a preceding step.
Hi,
I'm not sure if this is an error or just misunderstanding. In the forum 3.2.0-rc4 when I logged in as admin, the AccessLevel model creates this query:
SELECT AccessLevel
.id
, AccessLevel
.title
, AccessLevel
.level
, AccessLevel
.isAdmin
, AccessLevel
.isSuper
FROM c0tipmaster
.forum_access_levels
AS AccessLevel
WHERE AccessLevel
.id
= 10
However, the table forum_access_levels generated with these columns:
id (autoincrement)
title
level
isAdmin
isSuper
So the IDs are 1,2,3,4 and the levels 1,4,7,10 (10 for admin)... I don't have much experience with cakePHP and the forum seems to work but inside topics it outputs this:
Undefined index: title [APP/Plugin/Forum/View/Helper/CommonHelper.php, line 178]
: DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references: Aro: Array ( [User] => Array ( [id] => 1 [username] => admin [email] => [email protected] [status] => active [avatar] => ) ) Aco: Forum.Poll [CORE/Cake/Model/Permission.php, line 94]
I've problem accessing forum admin page inside Admin plugin, can I know how to initialize the forum ACL ? I've done clean install
Attach is the ACL page inside Admin
In all model, there is a line $this->invalid(....
but I have not found that function anywhere in the class. This cause a fatal error.
Thanks
I need to be able to attach files. There are a few approaches I can take but happy to implement any existing design and feed back via the fork I've created.
Your thoughts?
It seems throughout my entire app (outside of /forum/...), where Cake would normally prompt me with a Missing Controller/Model/Table/View error, I instead get the following error:
Fatal error: Class 'ForumAppController' not found in C:\Development\AppName\app\Plugin\Forum\Error\ForumExceptionRenderer.php on line 23
Any ideas?
Forum installation complete! Your admin credentials:
Username:
Email:
Please read the documentation for further configuration instructions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.