• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

You must be connected to send a message

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
4 posts • Page 1 of 1

Postby Sunchaser » Mon Apr 30, 2012 8:41 pm

Hi, I have a problem getting phpfreechat to work.

PFC Version: 1.3
PHP Version: PHP 5.2.10 (built: Nov 13 2009 11:24:03)


Shared or Dedicated Hosting: Dedicated
Link to your website: http://www.medieval-europe.eu

Are you able to reproduce the issue on the official demo (http://www.phpfreechat.net/demo)? No

Have you set any parameters? Yes
If so, please include your entire code, using the [code ] and[/code ] tags (without the space).

Code: Select all
$char = Session::instance() -> get('char');
$view = new View('chat/freechat');
$sheets  = array('gamelayout'=>'screen', 'submenu'=>'screen');

require_once( "application/libraries/vendors/phpfreechat-1.3/src/phpfreechat.class.php");
$params["serverid"] = md5(__FILE__); // used to identify the chat
$params["nick"] = $char -> name;
$king = $char -> region -> get_roledetails( 'king' ) ;
if (Auth::instance()->logged_in('admin') or $char -> id == $king -> character_id )
            $params["isadmin"] = true;
else
            $params["isadmin"] = false;
$params["language"] = Auth::instance()->get_user() -> language ;
$params["title"] = 'Medieval Europe Chat';
$params["frozen_nick"] = true;
$params["max_nick_len"] = 25;
$params["max_channels"] = 2;
$params["focus_on_connect"] = true;
$params["connect_at_startup"] = true;
$params["data_public_url"] =  url::base() . 'application/libraries/vendors/phpfreechat-1.3/data/public';
$params["theme_default_url"] = url::base() . 'application/libraries/vendors/phpfreechat-1.3/themes';
$params["theme_url"] = url::base() . 'application/libraries/vendors/phpfreechat-1.3/themes';
$params["server_script_url"] = 'freechat';
$params["channels"] = array ( kohana::lang( $char -> region -> kingdom -> name), 'Global Chat' );
$params["theme"] = 'medieval';
$params["debug"] = true;
$params["nickmeta"] = array(
            'name' => $char -> name, 'kingdom' => kohana::lang( $char -> region -> kingdom -> name)
            );
$params["nickmarker"] = false;
$chat = new phpFreeChat($params);

What is the issue you are experiencing in detail? Can't write in the chat. It says: You must be connected to send a message

Are you seeing any error messages, such as javascript errors?
Yes.
See pic:
Image
http://i48.tinypic.com/2vj39fb.jpg
Sunchaser
Member
 
Posts: 11
Joined: Thu Mar 29, 2012 6:01 pm
Top

Postby Sunchaser » Mon May 07, 2012 11:04 am

101 views and no answer?

Can someone give me at least some idea on where to look?

thanks
Sunchaser
Member
 
Posts: 11
Joined: Thu Mar 29, 2012 6:01 pm
Top

Postby Sunchaser » Mon May 07, 2012 11:11 am

Ok i found an error:

Code: Select all
error: Uncaught PHP Error: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: SAFE MODE Restriction in effect.  The script whose uid is 10001 is not allowed to access...httpdocs/application/libraries/vendors/phpfreechat-1.3/data/private/chat/s_e4b6f003eae7006625d1f98b6937b8e1 owned by uid 48 in application/libraries/vendors/phpfreechat-1.3/src/pfctools.php, linea 150

The chat file is owned by the user apache and the website uses a different unix users. What can i do to fix this problem?
Sunchaser
Member
 
Posts: 11
Joined: Thu Mar 29, 2012 6:01 pm
Top

Postby Sunchaser » Mon May 07, 2012 11:39 am

Solved, i removed the 'Safe mode' php Flag.
Sunchaser
Member
 
Posts: 11
Joined: Thu Mar 29, 2012 6:01 pm
Top


Post a reply
4 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 28 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub