We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

ERROR 500 after a question - Questions | Forum

Joan
Joan Apr 14 '13
When I make a question from a group, everyone who is not in this group have error 500.



Sergey Kambalin
Sergey Kambalin Apr 14 '13

Hello Joan,


I can fix the error on your site, if you provide me FTP details. Otherwise you need wait for the upcoming update of the plugin, it will be released in a week or two. 


Or you can fix it by yourself. Follow these instructions:

1) Open this file ow_plugins/questions/classes/newsfeed_bridge.php

2)  Find this code in the file:


$language = OW::getLanguage();

$configs = OW::getConfig()->getValues('questions');

$questionId = $params['action']['entityId'];


3) Replace it with this code:


$language = OW::getLanguage();

$configs = OW::getConfig()->getValues('questions');

$questionId = $params['action']['entityId'];

$userId = OW::getUser()->getId(); // This line fixes the error


The Forum post is edited by Sergey Kambalin Apr 14 '13
Joan
Joan Apr 15 '13
Hello Sergey,


It works.Tank you very much.

You do not have permission to reply this topic