Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ Forum software
➜ Installation
➜ Table Not Specified
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2 3
4
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #15 on Mon 13 Jan 2003 02:11 AM (UTC) |
| Message
| Sounds close enough, the one on this web server is 4.2.3 (Apache 1.3.26), and on my personal PC is 4.1.2 (Apache 1.3.26) which also works.
Sounds like a problem passing arguments to PHP from the web page. "head" and "tail" are parts of the control record (head being the stuff at the top of each page, and tail being the stuff at the bottom), I don't know how those words go into the "id" field.
I'm not sure what to suggest here. I have that table editor (edittable.php) working on the web server here, on my OpenBSD web server at home, and on my web server running under Mac OS/X, all without any problems.
Dare I say, it is an XP problem? If you have a spare PC, try installing a version of Linux, FreeBSD, or OpenBSD. Personally I use OpenBSD but Mac OS/X seems to be based on FreeBSD.
You could try this ...
In edittable.php around line 992 are these lines:
/*
// debugging
DebugVars ();
ShowArray ("field", $field);
ShowArray ("field_max_len", $field_max_len);
ShowArray ("field_type", $field_type);
*/
Uncomment them by removing the /* and the */. Then try using it again. See what appears in the debugging display. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Kris
USA (198 posts) Bio
|
| Date
| Reply #16 on Mon 13 Jan 2003 03:23 AM (UTC) |
| Message
| I did just notice that I had the directory in the config files wrong; was set to the old forum directory (as opposed to the updated one you had me download). I made the appropriate corrections, but still the error occurs; now it's just slightly different. Instead of "you entered 'head'" it now says "you entered 'localhost'".
Here's the debug crap for the page where I edit faq_url in control:
HTTP_GET_VARS
[id] = [19]
[table] = [control]
HTTP_POST_VARS
HTTP_COOKIE_VARS
[session] = [cee2d3dfce91957046e13fb1449ca667]
[User] = [kris]
[Lang] = [en]
[Theme] = [Standard]
GLOBALS
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[HTTP_POST_VARS] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_POST] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[HTTP_GET_VARS] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_GET] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[HTTP_COOKIE_VARS] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_COOKIE] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[HTTP_SERVER_VARS] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_SERVER] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[HTTP_ENV_VARS] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_ENV] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[HTTP_POST_FILES] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_FILES] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_REQUEST] = []
[CONFIG_PATH] = [C:/program files/webserver/server/apache/htdocs/fom1/forum2/forum/config/]
[WEBMASTER] = [kris@aethia.org]
[DATABASE_SERVER] = [localhost]
[GENERAL_DATABASE_NAME] = [forum2]
[GENERAL_DATABASE_USER] = [kris]
[MAIL_DATABASE_NAME] = [mail]
[MAIL_DATABASE_USER] = [nick]
[DUMP_TABLE_DIRECTORY] = [C:/program files/webserver/server/apache/htdocs/fom1/forum2/forum/sql/]
[INCLUDE_DIRECTORY] = [C:/program files/webserver/server/apache/htdocs/fom1/forum2/forum/include/]
[FORUM_INCLUDE_DIRECTORY] = [C:/program files/webserver/server/apache/htdocs/fom1/forum2/forum/forum_include/]
[ADMIN_DIRECTORY] = [C:/program files/webserver/server/apache/htdocs/fom1/forum2/forum/admin/]
[GENERAL_DATABASE_PASSWORD] = [(removed from debug)]
[MAIL_DATABASE_PASSWORD] = [secret]
[id] = [19]
[table] = [control]
[session] = [cee2d3dfce91957046e13fb1449ca667]
[User] = [kris]
[Lang] = [en]
[Theme] = [Standard]
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
.....
| | Top |
|
| Posted by
| Kris
USA (198 posts) Bio
|
| Date
| Reply #17 on Mon 13 Jan 2003 03:26 AM (UTC) |
| Message
| (continued)
[userinfo] = []
[logoff] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[control] = []
[viewsource] = []
[PATH_TRANSLATED] = []
[pagestarttime] = [1042426473.9135]
[doingMail] = []
[current_database_name] = [forum2]
[foruminfo] = []
[blocked] = []
[adminaction] = []
[userid] = [1]
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[access] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[field] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[field_max_len] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[field_type] = []
[field_data] = []
[metatable] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[metarow] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[specials] = []
[primary_key] = [19]
[primary_key_name] = [id]
[display_field] = [item]
[action] = []
--------------------------------------------------------------------------------
field
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[item] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[contents] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[id] = []
field_max_len
[item] = [30]
[contents] = [65535]
[id] = [11]
field_type
[item] = [string]
[contents] = [blob]
[id] = [int]
Then I click the 'change' button without modifying anything. Here's the error page with all the debug crap:
HTTP_GET_VARS
[id] = [19]
[table] = [control]
HTTP_POST_VARS
[item] = [faq_url]
[contents] = [/forum/bbshowpost.php?bbsection_id=1]
[searchfield] = [item]
[searchvalue] = []
[amend] = [Change]
[id] = [localhost]
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[table] = []
[simple] = []
HTTP_COOKIE_VARS
[session] = [cee2d3dfce91957046e13fb1449ca667]
[User] = [kris]
[Lang] = [en]
[Theme] = [Standard]
GLOBALS
....
| | Top |
|
| Posted by
| Kris
USA (198 posts) Bio
|
| Date
| Reply #18 on Mon 13 Jan 2003 03:28 AM (UTC) |
| Message
| (continued)
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[HTTP_POST_VARS] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_POST] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[HTTP_GET_VARS] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_GET] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[HTTP_COOKIE_VARS] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_COOKIE] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[HTTP_SERVER_VARS] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_SERVER] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[HTTP_ENV_VARS] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_ENV] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[HTTP_POST_FILES] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_FILES] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[_REQUEST] = []
[CONFIG_PATH] = [C:/program files/webserver/server/apache/htdocs/fom1/forum2/forum/config/]
[WEBMASTER] = [kris@aethia.org]
[DATABASE_SERVER] = [localhost]
[GENERAL_DATABASE_NAME] = [forum2]
[GENERAL_DATABASE_USER] = [kris]
[MAIL_DATABASE_NAME] = [mail]
[MAIL_DATABASE_USER] = [nick]
[DUMP_TABLE_DIRECTORY] = [C:/program files/webserver/server/apache/htdocs/fom1/forum2/forum/sql/]
[INCLUDE_DIRECTORY] = [C:/program files/webserver/server/apache/htdocs/fom1/forum2/forum/include/]
[FORUM_INCLUDE_DIRECTORY] = [C:/program files/webserver/server/apache/htdocs/fom1/forum2/forum/forum_include/]
[ADMIN_DIRECTORY] = [C:/program files/webserver/server/apache/htdocs/fom1/forum2/forum/admin/]
[GENERAL_DATABASE_PASSWORD] = [(removed from debug)]
[MAIL_DATABASE_PASSWORD] = [secret]
[id] = [19]
[table] = [control]
[item] = [faq_url]
[contents] = [/forum/bbshowpost.php?bbsection_id=1]
[searchfield] = [item]
[searchvalue] = []
[amend] = [Change]
[simple] = []
[session] = [cee2d3dfce91957046e13fb1449ca667]
[User] = [kris]
[Lang] = [en]
[Theme] = [Standard]
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[userinfo] = []
[logoff] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
....
| | Top |
|
| Posted by
| Kris
USA (198 posts) Bio
|
| Date
| Reply #19 on Mon 13 Jan 2003 03:28 AM (UTC) |
| Message
| (continued)
[control] = []
[viewsource] = []
[PATH_TRANSLATED] = []
[pagestarttime] = [1042427359.1774]
[doingMail] = []
[current_database_name] = [forum2]
[foruminfo] = []
[blocked] = []
[adminaction] = []
[userid] = [1]
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[access] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[field] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[field_max_len] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[field_type] = []
[field_data] = []
[metatable] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[metarow] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[specials] = []
[primary_key] = [19]
[primary_key_name] = [id]
[display_field] = [item]
[action] = [amend]
--------------------------------------------------------------------------------
field
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[item] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[contents] = []
Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\program files\webserver\server\apache\htdocs\fom1\forum2\forum\include\common.php on line 527
[id] = []
field_max_len
[item] = [30]
[contents] = [65535]
[id] = [11]
field_type
[item] = [string]
[contents] = [blob]
[id] = [int]
There is a problem ...
Primary key [id] is invalid [Field must be numeric]. You entered 'localhost'
I took a look at common.php, since the errors were pointing to it, but unfortunately it was pretty much gibberish to me; my knowledge of php is very basic at best.
Dunno if that helps, but hopefully you'll find something wrong in there hehe :)
| | Top |
|
| Posted by
| Kris
USA (198 posts) Bio
|
| Date
| Reply #20 on Tue 14 Jan 2003 10:48 PM (UTC) |
| Message
| I tried looking through common.php again today. However, I'm afraid to touch anything hehe. Do you think that repeated error pointing to common.php has anything to do with the id field getting screwed-up, and if so, any idea how I could fix it? :)
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #21 on Wed 15 Jan 2003 03:34 AM (UTC) |
| Message
| | Could be. I uncommented those lines and tried it, and did not get those warnings. Perhaps your PHP is configured differently in some way. I hesitate to guess in what way that might be. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Kris
USA (198 posts) Bio
|
| Date
| Reply #22 on Wed 15 Jan 2003 04:05 AM (UTC) |
| Message
| Strange.... Line 527 of common.php is (in bold):
printf ("<li>[%s] = [%s]\n",
htmlspecialchars ($cellname), // name
htmlspecialchars ($value)); // value
If $value is somehow corrupted here, that -could- perhaps explain the problem, assuming this printf statement has anything to do with assigning the 'id' value that seems to be messed up. Do you know what $value is supposed to be in this context, and what that statement is for?
| | Top |
|
| Posted by
| Kris
USA (198 posts) Bio
|
| Date
| Reply #23 on Wed 15 Jan 2003 04:14 AM (UTC) |
| Message
| Ok ok I seriously doubt a printf statement in a section commented as 'debugging' could be the cause of the problem. Still, it might suggest some problem with passing the $value variable. Still don't understand why it would only be doing it on my server.... I don't see how something like that could be OS-related, and my version of php and apache are almost identical to yours (just slightly older i think).
This is indeed a puzzler.... I want to use the forum for the awards judges to use for the FoM event. It fits exactly what I need for it. If I could just get the bloody thing to work hehe....
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #24 on Wed 15 Jan 2003 11:52 AM (UTC) |
| Message
| This is what I get, in part ...
HTTP_GET_VARS
HTTP_POST_VARS
[item] = [font]
[contents] = [<FONT FACE=\"Verdana, Arial, Helvetica, Geneva\" size=-1>]
[searchfield] = [item]
[searchvalue] = []
[amend] = [Change]
[id] = [3]
[table] = [control]
[session] = [c6acfcadab314c90084d1d529d7be71f]
[simple] = []
HTTP_COOKIE_VARS
[session] = []
field
[item] = [Array]
[contents] = [Array]
[id] = [Array]
field_max_len
[item] = [30]
[contents] = [65535]
[id] = [11]
field_type
[item] = [string]
[contents] = [blob]
[id] = [int]
This is quite different to your behaviour, so I think somehow PHP is behaving differently, why I cannot say. If you had Unix I would suggest giving me a shell account so I could take a look, but I don't see that working under XP.
As you can see above, when I try to change the field "font" in the "control" table (record 3) id is 3 (in HTTP_POST_VARS) whereas you don't have any HTTP_POST_VARS. I would try to find out why not. I notice you have them in _REQUEST, which leads me to the php.ini file. :)
Here is one suggestion that might work. Edit your php.ini file (better find where it is) and look for this line:
Change it to:
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Kris
USA (198 posts) Bio
|
| Date
| Reply #25 on Wed 15 Jan 2003 11:05 PM (UTC) |
| Message
| Whew! I just spent the last couple hours upgrading to the newest versions of Apache and PHP. Now using Apache 2.0.43 and PHP 4.3.0. It seems that Fate has a rather sick sense of humor, however, for now the problems seem even worse than before! I tested my configuration with other (albeit simpler) php scripts and it worked fine, so I know it's at least functional.
(with edittable.php's debugging turned off) I'm getting a whole bunch of PHP errors now. Here's logon.php after I login:
Notice: import_request_variables() [function.import-request-variables]: No prefix specified - possible security hazard in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 1471
Notice: Undefined index: session in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 145
Notice: Undefined index: session in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 147
Warning: Cannot modify header information - headers already sent by (output started at C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php:1471) in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 193
Notice: Undefined index: token in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 226
Notice: Undefined index: token in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 228
Notice: Undefined index: token in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 230
Notice: Undefined index: action in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 236
Your site name
--------------------------------------------------------------------------------
Logged on as Administrator
Notice: Uninitialized string offset: 0 in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 644
Notice: Uninitialized string offset: 0 in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 645
Notice: Undefined index: have_cookie_ok in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 646
(Menu)
Notice: Uninitialized string offset: 0 in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 644
Notice: Uninitialized string offset: 0 in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 645
Notice: Undefined index: have_cookie_ok in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 646
(Log off) (Forum)
--------------------------------------------------------------------------------
Administrator main menu
Notice: Uninitialized string offset: 0 in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 644
Notice: Uninitialized string offset: 0 in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 645
Notice: Undefined index: have_cookie_ok in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 646
Execute SQL command
Notice: Uninitialized string offset: 0 in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 644
Notice: Uninitialized string offset: 0 in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 645
Notice: Undefined index: have_cookie_ok in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 646
Execute SQL file
Edit table: accessbbbannedbbnotify_subjectbbnotify_topicbbpostbbsectionbbsubjectbbtopicbbusercontrolcountrymetarowmetatableuser
Notice: Undefined index: have_cookie_ok in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 704
Notice: Uninitialized string offset: 0 in C:\program files\webserver\server\apache\apache2\htdocs\fom1\forum2\forum\include\common.php on line 691
Page execution time: 0.014 seconds
Comments to: webmaster@your_site.com
Yikes! Furthermore, now when I try to click the 'edit' button, or in fact any of the links except for the mailto link, there is absolutely no effect. Nothing happens. I try opening one of those links in a new window; new window doesn't even pop up. Tried it in a few different browsers to be sure.
The same thing happened with the older versions I had today when I changed that register_globals thing (it was set to Off). I apparently changed it in the wrong file tho (php.ini-dist instead of pho.ini), which i think would have no effect, so it was probably something else I dunno (also since the problem was still there when I changed it back). In either case, at least we know the linking problem isn't related to the newer versions; I installed them after that problem occured in hopes of just starting everything fresh.
My detailed php configuration can be seen here:
http://www.aethiamud.org/php_config.php
As you can see, I went ahead and enabled the register_globals thing in this new configuration as well.
Perhaps you could look this over, and compare it with your own php configuration? If there's anything I should change, or just something you'd like me to try with the config, please lemme know. I'm sure that something in there could be changed to get this to work.... :)
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #26 on Thu 16 Jan 2003 12:34 AM (UTC) |
| Message
| All these things are related to the same thing, PHP moved its "variable import" from HTTP_POST_VARS to _REQUEST recently, to fix various security issues. They hadn't done that when I wrote the code. For example, the error at line 145 is the line in bold below. I basically need to change references to HTTP_POST_VARS to _REQUEST throughout the code, and also *implied* references which will be harder than doing a "change all". Implied references are what the 'import_request_variables ("GPC");' is trying to do.
In other words, PHP used to take (say) $HTTP_POST_VARS ("id") and make it into a variable $id. Now it doesn't do that, and in addition you have to use $_REQUEST ("id") to get the same data.
I was hoping you could get the old behaviour by setting that option, but it seems not.
The 'fix' will be for me to go through each PHP file and change them to the new recommended behaviour. This will probably take a while to do and get rid of all the bugs (eg. missing one of the implied references).
As for the "extra" errors, you are now getting "notice" messages as well as errors and warnings. This accounts for the higher number. See this post:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=938
That describes the problem and solution.
Your web server seemed to stop while I was getting the config so I couldn't see the configuration. Can you fix that?
global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS;
global $userinfo;
$adminsession = $HTTP_POST_VARS ['session'];
if (empty ($adminsession))
$adminsession = $HTTP_GET_VARS ['session'];
if (empty ($adminsession))
$adminsession = $HTTP_COOKIE_VARS ['session'];
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #27 on Thu 16 Jan 2003 12:44 AM (UTC) |
| Message
| | It seemed to work that time. Your options look similar to mine, bearing in mind I have a different version. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Kris
USA (198 posts) Bio
|
| Date
| Reply #28 on Sat 18 Jan 2003 12:04 AM (UTC) |
| Message
| Ok I fixed the problem with the 'notice' errors, tho the sudden, mysterious problem with the php links is still there. I think I know -why- it's not doing anything now when I click on one of the forum links; cuz for whatever reason, the php is generating an a href to the file's location on my hard drive rather than on my webserver (i.e. "a href=c:/blahblahblah.php"). In my config files I had no choice but to put the direct (i.e. not relative) file locations on my hdd; everything else, from variations on relative locations to direct urls to the files on my webserver, generated errors about the files not being found.
Dunno what the fix is there, but obviously it would have something to do with having the links point to the files on my webserver and not on my hard drive itself.
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #29 on Sat 18 Jan 2003 09:53 AM (UTC) |
| Message
| The forum URL is one of the control records, ie.
$FORUM_URL = $control ['forum_url'] . '/';
In other words, the item "forum_url" in the control table. In my case (this forum) it is:
http://www.gammon.com.au/forum
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
174,004 views.
This is page 2, subject is 4 pages long:
1
2 3
4
It is now over 60 days since the last post. This thread is closed.
Refresh page
top