Every repository with this icon (
Every repository with this icon (
| Description: | Garden is the pluggable PHP platform upon which Vanilla 2 is built. edit |
-
Live() is a part of jquery core 1.3.2. Can we remove jquery.livequery.js?
Comments
-
As reported by regul8 in the forums - http://vanillaforums.org/discussion/10367/conversation-autocomplete-bug
on the conversations section when trying to autocomplete a recipient it doesn't work without .htaccess rewrites - it seems to be missing the 'index.php/' prefix from the XHR url
Comments
-
'Lucida Grande' not always available, no substitute specified.
1 comment Created 20 days ago by FacialTurdThe 'font-family' CSS attribute for the '.Body p' selector on Line 284 of 'vanilla.css' specifies only one font; 'lucida grande', this font is not avilable by default on most Linux and Windows systems, since no substitute is specified, the text reverts to Times New Roman (or default browser font).
This is not the only occurence, there are many repetitions of the above throughout vanilla.css and possibly many other files.
On Windows, 'Lucida Sans Unicode' is a viable substitute as it has a similar appearance.
Comments
-
If I try to "override"/replace a controller method from a plugin, it never gets called.
For example, if I had:
public function SearchController_Index_Create(&$Sender) { echo "Hello World!"; exit; }It would render the normal garden search page when /search was requested.
I made a change to class.dispatcher.php in the Dispatch method.
At Line 220, I included:
if ($PluginManagerHasReplacementMethod) { $PluginManager->CallNewMethod($Controller, $Controller->ControllerName, $ControllerMethod); } else { $Args = $this->_ControllerMethodArgs; $Count = count($Args); //........ }Also, if this is to be included it would be worthwhile re-checking if there is a new method after a method could not be found and is defaulted to "Index" and setting that value to
$PluginManagerHasReplacementMethodComments
[deleted user] Thu Dec 10 03:58:30 -0800 2009 | linkOnly method starting from x can be overriden by plugin. And now, it is only one method Render().
So, you should declare SearchController_Render_Override
(See code of xRender() method)ControllerName_MethodName_Createmethod is only for non existing method of controller. -
I try create TextBox with Attributes Array ( [MultiLine] => 1 [rows] => 4 [cols] => 85 ).
But TextBox always created with rows = 6 and cols = 100.
There is bug inif ($MultiLine) {
if (!InArrayI('rows', $Attributes)) $Attributes['rows'] = '6'; // For xhtml compliance if (!InArrayI('cols', $Attributes)) $Attributes['cols'] = '100'; // For xhtml compliance }InArrayI function is case-insensitive equivalent for InArray, but here want to use the equivalent function array_key_exists
Comments
-
W3C Markup Validation. Form::DropDown. IncludeNull Attribute.
1 comment Created 24 days ago by [deleted user] -
after commit 120f9aa line breaks get removed on posting.
Comments
I had the same problem. It fixed itself after I cleared my HtmlPurifier cache.
i am sorry, but i cleaned the /cache/* several times, enabled disabled purifier several times but result is still the same.
With Purifier enabled - no line breaks.
Purifier disabled - all OK, but no formatting (bold, etc...)thanx
Can you debug it? Check to be sure that your html purifier settings are being loaded (There is an HPConfig object that is created to load the configuration settings in the plugin's default.php file. Echo what is being set there to be sure that autolinking and auto paragraphing are enabled).
Here you go:
AutoParagraph: 1
Linkify: 1
SerializerPath: /...snip.../web/pdapimps.com/Garden/cache/HtmlPurifier
YouTube: 1additional notes:
- extra line break between two lines, it magically works. - 2 or lines of text with normal/single break are posted on single linePlease see here: http://pdapimps.com/discussion/comment/1/#Comment_1
If the configuration settings are defined properly, then it is an HtmlPurifier problem. I'd still be inclined to say it has something to do with caching by HtmlPurifier. I had to delete my cache a few times and comment out the config application and then uncomment it again. When it started working I just assumed it took a few minutes to clear itself out..
Yeah - it looks like you got it to "magically" work as well, now. As for the single line-breaks - HtmlPurifier doesn't convert single line-breaks because they say that it is semantically incorrect. I don't understand it, but they're sticklers. I think we may end up putting hard BR's into our Format::Html static method.
-
We're getting enough "help" discussions from people without pdo_mysql that it would probably be prudent to check for it at install and present a clear message to users if it's missing.
Comments
-
Plugins adding js before jquery, causing them not to work.
5 comments Created 26 days ago by munikhoWith $Sender->Head->AddScript('') the js files in the plugins Comment Score and Comment Replies are added before all other js files. Causing them not to work because jquery didn't load yet.
Comments
This is a nasty one. I'm surprised I haven't come across it in development.
Replacing '$Sender->Head->AddScript()' with '$Sender->AddJsFile()' seems to fix the problem.
lincolnwebs
Thu Dec 03 12:49:06 -0800 2009
| link
Fixed in commit 82fc05f
In VanillaCommentScore / class.commentscore.plugin.php there is the same problem. Line 32.
-
Comment Score Plugin nog loading css and js files
1 comment Created 26 days ago by munikhoOn line 31, 32 the links are right now:
/plugins/CommentScore/commentscore.css /plugins/CommentScore/commentscore.js
needs to be
/plugins/VanillaCommentScore/commentscore.css /plugins/VanillaCommentScore/commentscore.js
to link to the correct folder.
Comments
lincolnwebs
Sun Nov 29 16:16:23 -0800 2009
| link
Fixed in my fork: be99bc0
-
Discussion count doesn't decrement if a discussion is deleted.
reported: http://vanillaforums.org/discussion/comment/98102/#Comment_98102
Comments
-
Gives out an error the first time and redirects user to form. Works on second try but not first in the Google Chrome browser...
Comments
lincolnwebs
Fri Nov 27 13:58:49 -0800 2009
| link
Yes, need more details like Windows and Chrome version. Can't reproduce on Windows 7 RC / Chrome 3.0 using my install (PHP 5.3.0).
Sorry guy's;
Browser: Mozilla/5.0 (Windows; U; Windows NT 6.1 -- Windows 7; en-US) AppleWebKit/532.3 (KHTML, like Gecko) Chrome/4.0.223.16 Safari/532.3Rackspace Cloud; Apache 2.* / PHP 5.3.
lincolnwebs
Fri Nov 27 16:20:12 -0800 2009
| link
Thanks for getting back to us, convoe. You're using the 4.0 beta version of Chrome; it works fine in the stable 3.0 release. I don't think we should be testing against browser beta releases, especially Chrome's - they break standard Javascript frequently.
For what it's worth, I was able to duplicate after getting the 4.0 beta. There's definitely something wrong, but I think it's on the beta's end.
-
http://www.vanillaforums.org/discussion/10267/bug:-remove-picture-appears-for-everyone
On any profile page, when not logged in or logged in as another user, the "Remove Picture" link shows in the sidebar. Clicking it will result in a Permission Denied error.
Line 483 of applications/garden/controllers/profile.phpComments
-
Draft Preview error no UserID set in stdClass
1 comment Created about 1 month ago by mischkaWhen you click to preview on a draft. This is the JSON-result
{"DiscussionID":"","DraftID":"3","FormSaved":true,"DeliveryType":"VIEW","Data":"FATAL ERROR IN: PHP.ErrorHandler();\n\"Undefined property: stdClass::$InsertUserID\"\nLOCATION: C:\\garden\\applications\\vanilla\\views\\post\\preview.php\n> 6: <li class=\"Comment\">\n> 7: <ul class=\"Info\">\n> 8: <li class=\"Author\"><?php\n> 9: $Author = new stdClass();\n>>> 10: $Author->UserID = $this->Comment->InsertUserID;\n> 11: $Author->Name = $this->Comment->InsertName;\n> 12: $Author->Photo = $this->Comment->InsertPhoto;\n> 13: echo UserPhoto($Author);\n> 14: echo UserAnchor($Author);\nBACKTRACE:\n[C:\\garden\\applications\\vanilla\\views\\post\\preview.php 10] PHP::ErrorHandler();\n[C:\\garden\\library\\core\\class.controller.php 458] PHP::include();\n[C:\\garden\\library\\core\\class.controller.php 678] Gdn_Controller->FetchView();\n[C:\\garden\\library\\core\\class.pluggable.php 192] Gdn_Controller->xRender();\n[C:\\garden\\library\\core\\class.pluggable.php 192] Gdn_Pluggable->__call();\n[C:\\garden\\applications\\vanilla\\controllers\\post.php 135] PostController->Render();\n[C:\\garden\\applications\\vanilla\\controllers\\post.php 152] PostController->Discussion();\n[C:\\garden\\library\\core\\class.dispatcher.php 222] PostController->EditDiscussion();\n[C:\\garden\\index.php 41] Gdn_Dispatcher->Dispatch();\n<a href=\"\/profile\/admin\">admin<\/a><\/li>\n <li class=\"Created\">15:01<\/li>\n <\/ul>\n <div class=\"Body\"><p>asdfasdfadsf<\/p><\/div>\n <\/li>\n<\/ul>","StatusMessage":"","RedirectUrl":""}Fix (class PostController line: 96)
$this->Comment = new stdClass(); $this->Comment->InsertUserID = $Session->User->UserID; $this->Comment->InsertName = $Session->User->Name; $this->Comment->InsertPhoto = $Session->User->Photo;Comments
-
Start a new discussion -> Preview Post -> Does not show a backslash
2 comments Created about 1 month ago by tfalconI'm using backslash to explain a path, but the preview does not show.
Enter your comments : '' -> Preview Post : '' -> Result : ''
Enter your comments : '\' -> Preview Post : '' -> Result : '\'
I tryed Text, Markdown and Html
http://forum.kohanaphp.com/comments.php?DiscussionID=3970&page=1#Item_0
Comments
[deleted user] Fri Nov 06 04:57:13 -0800 2009 | link
lincolnwebs
Sat Nov 28 14:21:39 -0800 2009
| link
This isn't for Vanilla 2; it can be closed.
-
Problem is here
$TableString = trim(preg_replace('/\w+as\w+/i', ' ', $TableString));If my table name contains
+as+I get error unknown table, because$TableStringbecomes empty.
->From('GeoBase')
->From('Fascia')
->From('Hash')
etc.Comments
Give this a shot, and let us know if it works:
$TableString = trim(preg_replace('/\w+\s{1}as\s{1}\w+/i', ' ', $TableString));
[deleted user] Mon Nov 02 07:54:00 -0800 2009 | linkIt works.
-
delete
Comments
[deleted user] Tue Oct 27 07:18:30 -0700 2009 | linkMy inattention.
'RequiredPlugins' => array('PluginName' => '>=0.08'),- that is correct. -
I have today's build installed. Adding a second folder to the 'themes' directory produces the error text below when accessing index.php/garden/settings/themes (line 437 appears in red). Removing the folder leaving only 'default' restores working functionality.
This seems to preclude adding any themes .... >.>
Fatal Error in PHP.ErrorHandler();
array_keys() [function.array-keys]: The first argument should be an array
The error occurred on or near: /home/.radcliffe/thrivvy/prototype.thrivvy.com/garden/lussumo-Garden-db18da4/applications/garden/controllers/settings.php433: $ThemeManager = new Gdn_ThemeManager();
434: $this->AvailableThemes = $ThemeManager->AvailableThemes();
435: $this->EnabledThemeFolder = $ThemeManager->EnabledTheme();
436: $this->EnabledTheme = $ThemeManager->EnabledThemeInfo();
437: $Name = array_keys($this->EnabledTheme);
438: $Name = $Name[0];
439: $this->EnabledTheme = $this->EnabledTheme[$Name];
440:
441: // Loop through all of the available themes and mark them if they have an update available
Comments
What was the folder name you added, and was there anything in it? I need to reproduce your error, and I have multiple theme folders in my setup that don't produce any errors....
I've had this happen now too. I'm trying to make my own theme per the instructions posted in the docs section of vanilla.
I've tried like 10 different names for the folder, and yet it keeps showing up with that same error above as soon as I add a second theme folder to the site and go into the themes area of the dashboard.
lincolnwebs
Fri Nov 27 15:46:24 -0800 2009
| link
@lussumo - I just spent an hour trying to reproduce this then found this in the file's history: http://github.com/lussumo/Garden/commit/ebfa8d524f727f541e41c02cace34a0b617b2517
Did that close this issue?
I can produce a fatal error by removing owner's read permission on a theme's about.php file and then updating the file (I assume this has something to do with caching), but it's not the same fatal error and seems a pretty unlikely culprit.
-
I think that column "Admin" is unnecessary. Now it is not used anywhere. Sets user to Administrator role doesn't change it.
$Admin = $Session->User->Admin == '1' ? TRUE : FALSE;
can be replace by
$Admin = $Session->User->UserID == '1' ? TRUE : FALSE;Comments
-
class.url.php update has broken URI parsing.
5 comments Created 2 months ago by [deleted user]Since this commit (http://github.com/lussumo/Garden/commit/f02de34458f4bb1ca3b25766fe2bf8e81883a548) all attempts to navigate around my Garden+V2 install has met with the default route being loaded. The URI is always correct eg. /garden/settings however the page content continues to be the default route.
I have confirmed that reverting this file to the previous version (http://github.com/lussumo/Garden/blob/b86594548a021c875b19e9e3b01b3ae3acca53bb/library/core/class.url.php) resolves the current issue.
Comments
Same thing here, using nginx.
I only had access to the discussion, any other tab changed the url but nothing no page was loaded.
Can you try it from here: db18da4. Trying to get this working in different environments.
[deleted user] Sun Oct 18 12:54:46 -0700 2009 | linktburry: That version worked a charm. Just a note, I haven't tried this on an install where Garden rewrite rules have NOT been activated yet.
Okay I pushed the change to live. Since this type of thing is so contingent on the hosting environment I'll let other issues be opened when found.
-
There is an issue with the enabling of an extension. As already mentioned here: http://vanillaforums.org/addon/362/mootools
after enabling en extension, the corresponding configuration file will be broken.
It seems somehow that it might have to do with an extension itself but since this is third party code, it should never be able to mess up a config file by using the original operation to enable.After reviewing the code I saw that there are sometime windows/dos newlines. This is not very good because since the webserver might run with +NIX. I myself came along this problem log time ago and experienced very strange behaviour.
excerpt of extensions.php after enabling:
<?php // Make sure this file was not accessed directly and prevent register_globals configuration array at$ if (!defined('IN_VANILLA')) exit(); // Enabled Extensions include($Configuration['EXTENSIONS_PATH']."Mootools/default.php"); include($Configuration['EXTENSIONS_PATH']."ModTools/default.php"); include($Configuration['EXTENSIONS_PATH']."./default.php"); include($Configuration['EXTENSIONS_PATH']."PFC/default.php");include($Configuration['EXTENSIONS_PATH']."Mootools/appendix.php");
You can see that the ?> is missing an the last two includes are in one line.
after having a look into the file: library/Framework/Framework.Control.ExtensionForm.php I found the possible problem on line: 74
$CurrentExtensions[] = $IncludeString . "\r\n";here you are using explicitly the windows newline which will/may result in "swallowing" the next line, as it does with me. Somehow I also didn't see any ?> adding statement afterwards at all. This is very strange because you are getting rid of it in line 70.
So I changed the line 74 to:
$CurrentExtensions[] = $IncludeString . "\n?>\n";
Now everything works fine!
Hope I could help.
Comments
-
demo captcha key invalid - inaccessible to new accounts
1 comment Created 2 months ago by soychicka* This reCAPTCHA key isn't authorized for the given domain. More info * I agree to the terms of service Remember me on this computer * * A fatal error occurred while processing the request. The server returned the following response: %s * QMA7QBGZWN6X * http://www.vanillaforums.org// * Are you sure you want to proceed? * Okay * Cancelat http://vanilla2.com/entry/?Target=discussions
In case it isn't intentional, I just thought you might want to know that the beta demo is inaccessible to new users, but a clean fork from git using my captcha key on my own install works fine.
Comments
Register at http://vanillaforums.org/entry/?Target=discussions instead.
-
No font color set, though background colors *is* set
5 comments Created 2 months ago by qubodupI have a weird color scheme and Garden, like Flickr and Google (not phpbb though ;)), has only one of the two colors set. -- screenshot --
adding body { color: black; } should fix it.
Thanks, your browser weirdo.
Comments
lincolnwebs
Fri Nov 27 17:41:19 -0800 2009
| link
I'm confused. The base Garden stylesheet at /applications/garden/design/style.css has body { color: # 000; } as the very first declaration. Is there something I'm missing or not understanding?
lincolnwebs
Sat Nov 28 10:22:58 -0800 2009
| link
I added the space because of the message parsing on GitHub.
I'm confused too now. perhaps it was fixed between versions or I got something horribly wrong. http://img706.yfrog.com/i/fatalerror1260362588247.png/
However the input forms/buttons have only colors set when selected, otherwise they follow my browser settings (only the background color though it seems - a very common thing to happen, it might be the browser's fault, input elements don't inherit background color..) http://yfrog.com/0uvanilla21260363130645p (ignore fonts, my settings overwrite them)
lincolnwebs
Wed Dec 09 13:46:18 -0800 2009
| link
I suspect your browser default overrides are at fault here.
-
Fatal Error in PHP.ErrorHandler();
Invalid argument supplied for foreach()The error occurred on or near: /var/www/htdocs/galerievertige/domains/samsfactory.be/public/taupes/forumNew/library/core/class.pluginmanager.php
410: }
411:
412: // Include all of the paths.
413: $PluginInfo = array();
414: foreach($Paths as $Path) {
415: if(file_exists($Path))
416: include($Path);
417: }
418:
Backtrace:
[/var/www/htdocs/galerievertige/domains/samsfactory.be/public/taupes/forumNew/library/core/functions.error.php:124] PHP::include(); [/var/www/htdocs/galerievertige/domains/samsfactory.be/public/taupes/forumNew/library/core/class.pluginmanager.php:414] PHP::ErrorHandler(); [/var/www/htdocs/galerievertige/domains/samsfactory.be/public/taupes/forumNew/bootstrap.php:128] Gdn_PluginManager->IncludePlugins(); [/var/www/htdocs/galerievertige/domains/samsfactory.be/public/taupes/forumNew/index.php:26] PHP::require_once(); Variables in local scope:
[EnabledPlugins] array ( 'HTMLPurifier' => 'HtmlPurifier', ) [Paths] NULL [PluginFolder] 'HtmlPurifier' [PluginName] 'HTMLPurifier' [PluginInfo] array ( )Comments
-
When I install Vanilla2 in something like localhost/forum/ , as soon as I vist that I get redirected to localhost/index.php/garden/gardensetup .
If I install V2 in the root directory, it redirects fine, but I get this in the nginx error log.
2009/10/08 04:19:29 [error] 25991#0: *9 open() "/var/www/nginx-default/index.php/garden/gardensetup" failed (20: Not a directory), client: 198.xxx.xxx.xxx, server: xxx, request: "GET /index.php/garden/gardensetup HTTP/1.1", host: "160.xxx.xxx.xxx"This is running on nginx with fascgi, on debian squeeze. Obviously no rewrite rules running as nginx needs it's own rules.
If there's any way I can help debug this, please let me know :)
Thanks in advance.
Comments
That's configuration issue.
Check: http://vanillaforums.org/discussion/9915/vanilla-on-nginx/
I've got a different configuration from the 2 outlined there. I haven't posted it yet, as I want to make sure it's safe first (ie. that only necessary files can be accessed via http), and I hadn't had time for that yet.
-
line 141 of global.js produces an error in IE. It seems "item" is a reserved word in IE
The fix is simple:
change line 141 to look like this:
var item = targets[i];
This defines "item" as a variable, and overrides the default reserved word functionality
Paul.
Comments
Thanks!
Can you (digitally) sign the contributor's agreement so we can accept your contribution?
TerminalAddict
Tue Oct 06 12:40:24 -0700 2009
| link
done ! :)
-
Importer doesn't save SourcePrefix correctly
2 comments Created 2 months ago by lincolnwebsYou're grabbing the SourcePrefix from Import.SourcePrefix but saving it to Garden.Import.SourcePrefix which means you will always get the default.
/ applications / garden / controllers / import.php
line 32:
$SourcePrefix = Gdn::Config('Import.SourcePrefix', 'LUM_');line 103:
SaveToConfig('Garden.Import.SourcePrefix', $SourcePrefix);Comments
lincolnwebs
Tue Sep 29 15:20:06 -0700 2009
| link
I'd fix this if I had a clue how to use Git, haha. One learning curve at a time.
-
After changing the profile picture, there is the note "You changed your profile picture." in Activity.
Below that line there is supposed to be a thumbnail image. However, is not displayed because the linking is wrong:
It is: http://domain.de/index.php/uploads/12imagecode34.jpg
It should be: http://domain.de/uploads/12imagecode34.jpg
Are others experiencing the same error?
Comments
WebServer mod_rewrite On. "Use Garden's .htaccess file to rewrite urls" on.
The URLs get changed now so that /index.php disappears.The "old" thumbnails are not working, as the link was already put.
However, the new ones are working!Thanks bean, you solved it :)
-
I noticed on VanillaForums.org that the categories "Vanilla 2 & Garden" and "Feedback & Feature Requests" simply display the & char instead of using the & entity, which invalidates the XHTML 1.0 Strict doctype.
Comments
lincolnwebs
Sat Nov 28 17:45:12 -0800 2009
| link
Appears to be fixed in master.
-
Vanilla 2 beta:
Clicking on preview throws the following message within the preview pane:FATAL ERROR IN: PHP.ErrorHandler(); "Undefined property: stdClass::$InsertUserID" LOCATION: /var/www/webXYZ/html/vanilla/applications/vanilla/views/post/preview.php > 6: > 7:
8: 9: $Author = new stdClass(); >>> 10: $Author->UserID = $this->Comment->InsertUserID; > 11: $Author->Name = $this->Comment->InsertName; > 12: $Author->Photo = $this->Comment->InsertPhoto; > 13: echo UserPhoto($Author); > 14: echo UserAnchor($Author); BACKTRACE: [/var/www/webXYZ/html/vanilla/applications/vanilla/views/post/preview.php 10] PHP::ErrorHandler(); [/var/www/webXYZ/html/vanilla/library/core/class.controller.php 458] PHP::include(); [/var/www/webXYZ/html/vanilla/library/core/class.controller.php 677] Gdn_Controller->FetchView(); [/var/www/webXYZ/html/vanilla/library/core/class.pluggable.php 192] Gdn_Controller->xRender(); [/var/www/webXYZ/html/vanilla/library/core/class.pluggable.php 192] Gdn_Pluggable->__call(); [/var/www/webXYZ/html/vanilla/applications/vanilla/controllers/post.php 135] PostController->Render(); [/var/www/webXYZ/html/vanilla/library/core/class.dispatcher.php 218] PostController->Discussion(); [/var/www/webXYZ/html/vanilla/index.php 41] Gdn_Dispatcher->Dispatch(); kaikajus * 8:49am test
I have not changed neither preview.php nor index.php. (I have only adapted language strings using vanilla\applications\garden\locale\de-DE ). All plugins are disabled. I remember trying previewing latex syntax such as $2^{3*5}$ the last days (and encountering the error), might that have been causing a problem?
Comments
If it's for the comment preview, it was fixed last week. (issue 118)
But it was missing one fix, cf. http://vanillaforums.org/discussion/comment/97053/#Comment_97053
Got the latest version. First fix inside. Second fix missing. That was the one!
Thx @bean who solved itFor others, you have to edit post.php in \applications\vanilla\controllers
before line 97 $this->Comment->InsertName = $Session->User->Name;you insert
$this->Comment->InsertUserID = $Session->User->UserID; // fix:) working, great!
-
Vanilla 2 Beta: I tried to assign a category name of "Proportionalität Antiproportionalität" and got the fatal error (bug is replicable):
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by r.Sort, r.Name asc' at line 4 select coalesce(p.
Vanilla.Discussions.View, 0) asVanilla.Discussions.View, coalesce(p.Vanilla.Discussions.Add, 0) asVanilla.Discussions.Add, coalesce(p.Vanilla.Discussions.Edit, 0) asVanilla.Discussions.Edit, coalesce(p.Vanilla.Discussions.Announce, 0) asVanilla.Discussions.Announce, coalesce(p.Vanilla.Discussions.Sink, 0) asVanilla.Discussions.Sink, coalesce(p.Vanilla.Discussions.Close, 0) asVanilla.Discussions.Close, coalesce(p.Vanilla.Discussions.Delete, 0) asVanilla.Discussions.Delete, coalesce(p.Vanilla.Comments.Add, 0) asVanilla.Comments.Add, coalesce(p.Vanilla.Comments.Edit, 0) asVanilla.Comments.Edit, coalesce(p.Vanilla.Comments.Delete, 0) asVanilla.Comments.Delete, r.RoleID asRoleID, r.Name asName, r.CanSession asCanSessionfrom GDN_Role r left join GDN_Permission p on p.RoleID = r.RoleID and p.JunctionTable = 'Category' and p.JunctionColumn = 'CategoryID' and p.JunctionID = order by r.Sort, r.Name ascThe error occurred on or near: vanilla/library/database/class.database.php
213: if ($PDOStatement === FALSE) {
214: trigger_error(ErrorMessage($this->GetPDOErrorMessage($this->Connection()->errorInfo()), $this->ClassName, 'Query', $Sql), E_USER_ERROR);
215: }
Comments
lincolnwebs
Sat Nov 28 17:44:27 -0800 2009
| link
Appears to be fixed in master.
-
Comment preview not working since change to userID link
1 comment Created 3 months ago by beanSince SHA: 647af64 preview of comments is not working anymore. (file /applications/vanilla/views/post/preview.php).
It shows an error with: Trying to get property of non-object.I've changed:
$Author->UserID = $Comment->InsertUserID; $Author->Name = Comment->InsertName; $Author->Photo = Comment->InsertPhoto;to:
$Author->UserID = $this->$Comment->InsertUserID; $Author->Name = $this->Comment->InsertName; $Author->Photo = $this->Comment->InsertPhoto;And now, I only get this error at the top of the preview box (while the rest of the box is as before):
Undefined property: stdClass::$InsertUserIDBut as I'm not familiar with the layout (yet I hope :)), I'm not quite sure where to change it.
But I guess it should be pretty fresh in your memory and you'll find that in seconds!Comments
-
I installed a fresh installation and there seams to be a problem with the plugin includer
Fatal Error in PHP.ErrorHandler();
Invalid argument supplied for foreach()The error occurred on or near: /var/www/vhosts/hesaved.us/httpdocs/forum/library/core/class.pluginmanager.php
411:
412: // Include all of the paths.
413: $PluginInfo = array();
414:
415: foreach($Paths as $Path) {
416: if(file_exists($Path))
417: include($Path);
418: }
419:
Backtrace:
[/var/www/vhosts/hesaved.us/httpdocs/forum/library/core/functions.error.php:124] PHP::include(); [/var/www/vhosts/hesaved.us/httpdocs/forum/library/core/class.pluginmanager.php:415] PHP::ErrorHandler(); [/var/www/vhosts/hesaved.us/httpdocs/forum/bootstrap.php:128] Gdn_PluginManager->IncludePlugins(); [/var/www/vhosts/hesaved.us/httpdocs/forum/index.php:26] PHP::require_once(); Variables in local scope:
[EnabledPlugins] array ( 'HTMLPurifier' => 'HtmlPurifier', ) [Paths] NULL [PluginFolder] 'HtmlPurifier' [PluginName] 'HTMLPurifier' [PluginInfo] array ( )Comments
-
I installed a fresh installation and there seams to be a problem with the plugin includer
Fatal Error in PHP.ErrorHandler();
Invalid argument supplied for foreach()The error occurred on or near: /var/www/vhosts/hesaved.us/httpdocs/forum/library/core/class.pluginmanager.php
411:
412: // Include all of the paths.
413: $PluginInfo = array();
414:
415: foreach($Paths as $Path) {
416: if(file_exists($Path))
417: include($Path);
418: }
419:
Backtrace:
[/var/www/vhosts/hesaved.us/httpdocs/forum/library/core/functions.error.php:124] PHP::include(); [/var/www/vhosts/hesaved.us/httpdocs/forum/library/core/class.pluginmanager.php:415] PHP::ErrorHandler(); [/var/www/vhosts/hesaved.us/httpdocs/forum/bootstrap.php:128] Gdn_PluginManager->IncludePlugins(); [/var/www/vhosts/hesaved.us/httpdocs/forum/index.php:26] PHP::require_once(); Variables in local scope:
[EnabledPlugins] array ( 'HTMLPurifier' => 'HtmlPurifier', ) [Paths] NULL [PluginFolder] 'HtmlPurifier' [PluginName] 'HTMLPurifier' [PluginInfo] array ( )Comments
-
OBSOLETE
Comments
-
Profile auto linking failures using @ (at sign)
7 comments Created 3 months ago by lukescammellNeither @S nor @[-Stash-] link to their respective profile page on vanillaforums.org
@S http://vanillaforums.org/discussion/comment/96708/#Comment_96708 @[-Stash-] http://vanillaforums.org/discussion/comment/96708/#Comment_96709
Comments
[deleted user] Fri Sep 11 16:40:33 -0700 2009 | link-) S's account was impoted from Vanilla I. By default Vanilla II doesn't allow to choose username with length < 3. See function GetMentions().
lincolnwebs
Sat Nov 28 16:21:51 -0800 2009
| link
This bug is even more amusing; it'll parse @S at the start of the post, but not later in it (as I just posted in first example discussion above). For some reason the first regex in GetMentions() uses the range 1,20 and the one directly after it uses 3,20. I'll fix that part in my fork.
The second part of this is addressing usernames with characters besides alphanumerics and underscores. That's all that's allowed in Vanilla 2, but iamthes makes a good point about imports from more permissive systems like vBulletin and Vanilla 1.
I think it would be appropriate to expand the GetMention pattern matcher to allow hyphens as well, so I'll put that in my fork as well.
On the other hand, square brackets work in URLs, but aren't part of the spec, and therefore I don't think they should be included.
lincolnwebs
Sat Nov 28 16:29:53 -0800 2009
| link
If that's all good, this should close: 6cba806
lincolnwebs
Mon Nov 30 15:49:28 -0800 2009
| link
lukescammell brought up a good point in a message to me: "Why can't characters that aren't allowed in URLs just be URL encoded? [...] That way you can be as permissive as you (everyone in their heart of hearts) like with usernames."
I guess I had the idea stuck in my head that the URLs needed to be readable, but he's right, GetMentions probably isn't the place to enforce that.
How permissive do we want to get, though? For instance, on VanillaForums.org there's a user named: @-@
Should the pattern let you match @@-@? Should it parse an ASCII flower? @-->----
The Marge Simpson? @@@:-) I'm being silly now, but I think the core "how far is too far" question becomes relevant if we're taking the urlencoding route. :)
lukescammell
Tue Dec 01 03:33:28 -0800 2009
| link
Hmm, seems I've been replying only to Lincoln rolleyes
Basically, I said I'd be happy for fine control to be in a plugin, but Vanilla should support the import of names from the big guns such as phpBB, IPB, vBulletin, SMF, YAF, FuzeTalk and probably punBB and bbPress.
lukescammell
Tue Dec 01 03:36:12 -0800 2009
| link
Oh yeah, my other thoughts were these:
Is it expensive to check that the user exists before linking it? Could the standard text formatter URL encode and text it finds after @ in a comment? That way it would be a bit of a non issue with what's allowed and what's not wouldn't it?
lincolnwebs
Tue Dec 01 12:28:07 -0800 2009
| link
Adding a query to check every Mention seems pretty expensive, yeah. I wouldn't want to go that route; not even Twitter bothers with that.
Importing from another forum is going to take a lot more work than just more permissive GetMentions. I'm not convinced the core's GetMentions should get so permissive/complex that it needs urlencode and more extensive logic just to accommodate potential imports.
I'm going to be importing a very large & old vBulletin forum into Vanilla, so I definitely understand the potential problems I'm going to have with old username formats and the work it's going to require to either update their names or change Mentions with a plugin to make it work for all my users. That said, I'm still not convinced it's right for the core.
If you want to change it though, go for it and see if Mark accepts it :) I'm certainly not the gatekeeper, just another dude with GitHub and an opinion. ;)
-
I need more than one file for locale definitions.
/locale/LANG/definitions.php
/locale/LANG/anotherfile1.php
/locale/LANG/anotherfile2.php
I need it, because I'm going to use different encoding types.Comments
[deleted user] Wed Sep 09 22:52:58 -0700 2009 | linkHowever, I could just write
include (DIRNAME). '/ Anotherfile1.php'in the file definitions.php.
Issue is irrelevanted. -
Dropdown Menu. Doesn't look well in IE6.
3 comments Created 3 months ago by [deleted user]Dropdown Menu. Doesn't look well in IE6.
Comments
[deleted user] Wed Sep 02 03:15:41 -0700 2009 | linkI'm talking about top menu.
[deleted user] Wed Sep 02 11:04:25 -0700 2009 | linkI found the fix (garden/design/menu.css).
#Menu li a{
width: auto; // for other browsers
width: expression('1px'); // for ie
}[deleted user] Mon Nov 02 01:03:00 -0800 2009 | link# Menu li a {
width:expression(eval(/MSIE 6/.test(navigator.userAgent)) ? '1px' : 'auto');}
-
Problem?
InBase_Render_Before(&$Controller)$Controller->Head->AddCss()is always add css file to first line of list of head's stylesheet links.
< link rel="stylesheet" type="text/css" href="/plugin/MyPlugin/style.css" />
< link rel="stylesheet" type="text/css" href="/applications/garden/design/menu.css" media="screen" />
< link rel="stylesheet" type="text/css" href="/applications/vanilla/design/vanilla.css" media="screen" />How can I add my style to the end of list (last).
Comments
In a plugin you can use the head object to add a css file like:
$Sender->Head->AddCss('/path/to/file.css');
[deleted user] Sat Aug 29 13:55:54 -0700 2009 | link$Sender->Head->AddCss('/path/to/file.css');
Like I said, such method adds file.css before others css files of apllication (vanilla.css, garden.css, menu.css, etc.)
But I want to add my file.css AFTER apllication's css (vanilla.css, garden.css, etc.)
Is it possible? Looks like no, because Base_Render_Before() fires earlier than Controller::Metod() -
I cant set YearRange to one year only (2009-2009).
$this->Form->Date('StatementDate', array('yearrange' => "2009-2009"))Comments
lincolnwebs
Sat Nov 28 15:57:02 -0800 2009
| link
Should fix: 611037d
-
The database reported the following error: could not find driver
4 comments Created 4 months ago by ntulipHey guys. In the install screen after supplying the correct settings to the MySql server, i get this error:
The database reported the following error: could not find driver
Could this be related to the pdo_mysql discussion found here? http://vanillaforums.org/discussion/9799/MySQL-error-message
Comments
lincolnwebs
Sat Nov 28 15:51:54 -0800 2009
| link
Hey Nick (ntulip), can you confirm pdo_mysql is installed on your server?
lincolnwebs
Mon Nov 30 11:07:29 -0800 2009
| link
OK, that's a requirement for Vanilla 2, so that's probably the source of this issue.
-
Hey, I noticed a semi-broken link on the wiki
1a. http://wiki.github.com/lussumo/Garden
1b. Before we can accept pull requests, you must complete our contributor agreement
2a. http://lussumo.com/contrib.php
2b. You must sign in before you can complete our contributor's agreement.
3a. http://vanillaforums.org/discussions/people.php?ReturnUrl=http://lussumo.com/contrib.php
3b. nothing
Thanks!
Comments
-
Gdn_Url::WebRoot(True) returns double slash at the end
http://localhost:8800//
In config.php:
$Configuration['Garden']['Domain'] = 'http://localhost:8800/';Comments
-
Changing theme away form default has no effect on CSS that is being used
1 comment Created 4 months ago by gingerbeardmanI've followed the http://vanillaforums.org/page/ThemeQuickStart and created a folder for my theme, edited about.php to suit and it shows up in the Themes section of the dashboard.
However, if I apply my new theme - which has CSS change only to change the colour of the #Head bar from blue to green - nothing changes.
Using Firebug I have inspected the CSS being called and it is the default CSS even though the system says it is using my new theme.
Any ideas?
Comments
-
array_merge() [function.array-merge]: Argument #2 is not an array
3 comments Created 4 months ago by [deleted user]The error occurred on or near: ...library\core\class.pluginmanager.php
$Paths = array_merge($Paths, glob(PATH_PLUGINS . DS . $PluginFolder . DS . '*plugin.php'));
Comments
[deleted user] Mon Aug 24 11:31:19 -0700 2009 | linkVariables in local scope:
[Paths] array ( 0 => '...\plugins\VanillaInThisDiscussion\default.php', )[PluginFolder] 'VanillaInThisDiscussion'
[PluginName] 'VanillaInThisDiscussion'
* Application: Garden * Application Version: 1.0 * PHP Version: 5.2.9-2 * Operating System: WINNT * User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.12) Gecko/2009070611 Firefox/3.0.12 FirePHP/0.3 * Request Uri: / * Controller: PHP * Method: ErrorHandler
shadowhand
Sun Oct 18 13:26:39 -0700 2009
| link
Someone please edit the bug description, it is causing the issues to be improperly formatted.
-
On the setup page, I get the following error after typing in all the database information:
"The connection parameters you specified failed to open a connection to the database. The database reported the following error: could not find driver"
Based on my previous issue (#89), I assume this is because I don't have pdo_mysql installed and the issue goes deeper than just that missing constant. Should I just give in now and call my server admin to recompile PHP? If so, shouldn't pdo_mysql be on the Requirements page?
Comments
Yes, call your server admin and get them to add it. I'll add pdo_mysql to the requirements page, but it's standard in PHP now - they had to go to special measures to remove it.
lincolnwebs
Fri Aug 21 11:08:22 -0700 2009
| link
I'd be willing to bet that 64bit PHP for CentOS doesn't come with it by default, but I could be wrong. In any case, I found that a recompile isn't necessary and am greatly relieved. Thanks once more.
For any future Googlers with a similar problem: http://karoshiethos.com/2008/07/24/installing-pdo_mysql-on-centos/
-
Fatal error from undefined class constant in config-defaults.php
2 comments Created 4 months ago by lincolnwebsAll I've done is unzip the files into a directory, set permissions, and navigated to the folder in the browser, and I get this:
Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /storage/websites/icrontic.com/vanilla/conf/config-defaults.php on line 17
Using PHP 5.2.6. I don't think this is a file corruption because config-defaults.php looks fine and this is the second time I've attempted to download and run the beta and gotten stuck here.
Comments
It could be because pdo_mysql isn't installed on your server. It could also be a missing constant in your version of php. I changed the constant to it's actual value in the master branch here on github. Try a fresh install with the latest master and let us know what happens.
lincolnwebs
Fri Aug 21 09:20:25 -0700 2009
| link
Outstanding, Mark, thanks. That did the trick.
(I suspect it was indeed that we lack pdo_mysql - we have a custom installation)
-
When uploading a pic to the Account page in Safari 4 window focus is lost... it disappears and appears lost/closed to the user. In actual fact, the window hides behind all other windows and cannot be brought forward/made active without minimising all other windows.
Comments
-
"You commented on user's discussion." editing duplicates
1 comment Created 4 months ago by MikeXIIIWhen you post a comment you get the "You commented on user's discussion." in your profile.
If you go back and edit that comment, this message will be duplicated as many times as you choose to edit.Comments
lincolnwebs
Sat Nov 28 15:03:09 -0800 2009
| link
Can be closed; this no longer happens.
-
It's possible to post that kind of code in his status (without the extra space) :
<img src="http://www.myspamsite.com/px.gif" onload="top.location='http://www.myspamsite.com'" />For example on this spammer profile: http://vanillaforums.org/garden/profile/perdre_du_poids
Comments
done. I saw that you banned the spammer, but you also have to delete his status (which still appears on the Activity page) ;)
Thanks for the tip. I deleted the activity. I'm also implementing a fix now...
Fixed in my dev version. Will be pushed later today/tonight.
-
When using the importer it would fail.
The problem is in the file applications/garden/controllers/import.php on lines 298 and 301.
298:
$Database->Query("update ".$DestPrefix."userconversation uc301:
from ".$DestPrefix."conversationmessageThe table names aren't listed in the correct uppercase fashion as they should.
Once corrected, the importer works fine.
- Scott
Comments
-
Comments
You don't have to use it if you don't want to. In your theme just create a file with the same name but a php extension, and you can use straight php.
http://www.dwoo.org/ might take more interest than smarty being that smarty is mostly bloat and aged now.
[deleted user] Wed Aug 12 22:22:10 -0700 2009 | link@Mykeus. I dislike any template engine: shine outside, shit inside.Native PHP <?=?> easy and faster anyway.
@Mark. Please, add some instrucrions to documentation about that. Thanks.@-S- I completely understand coming from the developers side. But from a larger project point, do you seriously want the designer to write native php in a view? The whole concept of the view structure is to separate code from cosmetic. I understand this is a bloat but if can easily be secluded from the operative source.
-
Plugins.Column 'UserID' in where clause is ambiguous
1 comment Created 4 months ago by [deleted user]function Gdn_UserModel::GetSession($UserID).
->Where('UserID', $UserID);
Maybe fix it to->Where('u.UserID', $UserID);
I believe that helps to avoid errors "Column 'UserID' in where clause is ambiguous" in plugins.Comments
lincolnwebs
Sat Nov 28 14:43:27 -0800 2009
| link
This can be closed; can't find the commit, but the current code is as suggested above in /applications/garden/models/class.usermodel.php on line 170.
-
Internal Server Error when browsing Forum Settings
1 comment Created 4 months ago by gingerbeardmanhttp://www.bootstrapcompany.co.uk/forum/index.php/garden/settings
There are no error logs with the host I am using for this test, sorry.
http://www.bootstrapcompany.co.uk/forum/index.php/garden/settings
I will help as best I can to debug.
Comments
-
4 comments Created 4 months ago by [deleted user]CleanupString() function requestGardenxRequesting CleanupString() function from Vanilla 1.
Comments
[deleted user] Wed Oct 21 06:45:29 -0700 2009 | linkI dont.
$test1 = Format::Url('Å,Ā,Ą,Ă,Æ,Ç,Ć,Č,Ĉ,Ċ,Ď,Đ,Ð'); // Å-Æ-Ç-Ð
$test2 = CleanupString('Å,Ā,Ą,Ă,Æ,Ç,Ć,Č,Ĉ,Ċ,Ď,Đ,Ð'); // aaaaaecccccddd$test1 = Format::Url('а,б,в,г,д,е,ё'); // empty
$test2 = CleanupString('а,б,в,г,д,е,ё'); // abvgdeyoI guess I thought the intent of the two methods is the same, even though they go about it differently. I added a Format::Latin1 method to the current dev branch which is CleanupString.
Let me know if your intent is to format to a Url friendly string, but our Format::Url does not suit your needs. I'd rather address Format::Url than write a new method.
Thanks for your help.
-
What: error message shows up on every page.
Where: library/core/class.pluginmanager.php, line 409
$Paths = array_merge($Paths, glob(PATH_PLUGINS . DS . $PluginFolder . DS . '*plugin.php'));Environment:
installing on a MT dedicated virtual server with PHP 5.2.6the .htaccess file also failed to generate
Comments
fredrikhimlen
Sat Aug 22 16:08:47 -0700 2009
| link
The problem is that there is no array returned, at least when that error occured to me. Sadly, it isn't checked if it is a array returned or not.
-
install creates conf/config.php without close php tag
2 comments Created 4 months ago by Glutnixjust tried to install garden for the first time. got my database set up, filled in the form and was greeted with:
Parse error: syntax error, unexpected T_STRING in Garden/conf/config.php on line 10Needs a fix.
Comments
oh, and the file created was:
<?php if (!defined('APPLICATION')) exit(); // Database $Configuration['Database']['Name'] = 'vanilla'; $Configuration['Database']['Host'] = 'localhost'; $Configuration['Database']['User'] = 'vanilla'; $Configuration['Database']['Password'] = 'vanilla'; // Garden $Configuration['Garden']['Title'] = 'Brett's Vanilla'; $Configuration['Garden']['Cookie']['Salt'] = 'R5G406WXU8'; $Configuration['Garden']['Cookie']['Domain'] = '';as you'll see it's missing a whole lot of the config file and the close php tag. I haven't hacked on Garden before, so the framework is confusing to me, but I'd like to help out with this one, if someone can point me in the right direction on this...?
-
When someone writes on a wall the event just says:"$user wrote on wall" rather than whose wall that it was.
Comments
lincolnwebs
Sat Nov 28 14:18:23 -0800 2009
| link
Pretty sure this is closed; writing on a wall works as expected in the Activity feed with (both) correct names.
-
Single discussion page renders blank, with exception of discussion title. The
<head>tags are empty, so no css and js are loaded.Update I went through the files below:
- vanilla/controllers/discussion.php
- vanilla/views/discussion/index.php
- vanilla/views/discussion/comments.php
- vanilla/views/discussion/helper_functions.php
And found on line 81 in helper_functions.php:
<div class="Body"><?php echo Format::To($Comment->Body, $Comment->Format); ?></div>was causing the problem, so I used nl2br() instead, for now.Comments
-
When cloning Garden for fresh installing, the program complains not to have access rights for the "uploads" folder, as it is not in the cloned directory. Have to create it manually in order to continue installation.
Comments
it's being blocked by .gitignore. The contents of the folder should be blocked, but not the folder itself.
gingerbeardman
Thu Aug 13 04:07:07 -0700 2009
| link
I also have this problem
-
Hi v2 fans!
Here I came across with the problem that even I set the Registration method by Invitation, only admin can send invitation codes.
The setting page says that members will also invite, but I logged in as member, the "My Invitations" page was blank, without any input area.
Anyone has the same problem?
Comments
garymardell
Tue Dec 08 12:02:53 -0800 2009
| link
If you change line 915 in class.usermodel.php
Which was:
if (!is_numeric($User->CountInvitations) || Format::Date($User->DateSetInvitations, 'n Y') != Format::Date('', 'n Y')) {to
if (!is_string($User->CountInvitations) || Format::Date($User->DateSetInvitations, 'n Y') != Format::Date('', 'n Y')) {Then everything works for some reason. Seems backwards though... As a var_dump of $User->CountInvitations shows it as a string. Odd.
-
while posting on a friend's ACTIVITY wall, if the friend's username is numeric, vanilla2 shows:
A fatal error occurred while processing the request. The server returned the following response: parsererror
for example username: 123321
Comments
-
From @kidmax: While uploading a pic you will encounter "you cannot upload files with this extension "JPG" " well, i had to rename it into .jpg, funny.
Comments
Fixed this issue in my dev branch - http://github.com/lussumo/Garden/commit/8f3a4faa8f261e133add301a2f71118d07757b98
-
Under php 5.3 the constant MYSQL_ATTR_INIT_COMMAND isn't available. Its a bug in php 5.3
Php bug list has mentioned possible solutions
http://bugs.php.net/bug.php?id=47224
Comments
gingerbeardman
Thu Aug 13 03:36:27 -0700 2009
| link
I'm also getting this (running PHP 5.3 and Apache with virtual host under Mac OS X 10.6 Snow Leopard).
Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /Users/matt/Sites/vanilla/conf/config-defaults.php on line 18
I commented out line 18 and can get further through installation, but it fails at step 2 of the process: http://vanilla/garden/gardensetup/2
I also substituted the constant for it's literal value (1002) but this did not help as it brought about a problem with the generated line 11 in config.php.
gingerbeardman
Thu Aug 13 04:33:15 -0700 2009
| link
I realised I was missing the .htaccess file (my error extracting and copying files)
So, I am finally installed, but have a show-stopping error in htmlpurifier.
Here's the debug log: http://pastebin.com/fa341464
* Application: Garden * Application Version: 1.0 * PHP Version: 5.3.0 * Operating System: Darwin * Referer: http://vanilla/index.php/garden/gardensetup * User Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 * Request Uri: /settings * Controller: PHP * Method: ErrorHandler
gingerbeardman
Thu Aug 13 04:39:22 -0700 2009
| link
I've also got to the same point on my server running PHP 5.2.6
I've added the constant fix to my dev version, to be pushed up to github later today/tonight.
It looks like your other problem is related to HtmlPurifier not being able to create it's cache folder. See if adding a "HtmlPurifier" folder in your cache directory (with write access for php) fixes the problem. If so, then we know that we need to make Garden do that for html purifier b/c it is failing to do it for itself...
gingerbeardman
Thu Aug 13 09:35:24 -0700 2009
| link
That's done it (create writable "HtmlPurifier" cache directory)
I feel like such a dufus :)
Don't feel like a doofus!! We really appreciate your help!
This is a bug, and before now I didn't know it existed. Thank you!
I'm going to create a new issue for the html purifier issue and close this one.
gingerbeardman
Thu Aug 13 09:48:50 -0700 2009
| link
Sure thing, I only felt like a dufus for a short while. ;)
-
I tried to install on my server but encountered this error, please help.
Linux 2.6.9-023stab048.6-enterprise
PHP & 5.2.10
MySQL 5.0.81-communityFatal Error in Gdn_Database.Query();
CREATE VIEW command denied to user 'betamax_3pmax'@'localhost' for table 'GDN_vw_Category'
create or replace view GDN_vw_Category as select c.CategoryID asCategoryID, c.CountDiscussions asCountDiscussions, c.Description asDescription, c.Sort asSort, c.InsertUserID asInsertUserID, c.UpdateUserID asUpdateUserID, c.DateInserted asDateInserted, c.DateUpdated asDateUpdated, concat_ws(' > ', p.Name, c.Name) asNamefrom GDN_Category c left join GDN_Category p on c.ParentCategoryID = p.CategoryID where c.AllowDiscussions = 1The error occurred on or near: /home/betamax/public_html/library/database/class.database.php
192: }
193:
194: if ($PDOStatement === FALSE) {
195: $Error = $this->Connection()->errorInfo();
196: trigger_error(ErrorMessage($Error[2], $this->ClassName, 'Query', $Sql), E_USER_ERROR);
197: }
198:
199: $Result = TRUE;
200: // Did this query modify data in any way?
Backtrace:
[/home/betamax/public_html/library/core/functions.error.php:116] PHP::include();
[/home/betamax/public_html/library/core/functions.error.php:116] PHP::ErrorHandler();
[/home/betamax/public_html/library/database/class.database.php:196] PHP::trigger_error();
[/home/betamax/public_html/library/database/class.mysql.structure.php:146] Gdn_Database->Query();
[/home/betamax/public_html/applications/vanilla/settings/structure.php:31] Gdn_MySQLStructure->View();
[/home/betamax/public_html/applications/vanilla/controllers/setup.php:22] PHP::include();
[/home/betamax/public_html/library/core/class.applicationmanager.php:231] SetupController->Index();
[/home/betamax/public_html/applications/garden/controllers/gardensetup.php:72] Gdn_ApplicationManager->ApplicationSetup();
[/home/betamax/public_html/library/core/class.dispatcher.php:229] GardenSetupController->Index();
[/home/betamax/public_html/index.php:41] Gdn_Dispatcher->Dispatch();
Variables in local scope:
[Sql] 'create or replace view GDN_vw_Category as select c.CategoryID as
CategoryID, c.CountDiscussions asCountDiscussions, c.Description asDescription, c.Sort asSort, c.InsertUserID asInsertUserID, c.UpdateUserID asUpdateUserID, c.DateInserted asDateInserted, c.DateUpdated asDateUpdated, concat_ws(' > ', p.Name, c.Name) asName
from GDN_Category c
left join GDN_Category p on c.ParentCategoryID = p.CategoryID
where c.AllowDiscussions = 1'[InputParameters] NULL
[PDOStatement] false
[Error] array ( 0 => '42000', 1 => 1142, 2 => 'CREATE VIEW command denied to user 'betamax_3pmax'@'localhost' for table 'GDN_vw_Category'', )
Comments
saladyears
Mon Jul 27 07:19:43 -0700 2009
| link
Looks like your MySQL user doesn't have permission to create views.
sure, saladyears, well, but such as wordpress and other apps run well on my server.
any solutions? like , could i use phpmyadmin to import an SQL file directly?
saladyears
Mon Jul 27 07:54:21 -0700 2009
| link
See issue #51, they are planning on removing views completely. I'm not sure if they are even used in the application. You can disable the creation of the view entirely by commenting out line 31 in \applications\vanilla\settings\structure.php.
-
http://vanilla2.com/discussion/comment/75541/#Comment_75541
That permalink works perfectly fine, try clicking the one in the next post and you'll end up looking at a completely different postI chose that discussion because it seems to have the most comments.
Comments
This seems to only happen on certain posts, I'm not sure which.
saladyears
Thu Jul 23 07:36:47 -0700 2009
| link
Are you using the vanilla2.com site as your reference? I'm not sure how up to date they keep it with the latest Dev code. I'm running nearly the latest and don't have any problems with permalinks on my site.
Yes, I hadn't tested on a local installation because I couldn't find any issues or commits regarding permalinks so I assumed nothing had been changed specifically for this.
I'm pretty sure this only happens when there's multiple pages, I'll try and test it on my copy when I get the chance though ;)We haven't been updating vanilla2.com. But this weekend we'll be closing it down and moving our community forums to Vanilla 2. That forum will be kept up-to-date constantly.
-
Profile side menu is missing the ability to hook into it
2 comments Created 5 months ago by saladyearsAll other side menu creation functions have a line like this:
$this->EventArguments['SideMenu'] = &$SideMenu;
Before they call FireEvent. The profile side menu does not, which makes it impossible to actually get the menu object and hook into it.. I added this line in my branch in 5e7a783.
Comments
Looks like the branch was deleted. Can you repost the commit id?
lincolnwebs
Sat Nov 28 11:52:27 -0800 2009
| link
This can be closed. Todd fixt it: 625d9fa
-
User Avatars are broken with mod_rewrite off.
3 comments Created 5 months ago by saladyearsEasily reproduced:
- Turn off mod_rewrite for the site.
- Upload an image as an avatar for your user.
Everywhere the image is placed it's broken, because it uses Url() to create the image url, which adds /index.php to the front of the path when mod_rewrite is off, and of the browser has no idea what do to with /index.php/uploads/nXXXXXXXX.jpg or what have you.
Comments
[deleted user] Tue Jul 21 06:20:26 -0700 2009 | linkAnd more about avatars. If user upload a new avatar, old must be deleted.
saladyears
Tue Jul 21 07:49:23 -0700 2009
| link
I fixed this in my branch in 3e41609. It doesn't seem ideal, but I'm just stripping any "index.php/" out of the image url in the Html::Image function. I also cleaned up two other places that weren't using it so everything is now going through this function.
One thing I would suggest, and I may do myself, is to modify Html::Image so that it just takes the image name, and then a new parameter that is the size requested (i.e. "profile", "small", or whatever the t, p, n, and o prefixes mean). This way, it would be much, much easier for plugins to hijack this function and provide a properly sized dynamic avatar. That way, I can write a Gravatar plugin without too much hacking. :)
There is an "Asset" function that should have been used here instead of "Url". I've replaced it in my dev branch: http://github.com/lussumo/Garden/commit/9ea0e75948895e737478ccbdcfee665fe469cdbc
That's a good idea about the gravatar, though...
- Turn off mod_rewrite for the site.
-
Add
header('Content-Type: text/html; charset=utf-8');before include($MasterViewPath); (in ErrorHandler() function)Some browsers uses not utf-8 by default (also meta charset tag in template is useless), so user will see abracadabra instead of message about error (for non-english languages).
Comments
I added it right after the ob_clean() to be sure it gets hit. In my dev branch - http://github.com/lussumo/Garden/commit/9ea0e75948895e737478ccbdcfee665fe469cdbc
-
Impossible to create SET data type by DatabaseStructure::Column()
Comments
Todd has been working on a restructuring of the DatabaseStructure class. Should simplify things greatly. Expect that implemented soon :)
-
delete
Comments
-
delete
Comments
-
If you do something like this:
$Database->SQL()->Select('Field')->From('Blargh')->Like('OtherField', 'Value');
The query fails because the incorrect value is sent to the named parameters. This is fixed in my branch in 000c0a6.
Note that if you use in array (i.e. ->Like(array('OtherField' => 'Value'))), it works, just the two parameter version fails.
Comments
Just tried to take a look at your branch and it failed to find the page :(
saladyears
Thu Jul 30 06:37:55 -0700 2009
| link
I'm about 95% positive I saw Mark check in a fix for this at some point in a big checkin with a lot of changes, so I'm pretty sure it can be closed.
-
What is this? My database is always corrupted with this every time I install this.
I can never delete the table, I have to delete the whole database and start over every time.1&1 is my hosting, PHP5, MySQL5. So look;
Error
SQL query: Edit
DROP TABLE
GDN_Activity,
GDN_ActivityType,GDN_Category,GDN_Comment,GDN_CommentWatch,GDN_Conversation,GDN_ConversationMessage,GDN_Discussion,GDN_Draft,GDN_Invitation,GDN_Permission,GDN_Photo,GDN_Role,GDN_SearchDocument,GDN_SearchKeyword,GDN_SearchKeywordDocument,GDN_TableType,GDN_User,GDN_UserAuthentication,GDN_UserConversation,GDN_UserDiscussion,GDN_UserRole,GDN_vw_Category;MySQL said: Documentation
#1051 - Unknown table 'GDN_vw_Category'Does anyone know why this happens?
Comments
saladyears
Sun Jul 12 12:20:00 -0700 2009
| link
use DROP VIEW GDN_vw_Category to get rid of it.
I think we are trying to get rid of all views in the application so this shouldn't be that much of a pain in the future.
well todd you are so right, that was really a pain in my behind.
good luck! and best wishes to you and mark, and vanilla2!Also why is it uppercase? On my localhost using XAMPP it's all lowercase. Weird, that's all just screwed up.
@convoe your problem happened to me also. i think it is XAMPP works under windows and it is not so strict about cases. the way i fixed this, is i used notepad plus to change gdn_xxxxx into GDN_XxxXxx, finally it works.
good luckOh I see, thanks kidmax. Will this fix the errors that have to do with the parser errors?
The latest master commit has all mysql views removed. Should rectify this problem.
-
Fresh install of Garden, first time going to folder, get some nasty errors.
Here is the full error page, sorry that it's messy.
Fatal Error in PHP.ErrorHandler();
file_put_contents(/var/www/gdn/cache/locale_mappings.php) [function.file-put-contents]: failed to open stream: Permission denied
The error occurred on or near: /var/www/gdn/library/core/class.filesystem.php286: * @param string $FileName The full path and name of the file to be saved.
287: * @param string $FileContents The contents of the file being saved.
288: */
289: public function SaveFile($FileName, $FileContents) {
290: file_put_contents($FileName, $FileContents);
291: return TRUE;
292: }
293:
294: /**
Backtrace:
[/var/www/gdn/library/core/functions.error.php:126] PHP::include();
[/var/www/gdn/library/core/functions.error.php:126] PHP::ErrorHandler();
[/var/www/gdn/library/core/class.filesystem.php:290] PHP::file_put_contents();
[/var/www/gdn/library/core/class.locale.php:114] FileSystem->SaveFile();
[/var/www/gdn/library/core/class.locale.php:63] Gdn_Locale->Set();
[/var/www/gdn/bootstrap.php:105] Gdn_Locale->__construct();
[/var/www/gdn/index.php:26] PHP::require_once();
Variables in local scope:
[FileName] '/var/www/gdn/cache/locale_mappings.php'
[FileContents] '<?php if (!defined('APPLICATION')) exit(); $LocaleSources['en-CA'][] = '/var/www/gdn/applications/garden/locale/en-CA/definitions.php';'
Need Help?
If you are a user of this website, you can report this message to a website administrator.
If you are an administrator of this website, you can get help at the Lussumo Community Forums.
Additional information for support personnel:* Application: Garden * Application Version: 1.0 * PHP Version: 5.2.6-3ubuntu4.1 * Operating System: Linux * User Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1) Gecko/20090615 Firefox/3.5 * Request Uri: /gdn/index.php/garden/gardensetup * Controller: PHP * Method: ErrorHandlerComments
saladyears
Sat Jul 11 06:34:53 -0700 2009
| link
Try making your cache directory writable?
joshuajenkins
Sat Jul 11 12:52:15 -0700 2009
| link
Permissions issue on my side.
-
I get this when trying to install Vanilla. Everything is right with the database host, name, password, and my credentials. I don't know what else could be wrong. :(
Declaration of Gdn_RoleModel::Save() should be compatible with that of Model::Save()
The error occurred on or near: /homepages/27/d259285679/htdocs/www/convoe/applications/garden/models/class.rolemodel.php254:
255: // Remove the role
256: $this->SQL->Delete('Role', array('RoleID' => $RoleID));
257: }
258: }
Comments
saladyears
Wed Jul 08 13:40:42 -0700 2009
| link
You can fix this locally by changing line 285 in library/core/functions.error.php to:
set_error_handler('ErrorHandler', E_ALL);
-
..and it's fixed in a179f4a.
Comments
saladyears
Wed Jul 15 13:59:25 -0700 2009
| link
This was closed but the fix is still sitting in my branch!
-
Seems to happen to any form that has a submit button, including Change My Password as well. The values get written to the database, but the form itself never closes, leaving the 3 box animation playing until the user manually closes it.
This first showed up after I branched in e0a4f9f, so it's probably something to do with the DELIVERY_TYPE work.
Comments
saladyears
Thu Jul 02 15:55:18 -0700 2009
| link
Also, error reporting seems to be broken. Try changing your password but leaving the new password fields blank. Using Firebug, you can see the error messages being propagated in the POST, but they do not display in my browser (FF3).
saladyears
Tue Jul 07 08:35:10 -0700 2009
| link
This was fixed in the main branch in 40a0020.
-
class ConversationsHooks :: Base_Render_Before ()
$Inbox = Gdn::Translate('Inbox'); ... // <--
$Inbox .= '<span>'.$CountUnreadConversations.'</span> ... // It will be translated again in Gdn_MenuModule::ToString()
$Sender->Menu->AddLink( $Inbox ...I think need to add new parameter to AddLink() / AddItem() function: $Suffix
It was in Vanilla 1 inPanel::AddListItem()Comments
This issue was addressed in 45288fc.
Rather than add a suffix I added the ability to prefix the $Code argument with a "" which will prevent it from being translated when rendered. I figured that people might want to do even more sophisticated formatting on the menu in the future so they should be able to pass the literals that they create into the menu.
-
The tables should be created with utf8_unicode_ci. This will avoid future problems.
Comments
[deleted user] Tue Jul 07 09:37:34 -0700 2009 | linkAgree with it,
Okay, I implemented this suggestion in a generic way in 45288fc.
I added an Gdn_Database::ExtendedProperties property which is an associative array that can be put in the config and taken advantage of by the drivers. I added the following line in /conf/config-defauts.php:
$Configuration['Database']['ExtendedProperties']['Collate'] = 'utf8_unicode_ci';
The MySQL structure file takes advantage of this whenever it creates a table.
-
If you select "Closed" as the user registration setting, you can not save. It gives you the error: "You must select at least one role." but the role selector is hiden by javascript. So you have to select any other registrations mode, select a role and change back to "Closed" to get it work.
How it should be: garden should not check for a role if "Closed" is selected.
Comments
-
You don't need PhotoID column inside the gdn_user table, as it is linked to the gdn_photo table via gdn_userphoto table
Comments
-
Different sizes for foreign key type column fields
1 comment Created 5 months ago by MySchizoBuddyRoleID in the gdn_userrole is int(2) and in gdn_role its int(11)
Assuming these are same keys that will link when doing inner joins.
These should be of same length, either int(2) or int(11)
Same goes UserID and DiscussionID and othersComments
-
I haven't styled the CommentScore plugin in plugins/CommentScore/commentscore.css. This affects the comments page.
Comments
-
2 comments Created 5 months ago by tburryDeleting a discussion doesn't update the count within a categoryVanillaxIf I delete a discussion the categories still show the discussion counts including that discussion.
Comments
Hi, I just downloaded and installed Garden/Vanilla2, and notice this behaviour also happens if I Edit the discussion and change the category to a different category. The count in the new category is incremented, but the count in the old category and in "All Discussions" is not decremented in the sidebar. However, it is updated in the Dashboard for the "New discussions in the last ..." but still not in the (total) "Discussions" in the Dashboard.
-
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[08004] [1040] Too many connections'
PDO falls too often on localhost oO (one user, one connection)
OS: Win XP SP3, PHP 5.2.4, MySQL 5.0.45Comments
Were you doing anything in particular when you ran into the problem? Posting comments? Clicking through specific controllers?
We've made the controller close the connection before render, but perhaps there's some ajax call somewhere that fails to close them.
[deleted user] Wed Jul 01 08:54:55 -0700 2009 | linkLet me remember what I did. Well, I explored Garden code by modifying the core files inserted there a dump function like var_dum($X); die(); Reload the same page many times (10-15). Such was once or twice and on different pages, one is /garden/settings/themes and some other (not remember).
I suppose that the problem was because database connection was not closed properly.[deleted user] Wed Jul 01 08:57:17 -0700 2009 | linkOr possible that my local server is not good configured -)
-
1 comment Created 6 months ago by [deleted user]Conversations. Wrong Autocomplete Ajax URL.ConversationsxURL: http://garden.local/messages/add
Autocomplete: http://garden.local//garden/user/autocomplete/?q=s&limit=10×tamp=1246219949267
doubled slash.
http://pic.ipicture.ru/uploads/090629/VVl0sv372S.pngComments
-
In applications\vanilla\views\post\comment.php (and in som other files) we see picture like this:
echo $this->Form->Button(Gdn::Translate('Preview'));
In result we are getting this code:
input type="submit" class="Button" value="Просмотр" name="Comment/%D0%9F%D1%80%D0%BE%D1%81%D0%BC%D0%BE%D1%82%D1%80" id="Form_Просмотр" />Comments
[deleted user] Tue Jun 30 11:22:16 -0700 2009 | linkAnother place.
Vanilla/Settings/Hooks :: Base_Render_Before()
... $MyDiscussions .= ' [span]'.$CountDiscussions.'[/span]'; ... -> Class Menumodule:: function Addlink
... Gdn::Translate($Link['Code'])); // $Link['Code']) = $MyDiscussions; // ex. "My Discussions [span]2[/span]" -
Non standard database table prefixes are not well supported
15 comments Created 6 months ago by saladyearsIn my SetupController, if I want to change the database table prefix, which I imagine will be common for anyone creating a new app, I have to do this:
$Database = Gdn::Database(); $Config = Gdn::Factory(Gdn::AliasConfig); $Drop = Gdn::Config('Cities Online.Version') === FALSE ? TRUE : FALSE; $Explicit = TRUE; $Construct = $Database->Structure(); $Validation = new Validation(); // Set our special prefix. $Database->DatabasePrefix = 'CON_'; $Construct->DatabasePrefix('CON_');I thought I could get away with only setting it in $Construct. However, if I later want to run queries in my structure.php file, I also have to set it in $Database, or the queries will be using the GDN_ prefix. It would be nice to only have to set it in one place.
Comments
saladyears
Fri Jun 26 12:06:29 -0700 2009
| link
It's worse than this. If I create my own model and then change the database prefix for it, it's changed for every other model because they are all pointing at the same Gdn::Database() object:
class Con_Model extends Model { public function __construct($Name) { // Construct our parent. parent::__construct($Name); // Now set our database prefix properly. $Prefix = Gdn::Config('Cities Online.Prefix', ''); $this->Database->DatabasePrefix = $Prefix; } }It looks like users will have to manually set the $Database field of any of their own Model classes to a unique instance. There isn't anyway to do this in the constructor of Model.
saladyears
Fri Jun 26 12:23:15 -0700 2009
| link
I was able to work around the problem by changing my model to this:
class Con_Model extends Model { public function __construct($Name) { // Construct our parent. parent::__construct($Name); // Now set our database prefix properly. $Prefix = Gdn::Config('Cities Online.Prefix', ''); $this->Database = new Gdn_Database('Database'); $this->SQL = $this->Database->SQL(); $this->Database->DatabasePrefix = $Prefix; } }This is again pretty awkward, but it does work this way.
saladyears
Fri Jun 26 20:22:59 -0700 2009
| link
Ok, this really needs to be looked at. Form validation is completely busted for any user that has their own database prefix. It boils down to this function in Schema:
public function Fetch($Table = FALSE) { if ($Table !== FALSE) $this->CurrentTable = $Table; if (!is_array($this->_Schema)) $this->_Schema = array(); if (!array_key_exists($this->CurrentTable, $this->_Schema)) { $SQL = Gdn::SQL(); $this->_Schema[$this->CurrentTable] = $SQL->FetchTableSchema($this->CurrentTable); } return $this->_Schema[$this->CurrentTable]; }The problem is that Gdn::SQL(); returns the default database, which, of course, has no knowledge of any special database prefix, so all form validation chokes because the table's schema can't be retrieved, and the validation rules can't be applied.
saladyears
Fri Jun 26 20:57:24 -0700 2009
| link
This is another stupendous hack, but model validation can be worked around as follows:
// Get the values out of the form. $FormValues = $this->Form->FormValues(); // Prepare the sql data. $Values = array('UserID' => $Session->UserID, 'SessionID' => $Session->TransientKey(), 'RemoteIp' => ArrayValue('REMOTE_ADDR', $_SERVER, ''), 'Port' => $FormValues['Port'], 'Status' => 'Unknown', 'LastUpdate' => Format::ToDateTime()); $this->StatusMessage = Translate("Your host status has been successfully updated."); // FIXME: This is unfortunate, but right now Garden doesn't support database // prefixes very well, and validation is completely broken for any // models that have a different database prefix. // So, we have to completely hack the system. $Database = Gdn::Database(); $OldPrefix = $Database->DatabasePrefix; $Database->DatabasePrefix = Gdn::Config('Cities Online.Prefix', ''); // If this user did not have an entry, insert. if(FALSE === $Data) { $this->HostModel->Insert($Values); } else { $this->HostModel->Update($Values); } // FIXME: Remove this hack. $Database->DatabasePrefix = $OldPrefix; // Reload the page. $this->RedirectUrl = Url('/profile/'.urlencode($Session->User->Name));Todd has been working on the Database, and he is going to post a reply to you explaining how he would get this going.
I wanted to point out that if you are creating a new database prefix to go with your application, you will not be able to take advantage of the Garden tables. For example, joining from one of your prefixed tables to a GDN_ prefixed table couldn't really happen as the point of a prefix is to completely separate the entities.
Is your intent to have the ability to join your prefixed tables with Gardens? If so, can we get a dialogue explaining your use case?
Thanks for your comments saladyears. Our intent for multiple database prefixes would be that you store those configuration settings and then install a different database object in your application's bootstrap.php using Gdn:FactoryInstall:
Gdn::FactoryInstall('CitiesOnlineDatabase', 'Gdn_Database', PATH_LIBRARY.DS.'database'.DS.'class.database.php', Gdn::FactorySingleton, array('Cities Online.Database'));
You would then need to have your models and controllers initialize their Database properties in their constructors rather than using the $Uses array for this. It helps they all inherit from versions for your application similar to the built-in applications.
This of course doesn't allow you to join between tables with different prefixes. We might have to come up with a notation in the SQLDriver object to allow for this.
I'm hoping that I am getting at your problem here, but please let me know.
saladyears
Tue Jun 30 14:42:06 -0700 2009
| link
Ok, I see where you're going. I don't plan on actually joining my tables against Gdn tables. My tables are completely separate entities that only use the UserID as a means of getting information out of Garden tables when needed (which isn't often), and the UserID comes from the Session, so I never have to query for it. I can't help but think, though, that if Garden is meant to be a framework for a site, this use case wouldn't be fairly common. Garden gives me the user IDs, I do what I want with them in my own application on my own set of tables (that might have a unique prefix). It's one of the things I love about the design, applications can be truly sandboxed from each other with few to no dependencies between them.
I do still need to mix and match queries some times, i.e. I occasionally need to get the user's password within my CitiesOnlineController. I think this is fine, though, since I can just use Gdn::SQL() to get a "vanilla" (sorry) database object.
I'll try the plugin approach with my own special database object and see how that goes, thanks for the response.
saladyears
Thu Jul 02 15:19:16 -0700 2009
| link
Ok, I've revamped my classes to use a bootstrap database, but this is still an issue in Gdn_Schema. It still uses $SQL = Gdn::SQL(), outside of the Database that my Model classes are using. When Gdn::SQL() returns the default $SQL object, it's returning the one the default Garden Database uses, which uses the wrong prefix.
Yup. That's a refactoring bug. I'll have to put a property on Gdn_Schema and use that. Thanks for the catch.
saladyears
Thu Jul 02 15:31:58 -0700 2009
| link
I put a patch in my branch that fixes this by giving Gdn_Schema an optional second database parameter that it uses for the SQL fetch if it exists. See SHA: da4ab61
Awesome, thanks!
Before we can use your code, you'll have to agree with our contributor agreement. It's the Sun Contributor agreement, so it's pretty standard. I took a look at the list of people who've filled it out, and I didn't see saladyears on the list - unless you have a different username on lussumo.com. Here's the form:
saladyears
Thu Jul 02 15:42:28 -0700 2009
| link
Done. Also, see SHA: 0657e59 for another fix related to the database changes.
I've pushed these changes to the Dev branch. I just changed the optional $Database = '' to $Database = NULL. I'm not actually sure if this is the right thing to do, but I'm paranoid that php will one day turn strongly typed or something;)
Thanks for the fixes saladyears!
saladyears
Wed Jul 08 09:19:22 -0700 2009
| link
I think this one can be safely closed now. The only awkward thing left is the original post where you still have to manually set the database prefix twice in your SetupController, because you haven't actually saved out your application specific settings yet. Probably just needs documentation.
Everything else works the recommended way, though.
Okay thanks. I think I do want to address the ability for the Gdn_SQL to join across different prefixes sometime in the future.
One thing to note about setting the config manually. When you call Gdn_Configuration->Set() then those settings are marked to save. This did cause a bug in the garden setup where the database was set and then those settings showed up in /cache/library_mappings.
I added a Gdn_Configuration->ClearSaveData() to address this issue.
-
It would be nice if, on construction of tables in structure.php, there was a way to declare a column as an INDEX. The $KeyType parameter is limited to just 'primary' or 'key'.
Comments
-
Declaration of Gdn_UserModel::Get() should be compatible with that of Model::Get()
4 comments Created 6 months ago by saladyearsI suddenly started seeing this on my site. Since it's just a playground right now, I completely nuked it, deleted every file off the host, wiped all database tables, downloaded the latest from github, and reuploaded a clean install.
The installer page shows up correctly, but as soon as I enter the correct database values and click Continue, this error shows up again and the installation does not finish.
Comments
saladyears
Wed Jun 24 10:21:15 -0700 2009
| link
I can get around this by setting error_reporting(0) in the root index.php, but that's not a long-term solution. It doesn't seem to matter what other value I set error_reporting to, this error shows up. Here are the settings reported at the bottom of the fatal error:
* Application: Garden * Application Version: 1.0 * PHP Version: 5.2.10 * Operating System: Linux * User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729) * Request Uri: /index.php/settings * Controller: PHP * Method: ErrorHandler
saladyears
Wed Jun 24 10:57:08 -0700 2009
| link
I have a better workaround. I'm guessing that my host turned on E_STRICT by default in the php.ini file at some point without actually mentioning it to me, which is causing the error.
However, after reading the documentation at http://us3.php.net/manual/en/function.set-error-handler.php, it's clear that no matter what you set the error_reporting() value at, if you override the error-handler, it ignores your error_reporting value. That's why I was still getting E_STRICT errors, because ErrorHandler in /library/core/functions.error.php by default is set to handle E_ALL | E_STRICT.
I have locally fixed this by changing:
set_error_handler('ErrorHandler'); // defaults to E_ALL | E_STRICT
to:
set_error_handler('ErrorHandler', E_ALL); // removes E_STRICT
I guess the question really comes down to if Garden is going to be E_STRICT compatible. If not, this should probably go in as a fix so people who have it turned on by default don't error out.
Interesting problem! I'm surprised I haven't run into it myself. I'm going to do some testing to see what I can do about it.
-
Deleting a custom route results in parseerror
2 comments Created 6 months ago by sirlancelot- Add a new route (you cannot delete the
Default*routes)
- Click the delete link next to the newly created route.
Comments
sirlancelot
Tue Jun 23 13:11:42 -0700 2009
| link
I found and fixed the problem in my fork at 45cf987
- Add a new route (you cannot delete the
-
See http://v2.settlersonline.net/index.php/citiesonline/games for the error, which is "Illegal offset type" in /homepages/46/d236349463/htdocs/v2.settlersonline.net/library/core/class.controller.php, 338.
I followed the steps in the quick start guide to create an application. I was able to configure the application to appear in the applications section. I successfully added a new Controller called GamesController, which extends CitiesOnlineController, and got the same error page in the guide when I visited it before creating the view.
I then created a view in /citiesonline/views/games/index.php where the contents of index.php is simply "Hello World!" (no quotes). Visiting the page then gives the fatal error.
Comments
saladyears
Tue Jun 23 07:24:43 -0700 2009
| link
I should also add that it doesn't matter what I put in index.php, the error is the same.
saladyears
Tue Jun 23 08:37:59 -0700 2009
| link
I was able to hack around this by adding the following lines to my base CitiesOnlineController in appcontroller.php:
public function Initialize() {
if ($this->DeliveryType() == DELIVERY_TYPE_ALL) { $this->Head = new HeadModule($this); } $this->AddCssFile('default.screen.css'); $this->AddCssFile('menu.screen.css'); $this->AddCssFile('popup.screen.css'); $this->AddCssFile('form.screen.css'); parent::Initialize();}
Nice work. I made some changes to how things are built since I wrote that documentation page. We should update the skeleton appcontroller to have:
public function Initialize() {
if ($this->DeliveryType() == DELIVERY_TYPE_ALL)
$this->Head = new HeadModule($this);parent::Initialize();
}
lincolnwebs
Fri Nov 27 16:49:21 -0800 2009
| link
I believe this can be closed; that has indeed been added to the skeleton appcontroller.
-
3 comments Created 6 months ago by saladyearsClicking Username->Notifications gives an undefined method errorGardenxFatal error: Call to undefined method Gdn_DatabaseDebug::Update() in /homepages/46/d236349463/htdocs/v2.settlersonline.net/applications/garden/controllers/profile.php on line 190
This is after successfully applying the patch resolution in issue 3.
This is with the Debugger plugin enabled. With it disabled, the error still occurs, but with:
Fatal error: Call to undefined method Gdn_Database::Update() in /homepages/46/d236349463/htdocs/v2.settlersonline.net/applications/garden/controllers/profile.php on line 190
Comments
getting the same thing.
Fatal error: Call to undefined method Gdn_Database::Update() in /home/deel/de3l.com/garden/applications/garden/controllers/profile.php on line 190
I am getting the same thing.
Fatal error: Call to undefined method Gdn_Database::Update() in /home/xxx/public_html/Garden/applications/garden/controllers/profile.php on line 190
-
1 comment Created 6 months ago by lussumoConversations Recipient Input CleanupConversationsxThe recipient input in Conversations needs better functionality. I don't like that it currently relies on the name being posted. I'd rather have it store the name and userid of the users who were added. I'd like to be able to make it only add a user one time (you can currently enter the same name repeatedly). I'd like to be able to "x" a name off the list - similar to facebook's recipient input on their internal mail app.
Comments
-
Automatically select 'Category' with new discussion. For example, I was in the category named 'Vanilla' and wanted to post a new discussion, but when I click the 'Start a New Discussion" button the category is set to 'General' instead of 'Vanilla'.
Comments
-
[Originally submitted by mumpitz on old issue tracker]
2 line breaks are required are required when writing to receive a single line break when displaying. Example:
"Hello How are you?"
Becomes
"Hello How are you?"Comments
-
[Originally submitted by Simba Cub on old issue tracker]
Opera:
Version 9.62; Build 5256Mac OS 10.5.6 (9G55)
Various menus are not lain out correctly. Instead of staying on the same line, various options are cropped and forced onto the next line. For some reason I can't get a snapshot of it - sorry!
Comments
Looks nice here...
Version: 9.64
Build: 5270and
Version: 10.00 Beta 2
Build: 6550
Plattform: Mac OS X 10.5.7
lincolnwebs
Fri Nov 27 16:37:27 -0800 2009
| link
Based on the age of this issue, elm's comment, that it similarly works here on Opera 9.64 (Windows), and the recent markup revamps, I'm pretty confident this can be closed.
-
1 comment Created 6 months ago by lussumoIncluded in discussion not participated in as well as being last posterVanillax[Originally submitted by x00 on old issue tracker]
Speaks for itself see:
http://vanilla2.com/discussion/8956/Accented/#Item_7and attachments.
Replication will work on it.
Comments
-
1 comment Created 6 months ago by lussumoPassword Reset Request Form Doesn't WorkGardenx -
1 comment Created 6 months ago by lussumoForeign characters cause repeated dashes in urlVanillaxfor example:
"Test of the Russian Language (???????? ?????) Error inside"
becomes:
Comments
-
1 comment Created 6 months ago by lussumoCharacter encoding breaks when comments editedVanillaxComments
-
1 comment Created 6 months ago by lussumoCan't sign in with Opera 8.51 when JavaScript on (handleAjaxForm/Post in place)Gardenx[Originally submitted by x00 on old issue tracker]
Simply can't sign-in. Clicking 'Sign me in!' does nothing.
Also fairly obvious that JavaScript? seems to affect the default styling quite a bit, which is not desirable. There should be consistency unless it is a special effect. Will talk about IE/Opera styling in another ticket.
It is good that you are using text and json for your ajax as opera 8 can't handle xml (why anyone would use xml is beyond me), but there is clearly a bug here and it probably applies to many forms not just the logon.
I think you need to at least trap the error and make sure it falls back to a non JavaScript? solution.
Comments
-
[Originally submitted by BigFat on old issue tracker] http://vanilla2.com/discussion/9010/#Item_1
if i use Chinese languange in discussion/reply content, it can be post correctly into post/draft/preview once.
but, if i edit it again via edit post/draft form, it display wrong code in textarea.
the subject field is okay.
btw, the preview button is not wysiwyg?
Comments
-
1 comment Created 6 months ago by lussumoUser Profile allows unauthenticated user to add commentGardenx -
1 comment Created 6 months ago by lussumoPlugin manager doesn't check application requirements properlyGardenx[Originally added by Todd at our old issue tracker] I created a plugin with the following application requirements in $PluginInfo?:
'RequiredApplications?' => array('Vanilla' => '2')
However, the ApplicationManager?->_EnabledApplications does not seem to store version information to bass into CheckRequirements?() (library/core/functions.general.php). The only way that an application requirement can be added is to leave the version as an empty string:
'RequiredApplications?' => array('Vanilla' => )
The call starts in library/core/class.pluginmanager.php line 332.
Comments
-
Clicking on my username or either of the dropdown items (Notifications, My Activity) in Vanilla 2 gives me the following error:
Fatal error: Call to undefined function getallheaders() in /path/to/installation/library/core/class.controller.php on line 913
Currently running PHP 5.2.8, MySQL 5.0.77
Clean install, single user, didn't touch a thing, honest guv'nor.
Comments
saladyears
Mon Jun 22 08:09:24 -0700 2009
| link
Also seeing this.
See http://bugs.cubecart.com/view.php?id=476 for a possible workaround.
Added a fix for the getallheaders bug into library/core/functions.general.php
-
fyi
tried an install on server running version: 5.0.67receive message trying to access garden folder:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/deel/de3l.com/garden/index.php on line 30
Comments
saladyears
Mon Jun 22 08:08:30 -0700 2009
| link
Make sure all your .php files are set to be parsed as php5. I got this error until I added this line to my root .htaccess file:
AddHandler x-mapp-php5 .php
thanks saladyears,
but that sent it off in the weeds.i realize it's not on a server running 5.1 - so hopefully that is the prob? or should it do something regardless?
also there was no config.php file in the conf folder - is that normal?
It's normal for there to be no conf/config.php file in the package. Garden should make that file when you install it - but you're not even making it to the install because you're not running php 5.
-
Unknown MySQL server host 'localhost:3307'
I think you should fix library/core/functions.general.php
function GetConnectionString() . Add port parameter.
//return mysql:host=xxx;port=xxx;dbname=xxx' //return $ServerType.':host='.$HostName.';dbname='.$DatabaseName;Comments












No. They do not provide identical functionality, and livequery is still needed in places.