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

Newsfeed SEND Error[bug - to be fixed] | Forum

Sakchai Stitthai
Sakchai Stitthai Dec 24 '15

Hi. I'm having an issue on a fresh oxwall install. I'm using port 82 on my xampp apache server. Everything is ok but when I try to use newsfeed send button. 

I got an error:

http://my_local_ipaddress/oxwall/newsfeed/ajax/status-update/:82?

I cannot find how to set this port correctly:

http://my_local_ipaddress:82/oxwall/newsfeed/ajax/status-update/

 

Any idea? Or am I doing anything wrong?

 

Thanks in advance,

The Forum post is edited by ross Jan 5 '16
Attachments:
  Error.jpg (132Kb)
ross Team
ross Dec 24 '15
did you make text status? or you upload the photo or probably link share?

can you make screenshot of the response tab in the console? now on the screenshot I see only headers tab? keep us updated. 

Sakchai Stitthai
Sakchai Stitthai Dec 24 '15

Thank ross
I can solve this issue.
File : ow_core/request.php
The order for the 'port' is wrong here.
return (empty($requestUrlArray['scheme']) ? "" : $requestUrlArray['scheme'] . ":" ) . '//' . $requestUrlArray['host'] . ( empty($requestUrlArray['path']) ? '' : $requestUrlArray['path'] ) .            ( empty($requestUrlArray['port']) ? '' : ':' . (int) $requestUrlArray['port'] ) . '?' . http_build_query($currentParams) . ( $anchor === null ? '' : '#' . trim($anchor) );


This is the way it worked for me:


return (empty($requestUrlArray['scheme']) ? "" : $requestUrlArray['scheme'] . ":" ). '//' . $requestUrlArray['host'] . ( empty($requestUrlArray['port']) ? '' : ':' . (int) $requestUrlArray['port'] ) .        ( empty($requestUrlArray['path']) ? '' : $requestUrlArray['path'] ) .'?' . http_build_query($currentParams) . ( $anchor === null ? '' : '#' . trim($anchor) );



ross Team
ross Dec 24 '15
Did you indicate the port for your URL in the config.php file in the first place?
Sakchai Stitthai
Sakchai Stitthai Dec 24 '15
define('OW_URL_HOME', 'http://xxx.xx.x.29:82/socialnetwork/');


ross Team
ross Jan 5 '16
Sakchai, thanks for sharing, you're right, this is a bug, we have reported this to our devs, your fix will be applied in one of the upcoming updates. 
⭐⭐⭐ Abdul Qadir ⭐⭐⭐
Might be likewise a reasonably wonderful short article that we all most certainly most popular assessing. Might be no day-after-day in which watch the possibility to look through unit. reparation pc boulogne billancourt