Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
porcupinepc
Involved
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Mon Jun 28, 2004 6:09 pm Reply with quote

Raven:

I downloaded and installed your program Ravens Who Is Where Block .
I edited the 2 files index.pho and modules.php but when i tried getting into my site i received the following error:

MySQL said: You have an error in your SQL syntax near 'memory' at line 1


Any ideas?

Joe
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Mon Jun 28, 2004 7:25 pm Reply with quote

PM'ing me and posting too? Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad Evil or Very Mad Bang Head
 
View user's profile Send private message
porcupinepc
PostPosted: Mon Jun 28, 2004 7:28 pm Reply with quote

sorry

Joe
 
Raven
PostPosted: Mon Jun 28, 2004 7:41 pm Reply with quote

ROTFL Cheers
 
Chief
New Member
New Member


Joined: Jun 29, 2004
Posts: 5

PostPosted: Tue Jun 29, 2004 2:44 pm Reply with quote

When I enable the Who-is-Where block I cant enter in Your Accout module..

phpnuke 7.0 with nsnya stuff.
 
View user's profile Send private message
LostInSauce
New Member
New Member


Joined: Jun 28, 2004
Posts: 6

PostPosted: Sat Sep 04, 2004 2:20 pm Reply with quote

I'm Lost again Sad I'm running 7.3 and I installed the Who Is Where by the readme, and my table was created successfully without having to do it manually through phpmyadmin, but when I click on the module I get a white page with only this:
////////////////////////////////
Guest(s) Online
3 guest(s)

3 User(s) Online
Ledahas
Downloads
zyfer
News
Lost
Who Is Where


( sec. refresh)

Fatal error: Call to a member function on a non-object in /home/bbvhurk/public_html/dragonswhisper/mainfile.php on line 614
//////////////////////////////////

Also, the block is missing. It's uploaded there, but in the block administration, it doesn't show for me to activate it. Any help would be appreciated, I'm still a php noob Shocked but I'm doing my best.
RavensScripts
 
View user's profile Send private message
Raven
PostPosted: Sat Sep 04, 2004 5:48 pm Reply with quote

It sounds like you have not installed it correctly. Reread the installation instructions and make sure that you have done exactly as instructed. There are 2 places that you have to add the include statement to. Then, make sure that all files got ftp'd. The module should not be activated at all, only the block.
 
LostInSauce
PostPosted: Sun Sep 05, 2004 1:23 pm Reply with quote

I did it exactly as the readme states, and then twice more just to be sure Crying or Very sad I still have my inactive module, all the files in their proper place, the 2 files edited with Zend studio and uploaded one at a time as stated. But no block to be found on the site, although i see that the folder and file are right there when i log in with my ftp client. The installation is quite easy, so I'm not sure what the hangup is... Are there any other mods it's not compatable with? Or themes? Thanks in advance for any help you can offer Very Happy


Last edited by LostInSauce on Wed Sep 08, 2004 1:22 pm; edited 1 time in total 
Raven
PostPosted: Sun Sep 05, 2004 1:27 pm Reply with quote

Are you saying the block is not in the list of drop-down blocks that you have to manually add? By the way, what is line 614 in your mainfile.php?
 
LostInSauce
PostPosted: Sun Sep 05, 2004 1:53 pm Reply with quote

Yes, the block is not listed. Sad
Here is a 614 and the code surrounding it from mainfile.php

608 function cookiedecode($user) {
609 global $cookie, $prefix, $db, $user_prefix;
610 $user = base64_decode($user);
611 $cookie = explode(":", $user);
612 $sql = "SELECT user_password FROM ".$user_prefix."_users WHERE
613 username='$cookie[1]'";
614 $result = $db->sql_query($sql);
615 $row = $db->sql_fetchrow($result);
616 $pass = $row[user_password];
617 if ($cookie[2] == $pass && $pass != "") {
618 return $cookie;
619 } else {
620 unset($user);
621 unset($cookie);
622 }
 
Muffin
Client


Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Sun Sep 05, 2004 2:43 pm Reply with quote

Shouldn't this be between line 610 and line 611?

Quote:
$user = addslashes($user);
$user = htmlentities($user, ENT_QUOTES);


Please don't put that in your mainfile until someone's checked it, because my mainfile may be different to yours. And I'm no expert.

_________________
Classic Mini rules the bends & bends the rules!
[img] 
View user's profile Send private message
LostInSauce
PostPosted: Sun Sep 05, 2004 2:56 pm Reply with quote

No Idea, I never messed with my mainfile, unless a mod directed me to do so... and I haven't touched this area for sure.
 
LostInSauce
PostPosted: Wed Sep 08, 2004 7:27 pm Reply with quote

Anyone else have this problem before? or any ideas?
 
Raven
PostPosted: Wed Sep 08, 2004 7:32 pm Reply with quote

Please turn $SQL_DEBUG on in includes/sql_layer.php

$sql_debug = 0;
to
$sql_debug = 1;

and try it. You will see all kind of messages on your screen but what you are looking for is an sql warning or error. Look for the messages around that line 614 error and post them back.
 
LostInSauce
PostPosted: Thu Sep 09, 2004 4:26 pm Reply with quote

Hmmm I did that yet I don't see any messages on the site. Please excuse my noobishness but where should I be looking for these warnings/errors?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©