Author |
Message |
sharlein
Member Emeritus

Joined: Nov 19, 2002
Posts: 322
Location: On the Road
|
Posted:
Wed Apr 28, 2004 8:08 pm |
|
Hi, I am getting this error when i try to load the site. I am also using chatserve's package for 7.0.Code:Parse error: parse error in /home/silvias/public_html/Nuke/html/mainfile.php on line 1105
Fatal error: Call to a member function on a non-object in /home/silvias/public_html/Nuke/html/index.php on line 21
| Line 1105 is the closing line for the mainfile and line 21 in the index.php isCode:$row = $db->sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main"));
|
|
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Wed Apr 28, 2004 9:15 pm |
|
That's probably not the problem. It's probably a syntax error up higher. Your site was working. What have you changed? |
|
|
|
 |
sharlein

|
Posted:
Wed Apr 28, 2004 10:33 pm |
|
Raven, it is on the new site, Only registered users can see links on this board! Get registered or login! |
|
|
|
 |
Raven

|
Posted:
Thu Apr 29, 2004 4:54 am |
|
The hackalert code you pasted was missing a closing } . Let me know if there is a post you copied that from that is missing the } |
|
|
|
 |
sharlein

|
Posted:
Thu Apr 29, 2004 6:15 am |
|
The one in the mainfile I copied from your first post earlier this week, the testing proposal, before the note was added. But I'm sure it was my error - the other two sites did not get this error. Thank you very much.  |
|
|
|
 |
sharlein

|
Posted:
Tue Jun 01, 2004 5:12 pm |
|
I can't log into any of my sites. I am greeted with this errorCode:Parse error: parse error, unexpected T_STRING in /home/brokenpe/public_html/Nuke/html/modules/Your_Account/index.php on line 771
| and on mine Code:Parse error: parse error, unexpected T_STRING in /home/sharlein/public_html/modules/Your_Account/index.php on line 754
| and on the thirdCode:Warning: main(modules/Your_Account/navbar.php): failed to open stream: No such file or directory in /home/silvias/public_html/Nuke/html/modules/Your_Account/index.php on line 28
Warning: main(): Failed opening 'modules/Your_Account/navbar.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/silvias/public_html/Nuke/html/modules/Your_Account/index.php on line 28
| The first two errors are including the header, and the last is including the navbar. As near as i can tell, it happened around the same time I installed Sentinel. Thank you, steve |
|
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Tue Jun 01, 2004 6:30 pm |
|
Did you use one copy of Your_Account index.php for all the sites so the same error might have come from one file? |
|
|
|
 |
Raven

|
Posted:
Tue Jun 01, 2004 6:32 pm |
|
Steve,
On line 752 you have the followingCode:$userinfo = getusrinfo($user);"
| Note that extra " at the end ? |
|
|
|
 |
sharlein

|
Posted:
Tue Jun 01, 2004 8:59 pm |
|
Yes, Raven. everything works fine when I removed it in all of the instances. Just so happens I did the your_account mods the same day I installed Sentinel. I'm sorry. Thank you very much. |
|
|
|
 |
Raven

|
Posted:
Tue Jun 01, 2004 9:44 pm |
|
No problem my friend! |
|
|
|
 |
hireamerica
Client

Joined: Sep 30, 2004
Posts: 103
Location: New Jersey
|
Posted:
Thu Sep 30, 2004 2:18 pm |
|
I might have posted elsewhere, but now this seems the place:
Sentinel 2.0.1 was perfecto Raven! I just tried to go to 2.0.2 and the tables upgraded just fine and all was well.
I noticed the mainfile.php changes and those errored, so I did a simple include of sentinel.php and that works.
But in the 4 your_account changes I'm getting unexpected { found where I made the first change. Presumably I'd get it in the other 3, but I just can't seem to find the issues.
The replaced code is simple and atomic with a simple function and if ... {
The replacement code is also simple with 2 functions and an if ... {
So I'm not sure why the unexpected { now...
Quote: |
cookiedecode($user);
getusrinfo($user);
if ( (is_user($user) AND ($userinfo[username] == $cookie[1]) AND ($userinfo[user_password] == $cookie[2]) ) {
|
|
|
|
|
 |
hireamerica

|
Posted:
Thu Sep 30, 2004 2:26 pm |
|
Uggh... missed the )) afer the is_user
Fixed and working... my bad. |
|
|
|
 |
Raven

|
Posted:
Thu Sep 30, 2004 2:28 pm |
|
You've made a slight typo. You haveCode:if ( (is_user($user) AND ($userinfo[username] == $cookie[1]) AND ($userinfo[user_password] == $cookie[2]) ) {
| and it should beCode:if ((is_user($user)) AND (strtolower($userinfo[username]) == strtolower($cookie[1])) AND ($userinfo[user_password] == $cookie[2])) {
|
|
|
|
|
 |
Raven

|
Posted:
Thu Sep 30, 2004 2:29 pm |
|
Posts crossed  |
|
|
|
 |
|