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 problem with port [Answered] | Forum

Khairul
Khairul Apr 11 '12
I'm using different port for my oxwall. Example http://localhost:8888/oxwall
Other plugin work well. However newsfeed plugin has problem in send status update. The button should link to http://localhost:8888/oxwall/newsfeed/ajax/status-update/
however it link to http://localhost/oxwall/newsfeed/ajax/status-update/:8888
Can you help me to locate which script to edit?
The Forum post is edited by Alia Dec 4 '13
Juan
Juan Dec 3 '13
Had the same problem using a different port for Oxwall (custom port like 81, 8080, etc)

Solved it by editing:

ow_core/request.php

The order for the 'port' is wrong here. This is the way it worked for me:

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

This also resolved all other points of the software where miserably failed to build a correct URL with a custom, different port: changing page language, some admin links and functions, etc.

Hope it helps and developers correct that for next version..


Alia Team
Alia Dec 4 '13
Thanks for sharing Juan.