Skip to content
You are here: Home » WordPress » WP-IRC WordPress Plugin
Follow up comments through RSS Feed | Post a comment
I have displayed this error as i have ativated and saved from managed option:
Warning: fsockopen() [function.fsockopen]: unable to connect to irc.freenode.net:6667 (Connection refused) in /home/fullhd/public_html/wp-content/plugins/wp-irc/wp-irc.php on line 213
You need to enable socket connection in your php.ini file. Ask your webhosting support team to do it and the Plugin should wok after that.
Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /usr/home/web/web195496/wp-content/plugins/wp-irc/wp-irc.php on line 16
http://www.squnk.dk i try to connect to quakenet.org
what is wrong here
You are getting this warning because safe mode is enabled in your webserver.
In safe mode we cannot set time limit, but I am setting time limit so that the connection doesn’t timeout.
So if my host do not alowe safe mode what can i do
you said :
but I am setting time limit so that the connection doesn’t timeout.
can i remove that line 16 or what can i doo
Comment out that line. It will reset the timeout to the default which is specified in your php.ini file and will also remove the warning message.
Try it out and let me know if works.
Warning: fsockopen() [function.fsockopen]: unable to connect to irc.quakenet.net:6667 (Connection refused) in /usr/home/web/web195496/wp-content/plugins/wp-irc/wp-irc.php on line 210
so i guees host need to open sockets tho its strange i use another chat on same host on another site ant peaple connect to the channel
this scripting is very nice i like to speak more abaut that
anyway the time limit error is gone
Yeah, I am using fscokopen to open a socket connection with the irc server.
Nice to know that you like my code. It still needs some cleaning and I will try to see if I can retrieve the information without using sockets.
You can contact me any time. You can find my email address in the contact page.
i sure will do that
i hope you will be able to come around the fsoxkets
hey again did you look at the retrive information without using sockets.
ye i no we are all bussy with stof we have sorry
anyway when and if you can fix that problem i have many sugestions and things on my mind in developing this plugin 🙂
regards kim denmark
ps do you code in ather language and what language (code)
I am sorry, I am yet to figure it out.
hello suder again i like to make this nice plugin to work and maby olso to make some other codes in it so i contacted my host and he move my hole server to another server that work with safe mode off if i put a .htttaces in the root i did that now it saus this
only thing i need is how many peaple ???? what did i doo wrong
i send you a mail with some info iff you have use 4 it
There are currently people in #Anticheat.org
Get alert when ..
users count reach mroe than
hello again i have safe mode off sockets are open
why dont it tell me how many peaple are in the channel
turkce mirc indir
Mirc indir yükle Thanx
Hi, nice plugin, got some issue with it…. uhm.. it dosnt want to show how many it is in the channel, im thinking if it requemint open a the port or something else?
im trying with #php @ quakenet.org..
I’m using wordpress 2.9.1 and I am trying to run your wp-irc plugin. I’m getting the error:
Warning: fsockopen() [function.fsockopen]: unable to connect to irc.mibbit.com:6667 (Connection timed out) in /home3/mysebsite/public_html/wp-content/plugins/wp-irc/wp-irc.php on line 213
There are currently 0 people in #jessesfc
Is this a plugin error with the latest version of wordpress – or is this a hosting error 🙁
This is a hosting error. You need to enable sockets in the php.ini file of your webhost.
You indicated earlier that the php.ini file needed to be edited to allow socket connections. Below is the text of my php.ini file. Can you give me some idea of what I need to put in or edit to make this work? I am getting the same socket connection error as the other guy.
register_globals = off
allow_url_fopen = off
expose_php = Off
max_input_time = 60
variables_order = “EGPCS”
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = “a=href,area=href,frame=src,input=src,form=,fieldset=”
Hey there. I have just installed your wp-irc plugin and activated it with all the info. I have been watching it with no result. It simply isn’t doing any thing. Is there a more advanced set up instructions? Thought maybe I’m missing something.
Check whether you have enabled sockets in your php.ini file.
Okay. I’m sure I’m going to sound like an idiot. But here are the php.ini files located. And what do you mean “sockets”.
I’m sorry to sound like such a noob, but this is all new to me.
Contact your web hosting company’s support and ask them to enable sockets in PHP for you. They should be able to help you.
i just uploaded this plugin.
i activated the plugin.
so what’s next?
i dont see the chat page on my site. it is not showing on my site
Go to the widget admin area and add the WP-IRC widget to your sidebar.
I tried to set up the plugin, but the user doesn’t appear on my Server, so I can’t see how much users there are on the server via WP IRC.
I get no warning/error, please help me!
this is a bad plugin?
This plugin is working as is should .. If people know how to make it work, they probaly dont wrote the right server name or have some webhosting issues ..you could se it on my site
I just translate it to danish btw.
But one thing is why is it necessary to have a nickname in when its not a “bot” there is actually joining the channel or would it actually be possible to make it join , just for backup if Q is missing ? .. 🙂
It actually joins the channel, before getting the list of people of who have joined. That’s why you need the nickname.
But its not joining the channel at least is not viewable .. :S .. But it show how many people there is .. but i had to disable it because it make my site load slow
I am a blind user and I think this is going to be a repeat post but I do have an addition to my last post.
After installing the plugin, I saw where it says you can use a tag like [count] and I am assuming this is the same as a short code? So I could drop this [count] anywhere in my post or page to retrieve the number of people in said channel?
And my additional question…
The nickname area. I have a bot in my channel as is and I was using that nick in the nickname area but it was saying 0 people in said channel. Obviously its wrong because the bot itself is in the channel. Do I have to specify a certain nick in this nickname field?
Thanks in advance
The template [count] can be used only within the widget. I am working on creating a shortcode and will let you know once I am done with that.
I guess the Plugin is facing some problem in trying to connect to irc. You might have to check your server settings.
Hello again .. I still want to say as i say before this plugin work nicely, but i seem to have loading issues with site when this is active, it make the site load slowly, and there i have to deactivate this plugin .. is there any way to make it not slow the load of website down ? Or is there a update soonl
The Plugin is making the site slow, because it has to create socket connections to retrieve the count, on the same request that is serving the page. I am working on an AJAX based solution that will move the socket connection part to a separate request.
Will let you know once I am done with that.
Well, in the interim, while awaiting a response, I have discovered a few things regarding my issues stated in my last post.
First of all, I am on shared hosting with Godaddy and they only allow sockets opened on ports 80 and 443. I find this confusing since I use a Mibbit irc chat wp plugin which allows my wordpress users to chat and the server, irc.sorcery.net, is on port 7000. I figured, since the Mibbit chat plugin is allowing people who visit my website to chat through my website, and as a result, through Godaddy, that the wp Irc plugin should work? I am not all that familiar with sockets, ports, php, etc, so I am sure their is a rational explanation to it all.
Also, when the wp irc plugin was activated, it was slowing my site down too when it was loading, even to the point of cutting off some of my other activated widgets below it.
So, unless the socket protocol can be changed, I won’t be able to use this plugin. Well, I could if I upgraded to a virtual dedicated server which would be doubled what I am paying now monthly for shared hosting. I can’t justify that expense just to count the number of people in my channel.
I could implement a work around which would require an automatic ftp program and a mirc script inside a bot in said channel. The bot would keep track of the number of visitors and store it in a text file, and the ftp program would find that file, upload it to a folder I specify on my wordpress, and place the retrieved file in the place I want. It would then display the number of visitors. It would just be a simple text value so it wouldn’t be all that graphically appealing… But it would work.
Anyways, it would be a rather clumsy work around.
I welcome anyone wishing to explain this port 7000 thing as explained above.
Sorry for the long post. I can go on and on at times. 🙂
My guess is that Godaddy is blocking the port which the Plugin is using. Let me check.
But I guess mibbit irc Plugin might be using some other port. Can you give me the url of the Plugin that is working so that I can find out what is happening in the code.
Thank you for taking the time to check out my issues. Here’s the url to the Mibbit irc chat plugin I am using.
I am trying to use your plugin (great idea by the way) but it seems that it will not correctly display the number of users in the channel, always shows 0. However it does connect to the IRC server. Just don’t know where to go from there.
Using latest version of WordPress. Could you please check to see if anyone is having this issue as well? Thanks
I am working on a new version of the plugin. Just give me a couple of days.
That sound awesome 🙂 .. No need to hurry , i could wait 2 more weeks if it should be necessary .. 🙂 I Have this thing , you can never complain over free things isnt have a actually deadline 🙂 .. But Good to hear.
I had this problem , but i think you have to make sure its 6667 in the Port .. etc .. but i did get mine to work, but because it make the site go more slow , then i disconnected it, i hope admin are trying to fix this somehow 🙂 because its a great plugin.
I was actually able to figure it out without having to edit any of the code. What happened was my IRCd did not have a MOTD set, and the code was looking for the end of the MOTD to continue and grab the /LIST $channel — I added an MOTD to my IRCd and everything works properly now. This is a really cool plugin, and I’m pretty good with PHP so I’ll probably modify it a bit and add some more functionality, but I also can’t wait to see what you have in store for any updates to it! I have some great ideas I think would be awesome to add into it.
The Plugin source code is available at https://github.com/sudar/wp-irc.
Send me a pull request if you modify it and I would be happy to merge it.
Casey where did you add this ? .. could you explain it ? ..
Any progress on a newer version?
Didn’t get much free time, so was not able to update it.
Expect an update within 2 weeks.
Just released the updated version. Try it out and let me know if you have any feedback.
Hi! I’m trying to get this widget working but it shows 0 people… server is irc.u-net.in #lounge.
Someone got any clues how to debug it? :]
Check your error logs and let me know if you see anything there.
Where to find them? Apache logs?
turned Debug on, found only that for now:
Notice: Undefined index: smirc_action in /var/www/www/wp-content/plugins/wp-irc/wp-irc.php on line 73
This is just a warning, so we don’t have to worry about it.
Any idea whether fopen is enabled in your server? I suspect that the Plugin is not able to connect to IRC server.
actually, i can see it on server, and it sends lines if i insert that in main “incoming message” loop – so i guess it opened…
Can you try it in the latest version of the Plugin?
Updated, same results: there’s rolling circle on webpage, i can see the bot on channel – nothing more…
I dont even had a bot joining my server . ..
Okay, let me try it in my dev server and will let you know.
*in IRC channel, i meant
I have just updated to latest v 1.0 but it doesnt show my anything, there is just a “loading” circle in the Widget. Not show anything. You Can see it at http://news.playstationforum.dk which is my test site.i set it up for uk.quakenet.org port 6667 and the old version worked but make the site have long loading times. But now it just like “Loading” the Widget is called Chat stats
I just saw the link and it seems to be working now. Are you still facing the issue?
It still doenst worked, i have deactivated until i heard something from you. But now i let it be on so you can see it , it is at the Button of the site.
It could also be not working because of some server config issues.
is ther any server option that it should suppose to have or PHP version minimum ?
In the server side, you should have fopen enabled and safe mode disabled in PHP.
The Server Side is fine fopen is on and Safe Mode is off .
Im getting these errors
Uncaught TypeError: Object [object Object] has no method ‘live’ jquery.nivo.slider.pack.js:13
Uncaught TypeError: undefined is not a function
There seems to be some problem with the jQuery slider pack addon. Find out which Plugin uses it and you might have to contact its author.
I have now make a “Complety Fresh” install of wordpress with no Plugin what so ever .. and only install theme, and import news, so no plugins at all. Now it works but show 0 on my channel – and the “wp-irc-bot” isnt on my channel if it was suppose to join.
I am on quakenet
Server i have tried irc.quaknet.org and se.quakenet.org – port 6667 and in channel wrote my channel name ps3geeks with out #
Hmm, this is strange. Is MOTD enabled in your IRC server? See this comment for more information http://sudarmuthu.com/wordpress/wp-irc#comment-710333
I have disable all things now and now it works as i say ..but where do i need to add that MOTD code what file ?
PHP Warning: implode() [function.implode]: Invalid arguments passed in /home/alenhoff/public_html/wp-content/plugins/wp-irc/wp-irc.php on line 98
the line is
$content = str_replace(“[users]”, implode(” “,$users), $content);
Thanks for reporting. It is fixed in v1.2 of the Plugin
I have recently updated for version 1.2 but it still say 0 users on my channel on Quakenet even there is 10 people. And i even choose the bot to join but it isnt.
Hmm… doesnt work for me… sockets support is enabled. Not joining a channel.
Okej, now I edited the channel in widget and added the # but the bot did not join and it count users to one.. ???
Okej, now its suddenly works
Right, Im sorry to bother you with so much question. The bot joins and parts the channel when I relaod the page. So, if I go to another URL on my site it joins and then parts. is there a way of making the bot join the channel periodically or maybe even stay online all the time???
At least you have a bot there joine i dont have anything there are joining and i am using QUAKENET
I know the Plugin is not working for you. But unfortunately, I don’t know why it is not working for you 🙁
Yeah but i dont know if it is something to do with Quakenet i dont know because i would love to have this plugin work for me .. 🙂 Still good plugin even i cant use it.
Yeah that’s where I am struck. I am not able to find out whether the issue lies in your server code or in my Plugin code 🙁
Try to connect with two irc-clients from the same host… it might be som local host restriction, or try another open server that you know you can connect with.
Svend as i said, on IRCnet you cannot connect with two background processes unless truset host. Too many host connection global is the error. I dont know if thats the issue with quakenet.
What does the error.log file say? You find it in /var/logs/apache2/error.log
In the widget, there is an option to specify the time interval at which the Plugin should connect to the irc server. You can specify a slightly higher value there.
Yeah, but take a look at this:
19:03:24 -!- fl400 [email@example.com] has joined #fl400
19:03:24 -!- fl400 [firstname.lastname@example.org] has left #fl400
19:12:04 -!- fl400 [email@example.com] has joined #fl400
19:12:04 -!- fl400 [firstname.lastname@example.org] has left #fl400
19:18:41 -!- fl400 [email@example.com] has joined #fl400
19:18:41 -!- fl400 [firstname.lastname@example.org] has left #fl400
The time interval is varying.. sometimes when I browse through the website it appears. Doesnt really depend on the interval set in settings.
Besides, it should be cool if its just stayed there, not joined/parted. Thats irritating 😉 I can donate some amount for you to take a look at this 🙂
Thats me not anonymous 😉
19:18:41 -!- fl400 [email@example.com] has joined #fl400
19:18:41 -!- fl400 [firstname.lastname@example.org] has left #fl400 
19:29:16 -!- fl400 [email@example.com] has joined #fl400
19:29:16 -!- fl400 [firstname.lastname@example.org] has left #fl400 
19:35:03 -!- fl400 [email@example.com] has joined #fl400
19:35:04 -!- fl400 [firstname.lastname@example.org] has left #fl400 
21:01:47 -!- fl400 [email@example.com] has joined #fl400
21:01:48 -!- fl400 [firstname.lastname@example.org] has left #fl400 
The same problem, as soon as I start to browse the bot joins.
Script doesnt work for me in 2017….no errors, there are 0 users on channel….. i dont know why.
Your email address will not be published. Required fields are marked *
Notify me of new posts by email.
I am web and WordPress developer hailing from the beautiful city of Chennai, currently residing at Bangalore in India. Read more about me.
Enter your email address to subscribe to this blog and receive notifications of new posts by email.
Join 833 other subscribers