Store Community Support Documentation

Help setup Instant Messaging.

I install Redis, NodeJS and npm. Rename PF.Site/Apps/core-im/server/config.js.new to config.js.

Setup file config.js.

Site doesn't support SSL.

But Instant Messaging not work.

In terminal:

[root@***]# node -v

v9.11.2
[root@***]# npm -v
5.6.0

If i run commant node index.js on terminal, error:
[root@***]# node index.js

internal/modules/cjs/loader.js:550
    throw err;
    ^

Error: Cannot find module '/root/index.js'

    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
    at Function.Module._load (internal/modules/cjs/loader.js:475:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
    at startup (internal/bootstrap/node.js:201:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)


Help please setup Instant Messaging!

 

Last update on December 5, 3:17 pm by Vetal.
#2

I follow this instrustion, but IM not work!!!

If Phpfox use Node.js, provide good instruction to setup IM, step by step. 

#3

Install on HYPER-VCentOS 7.

Install control panel.

Update php to 7.2.

Update MariaDB to 10.3.11.

Install phpfox fresh.

Install Node.js 8.14.0 and NPM 6.4.1.

Install Redis 5.0.3.

Instant Messaging not work!!!

How to setup this f*** IM???

Fox Observer
#4

@Vetal please behave. Here is the link for you https://docs.phpfox.com/display/FOX4MAN/Server+Setup+for+IM+Module

#5

I say again, i follow this instrustion.

Vivian
#6

Hi Vetal,
Have you run some commands yet?
1. cd /some/folder
2. npm update
3. npm install

#7

Yes. In folder /server/ created /node_module/ folder, with modules node.

I using APACHE, not php-fpm.

 

Vivian
#8

Yes. In folder /server/ created /node_module/ folder, with modules node.

I using APACHE, not php-fpm.

 

Please submit us a support ticket and we will check on your server and let you know why it's not running.

Last update on December 18, 4:26 am by Vivian.
Amol Saini
#9

Hello Vetal

you are not running the command properly and it seems like you didnt follow the instructions.

You are getting error (Error: Cannot find module '/root/index.js')   index.js is never in root folder i am sure

so you have to go to folder first using terminal where you uploaded file

like cd /home/****/imfolder

after that run the command node index.js

 

Let me know if you need more help and explation.

Next time Please Behave in Forum.

Last update on December 20, 4:06 pm by Amol Saini.
#10

Hello Vetal

you are not running the command properly and it seems like you didnt follow the instructions.

You are getting error (Error: Cannot find module '/root/index.js')   index.js is never in root folder i am sure

so you have to go to folder first using terminal where you uploaded file

like cd /home/****/imfolder

after that run the command node index.js

 

Let me know if you need more help and explation.

Next time Please Behave in Forum.

I place file /server/ folder to /root/ folder.

And yes, i go to /server/ folder like cd /myfolder and now folow node index.js

Not work.

Amol Saini
#11

Hello

Please send me DM

#12

I fix problem. Open port for NODEJS.

But new problem with import data from v3.

If i start import auto or manual, error 500 or blank page. Import not work.

 

#13

Main.log

error

2018-12-21 10:25:16
Error Code: fad0c9
TypeError: Argument 1 passed to DOMNode::removeChild() must be an instance of DOMNode, null given in /site_folder/PF.Site/Apps/core-im/Controller/AdminImportDataController.php:159
Stack trace:
#0 /site_folder/PF.Site/Apps/core-im/Controller/AdminImportDataController.php(159): DOMNode->removeChild(NULL)
#1 /site_folder/PF.Site/Apps/core-im/Controller/AdminImportDataController.php(77): Apps\PHPfox_IM\Controller\AdminImportDataController->getUserProfile('270')
#2 /site_folder/PF.Base/include/library/phpfox/module/module.class.php(1180): Apps\PHPfox_IM\Controller\AdminImportDataController->process()
#3 /site_folder/PF.Base/include/library/phpfox/module/module.class.php(589): Phpfox_Module->getComponent('\\Apps\\PHPfox_IM...', Array, 'controller')
#4 /site_folder/PF.Base/include/library/phpfox/module/module.class.php(383): Phpfox_Module->getController()
#5 /site_folder/PF.Base/module/admincp/include/component/controller/index.class.php(383): Phpfox_Module->setController('im.admincp.impo...')
#6 /site_folder/PF.Base/include/library/phpfox/module/module.class.php(1180): Admincp_Component_Controller_Index->process()
#7 /site_folder/PF.Base/include/library/phpfox/module/module.class.php(589): Phpfox_Module->getComponent('admincp.index', Array, 'controller')
#8 /site_folder/PF.Base/include/library/phpfox/phpfox/phpfox.class.php(1655): Phpfox_Module->getController()
#9 /site_folder/PF.Base/start.php(631): Phpfox::run()
#10 /site_folder/index.php(9): require('/site_folder...')
#11 {main}

#14

Try on php 7.2 and php 7.0, the same error.

How to fix this error?

#15

Sorry for the stupid question but what should I use for private_Key.key ? 

Last update on December 22, 10:11 pm by Whoshotya.
#16

Sorry for the stupid question but what should I use for private_Key.key ? 

Certificate SSL.