| Author |
Message |
figther
Newbie


Joined: Jan 26, 2008
Posts: 2
Location: Denmark
|
Posted:
Sun Jan 27, 2008 8:58 am |
|
I have just install this live chat but i got this
You can't access this file directly... wen i open it??
Can any plz help me.
I am running 7.6 with 3.1 on |
|
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 727
|
Posted:
Wed Jan 30, 2008 4:05 am |
|
Your patch is probably a bit outdated as the modules now use this code...
if ( !defined('MODULE_FILE') )
{
die("You can't access this file directly...");
}
If you look at one of your other modules you can see what to replace that block of code with. Same with the blocks. Or just update your patches to the latest, which would be the best thing to do:) . |
|
|
|
 |
figther
Newbie


Joined: Jan 26, 2008
Posts: 2
Location: Denmark
|
Posted:
Wed Jan 30, 2008 6:34 am |
|
Hey gotcha
THX for the replay, i have look at it now and this is what i get from the other moduls:
| Code: |
if (!stristr($_SERVER['SCRIPT_NAME'], "modules.php")) {
die ("You can't access this file directly...");
} |
I still can get the chat on now i have my backround and blocks on, but that is.
Can you maybe help me out a littel more PLZ.
Cheers
Jimmy |
|
|
|
 |
gamemastr1
Newbie


Joined: Feb 08, 2008
Posts: 4
|
Posted:
Thu Feb 14, 2008 3:18 am |
|
I too am having this error, "You can't access this file directly...". The install instructions from the download were a bit vague so I put my best admin skills to work. I am REALLY new to PHP and MySQL, so please bear with me.
I put the contents of the HTML file I got from the download into the root of my PHPNuke. Some folders were already there and for fear of overwriting the existing files, I placed the files/folders into the respective folders. I went to PHPMyAdmin and created a database called "LiveChat". I then imported the "live_chat.sql" from my local drive. That's been my setup.
I went into the PHPNuke Admin screen and found that the only reference to Live_chat was in the "Modules" section, where I enabled it. I saw no other GUI to admin Live_Chat nor do i know if there is supposed to be one. I go to my home page and click the Live Chat link in my modules on the left side and I get a blank screen that say "You can't access this file directly..."
Now I do not know where to find:
if ( !defined('MODULE_FILE') )
{
die("You can't access this file directly...");
}
If your suggestion:
| Quote: |
| Or just update your patches to the latest, which would be the best thing to do:) . |
would be easier, where do I find the updates? Are they updates to the server, which I do not have access to (Yahoo is my host) or is it an update for my program?
I have been in MySQL and I have seen a few errors. Maybe these have something to do with it, maybe not. I don't know. Just thought I would ask. Here are the errors I get: (CLICK TO ENLARGE)
Any guidance in this matter would be GREATLY appreciated. |
|
|
|
 |
gamemastr1
Newbie


Joined: Feb 08, 2008
Posts: 4
|
Posted:
Thu Feb 14, 2008 1:16 pm |
|
Sorry I am flooding the board, so to speak. I took some time and went through my files and found the spot mentioned where I needed to change the line. I changed the line, saved it, went back to my forum, clicked on Live Chat and now I get my page with my header graphic, the module box down the left side and my buttons up top but in the main part of the window, it is just blank. It is just my background color. There is nothing in there.
Also, reading the other posts in other threads, I guess I do not have a Live_chat Icon in my admin screen. Judging from what others have said, I guess there is supposed to be one. I don't know why I am having so much trouble getting this onstalled.  |
Last edited by gamemastr1 on Fri Feb 15, 2008 9:27 am; edited 1 time in total |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 727
|
Posted:
Fri Feb 15, 2008 9:03 am |
|
You should have installed the sql file to the same database you use for nuke, not a separate database. You also do need php5 installed and you should be able to find out what version of php you have by looking in your control panel. |
|
|
|
 |
gamemastr1
Newbie


Joined: Feb 08, 2008
Posts: 4
|
Posted:
Fri Feb 15, 2008 9:49 am |
|
Thank you for getting back to me on this, Gotcha. I didn't realize the SQL file needed to be imported into the nuke database (duh ). I have imported it into my nuke database and I also checked the version of MySQL, which I am embarrassed to say was right in front of my face the whole time. It says "MySQL 4.1.14 running on myultimatespot.com ". Now I have to figure out how to get 5 as my default. I haven't a clue how I am going to do this seeing as I do not seem to have a .htaccess file. But it seems this install is getting somewhere, baby steps at a time but still slowly going forward. Sooner or later I will run out of stumbling blocks.  |
|
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 727
|
Posted:
Fri Feb 15, 2008 9:53 am |
|
Actually, your mysql version is fine. The version you should be concerned about is the php version. If you have imported the tables to the correct database then it should start working right away if you are using php5. |
|
|
|
 |
gamemastr1
Newbie


Joined: Feb 08, 2008
Posts: 4
|
Posted:
Fri Feb 15, 2008 10:11 am |
|
OMGoodness.... I am SOOOO stupid. You said PHP... not SQL. Why was I looking up SQL? Alright, new quest. find what version of php I am using.
OK, that part was easy. PHP Version 4.3.11, So I guess I now need to figure out how to get PHP5 going on my site.
THE NEXT DAY:
Unfortunately I have spent MANY hours trying to get this program to work only to find out my hosting company are a bunch of Yahoo's and do not have PHP 5 nor do they plan to anywhere in the near future. Here is the majority of the response i got back from them
| Quote: |
I understand that you would like to upgrade the current version of PHP.
At this time Yahoo! Web Hosting has no plans to upgrade to
newer versions of our server software. Based on current user needs, we
have found that the software that is available meets the needs of a
majority of our users. Yahoo! Web Hosting continually evaluates the
needs of users as well as security alerts and technology trends to
determine when a software upgrade is required.
However, the feature you wished is really recommendable and I appreciate
your understanding for bringing them to our concern. I have forwarded
your concern to our engineering and development team and hope that the
features will be available very soon in near future. |
So unfortunately I and whomever else is hosted by Yahoo are not able to use Live Chat. Maybe a friendly suggestion would be that there be a minimum requirements on the Live Chat screen. This would have saved me time and frustration and now complete disappointment.
But I would once again like to thank Gotcha for the help in trying to get me up and running. I did appreciate it. Maybe if I find a better host or they upgrade their server, I will be back. |
|
|
|
 |
seasonace
Newbie


Joined: Mar 09, 2008
Posts: 9
|
Posted:
Wed Mar 12, 2008 10:31 am |
|
I have phpnuke 8.0, php5.2.5, and IIS -- my site is running great -- the live chat installation executed flawlessly. The database looks great too. Live Chat runs, and every line entered into chat is entered into the db - but it's not displaying in the chat box. tried firefox and IE..
any suggestions? I've read through all posts relating to live chat and now I'm stumped. |
|
|
|
 |
chewy_mole
Newbie


Joined: Mar 16, 2008
Posts: 6
|
Posted:
Tue Mar 18, 2008 11:25 am |
|
| seasonace wrote: |
I have phpnuke 8.0, php5.2.5, and IIS -- my site is running great -- the live chat installation executed flawlessly. The database looks great too. Live Chat runs, and every line entered into chat is entered into the db - but it's not displaying in the chat box. tried firefox and IE..
any suggestions? I've read through all posts relating to live chat and now I'm stumped. |
Hi
I had this problem with another module, you might try switching your theme and see if the text is displayed.
Tim |
|
|
|
 |
seasonace
Newbie


Joined: Mar 09, 2008
Posts: 9
|
Posted:
Tue Mar 18, 2008 12:22 pm |
|
good suggestion.. but I've already checked a whole bunch of other themes with the same results. |
|
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 727
|
Posted:
Tue Mar 18, 2008 12:43 pm |
|
Just to see if i'm on the right track, open up modules/Live_Chat/lib/class.chat.php and find..
| Code: |
$query = 'SELECT * FROM '.TABLE_CHAT.' WHERE id > (SELECT MAX( id ) - '.MESSAGE_LIMIT.' FROM '.TABLE_CHAT.') ORDER BY id ASC LIMIT '.MESSAGE_LIMIT;
}
$result = $this->db->sql_query($query);
$response = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'; |
on a new line, after add...
| Code: |
| $response .= mysql_error() |
Then access liveChat.php directly and see if it shows an error message. |
|
|
|
 |
seasonace
Newbie


Joined: Mar 09, 2008
Posts: 9
|
Posted:
Thu Mar 20, 2008 3:40 am |
|
you were missing a semi-colon at the end of that line...
here is the error i'm getting in the live-chat module, when I access it.
Error accessing the server!
TypeError: response.getElementsByTagName("denied").item(0) has no properties |
|
|
|
 |
seasonace
Newbie


Joined: Mar 09, 2008
Posts: 9
|
Posted:
Tue Apr 01, 2008 6:21 am |
|
any ideas?
or should I drop trying to get Live Chat to work for my site? |
|
|
|
 |
|
|