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

<Object> has no method 'init'

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

Post a reply
3 posts • Page 1 of 1

<Object> has no method 'init'

Postby boby203 » Tue Sep 10, 2013 10:44 am

Hey there,

Just update 2.0.1 to 2.1.1 from here https://github.com/kerphi/phpfreechat.

Changing the old folder by the newer but impossible to launch it because of this --> Object #<Object> has no method 'init'.
Error show me that line into pfc.js :
// run phpfreechat stuff
pfc.init(this);

So, what's wrong ?

Thank you
boby203
New member
 
Posts: 3
Joined: Tue Sep 10, 2013 10:37 am
Top

Re: <Object> has no method 'init'

Postby boby203 » Wed Sep 18, 2013 2:01 pm

Ok for me, just need to add these lines after the pfc.js :

<script src="<?= base_url('chat/client/pfc-init.js'); ?>" type="text/javascript"></script>
<script src="<?= base_url('chat/client/pfc-core.js'); ?>" type="text/javascript"></script>
<script src="<?= base_url('chat/client/pfc-auth.js'); ?>" type="text/javascript"></script>
<script src="<?= base_url('chat/client/pfc-commands.js'); ?>" type="text/javascript"></script>
<script src="<?= base_url('chat/client/pfc-cmd_join.js'); ?>" type="text/javascript"></script>
<script src="<?= base_url('chat/client/pfc-cmd_op.js'); ?>" type="text/javascript"></script>
<script src="<?= base_url('chat/client/pfc-cmd_kick.js'); ?>" type="text/javascript"></script>
<script src="<?= base_url('chat/client/pfc-cmd_ban.js'); ?>" type="text/javascript"></script>
<script src="<?= base_url('chat/client/pfc-channels.js'); ?>" type="text/javascript"></script>
<script src="<?= base_url('chat/client/pfc-users.js'); ?>" type="text/javascript"></script>
<script src="<?= base_url('chat/client/pfc-utils.js'); ?>" type="text/javascript"></script>

But new problem now ! -->

".htaccess must be allowed on your server (AllowOverride All) and mod_rewrite must be enabled on your server and correctly configured ("RewriteBase" could be adjusted in server/.htaccess file)"

Everything seems all right but always this error.

Need help ! ;-)

Thx
boby203
New member
 
Posts: 3
Joined: Tue Sep 10, 2013 10:37 am
Top

Re: <Object> has no method 'init'

Postby boby203 » Mon Sep 23, 2013 9:09 am

Problem solved !

Was a syntax error into the config.php (but indicated me .htaccess pb...)

Now new problem, impossible to fetch up my session info... Don't think anyone can help me on that
boby203
New member
 
Posts: 3
Joined: Tue Sep 10, 2013 10:37 am
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v2.x)

Who is online

Users browsing this forum: No registered users and 2 guests

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