Great that there's a new pre-release! I have it mostly working, except for the conversation list preview.
The XHR request fails with 422, details below. This is just trying to get the list of conversations for the current user, not submit anything.
Any idea what I might need to do to resolve this?
The failing request is a GET to "/forum/api/v2/conversations?expand=all"
I don't have any rows in the "ConversationMessage" table where 'Body' is null or empty.
If I go directly to "/forum/api/v2/conversations?expand=all" in my browser, I get the exact same message. So I doubt it's theme/plugin specific. Something is up with that API endpoint.
Apologies but I can't edit my original comment anymore!
The problem starts on line 362 of applications/conversations/controllers/api/ConversationsApiController.php,
$result = $out->validate($conversations);
Breakpointing on that line and checking the contents of $conversations reveals a message where someone sent only an image, and the body is returned as an empty string. Perhaps the API endpoint could be more permissive of this situation!
Comments
Great that there's a new pre-release! I have it mostly working, except for the conversation list preview.
The XHR request fails with 422, details below. This is just trying to get the list of conversations for the current user, not submit anything.
Any idea what I might need to do to resolve this?
The failing request is a GET to "/forum/api/v2/conversations?expand=all"
I don't have any rows in the "ConversationMessage" table where 'Body' is null or empty.
If I go directly to "/forum/api/v2/conversations?expand=all" in my browser, I get the exact same message. So I doubt it's theme/plugin specific. Something is up with that API endpoint.
The issue could be in here perhaps; https://github.com/vanilla/vanilla/blob/master/applications/conversations/controllers/api/MessagesApiController.php
Using the "Foundation" theme without any third-party plugins (only what was bundled with this version of Vanilla Forums).
Apologies but I can't edit my original comment anymore!
The problem starts on line 362 of applications/conversations/controllers/api/ConversationsApiController.php,
Breakpointing on that line and checking the contents of $conversations reveals a message where someone sent only an image, and the body is returned as an empty string. Perhaps the API endpoint could be more permissive of this situation!
so i am trying the new release on localhost and everything seems to work at first if i click new discussion i get something wrong, so i enable debug,
after enabling debug in debug trace i see
'Could not find file 'custom_default.css' in folder '.
then if i click new discussion it says this error
Fatal Error in Smarty_Security._checkDir();
then displays this
The error occurred on or near: D:\xampp\htdocs\vanilla\vendor\smarty\smarty\libs\sysplugins\smarty_security.php
Backtrace:
you can see the webroot dir, if there is 'addons'? If not, just copy from last version.
@daocaoit addons is there
@ryzen has 'addons/keystone/design/custom_default.css'?
yes it does have it also back trace i cannot post or add new discussions it gives smarty security error
this error is about missing 'custom_default.css' in folder
you can change theme in dashboard to see if other theme is ok.
@daocaoit checked them all I just un-installed went back to 3.3 the custom_defaults are there the addons are there possible bug
pop
Is this community very active? A lot of the discussions seem to be outdated...
2001.003 is broken because of the missing /addon folder. I don't know why no one in the team recognizes it. I recommend downloading 2001.008
https://github.com/vanilla/vanilla/releases/tag/2021.008