FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » FATAL ERROR: inconsistent number of values inside a select
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
FATAL ERROR: inconsistent number of values inside a select [message #8312] Tue, 21 January 2003 17:53 Go to next message
edav91 is currently offline  edav91   France
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 #8314 is a reply to message #8312] Tue, 21 January 2003 18:00 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Looks like you may have messed up some .php file inside theme directory.

FUDforum Core Developer
Re: FATAL ERROR: inconsistent number of values inside a select [message #8318 is a reply to message #8314] Tue, 21 January 2003 19:15 Go to previous messageGo to next message
edav91 is currently offline  edav91   France
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 #8320 is a reply to message #8318] Tue, 21 January 2003 20:02 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It means that the select has more labels then values. You probably modified one of the select templates, which caused it to break.

FUDforum Core Developer
Re: FATAL ERROR: inconsistent number of values inside a select [message #8435 is a reply to message #8320] Tue, 28 January 2003 15:12 Go to previous message
edav91 is currently offline  edav91   France
Messages: 8
Registered: January 2003
Karma: 0
Junior Member
OK. I rebuild the whole stuff roughly from scratch... and still had the same problem Twisted Evil

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 Very Happy

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

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Step 2 of install: Call to undefined function pg_query()
Next Topic: Memory issue installing
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 27 22:14:34 GMT 2024

Total time taken to generate the page: 0.02325 seconds