FATAL ERROR: inconsistent number of values inside a select [message #8312] |
Tue, 21 January 2003 17:53 |
edav91
Messages: 8 Registered: January 2003
Karma: 0
|
Junior Member |
|
|
Hi all,
I've got this error message each time I want to post a new topic or access to the profile form but... not for all users : members can post but not access to profile, Admin cannot post neither access to profile.
A clue where I could have put the mess inside '/theme/../*.*' or in the user administration ?
Thx,
Eric.
|
|
|
|
Re: FATAL ERROR: inconsistent number of values inside a select [message #8318 is a reply to message #8314] |
Tue, 21 January 2003 19:15 |
edav91
Messages: 8 Registered: January 2003
Karma: 0
|
Junior Member |
|
|
OK. I can't find where is the mess.
In the files /theme/../groupmgr.php, mklist.php, pmsg.php, poll.php, post.php, register.php, search.php, split_th.php
what is this code for :
$vls = explode("\n", $values);
$nms = explode("\n", $names);
$a = count($vls);
if( $a != count($nms) ) exit("FATAL ERROR: inconsistent number of values inside a select<br>\n");
?
Thx,
Eric.
|
|
|
|
Re: FATAL ERROR: inconsistent number of values inside a select [message #8435 is a reply to message #8320] |
Tue, 28 January 2003 15:12 |
edav91
Messages: 8 Registered: January 2003
Karma: 0
|
Junior Member |
|
|
OK. I rebuild the whole stuff roughly from scratch... and still had the same problem
FYI, here is how I found a turnaround :
I removed the if statement 'if( $a != count($nms) ) ' in all concerned PHP files but got all dropdown lists messed up. I search in the code where was defined the content of these select lists and found carriage return between all values of the select. I removed all to get the values on the same line of code... and it corrects the problem
As I kept carriage returns on my 'localhost' FUDForum and it works fine, I presume the problem is coming from PHP/MySQL/OS differences between my PC and my ISP server. Here are the differences I found :
my PC :
PHP built On: Windows NT 5.0 build 2195
MySQL Version: 3.23.49-max-nt
PHP Version: 4.2.0
Web Server: Apache/1.3.24 (Win32) PHP/4.2.0
WebServer to PHP interface: apache
Forum Version: 2.3.5
my ISP server :
PHP built On: Linux 2.4.3-SGI_XFS_1.0.1smp #1 SMP Mon Jul 9 14:03:40 CDT 2001 i686
MySQL Version: 3.23.36
PHP Version: 4.3.0
Web Server: Apache/1.3.26 (Unix) PHP/4.3.0
WebServer to PHP interface: apache
Forum Version: 2.3.5
Both have safe mode to OFF.
My opinion is that PHP 4.3.0 is the cause as my ISP recently upgrade its server to this release (I downloaded FUDForum for the first time before the upgrade and didn't noticed anything wrong at that time : problems came later).
Hope this will help somebody in any way...
6U,
Eric.
[Updated on: Tue, 28 January 2003 15:14] Report message to a moderator
|
|
|