New install failed: "Error: Invalid server type."

Please report bugs here!

Moderator: Thorsten

Post Reply
ddaemen
Posts: 9
Joined: Wed Jun 02, 2010 3:37 pm

New install failed: "Error: Invalid server type."

Post by ddaemen »

Hi all,

when i do a new install PHPMyFAQ i get an error "Error: Invalid server type." added screenshots should explain more.

I'm using the Microsofts SQL driver for PHP and only using that, my whole website runs on it and works fine, only phpmyfaq does not work. i'm 100% sure that the given settings work.
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: New install failed: "Error: Invalid server type."

Post by Thorsten »

Hi,

could you please post a picture of the ext/sqlsrv information of phpinfo()?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ddaemen
Posts: 9
Joined: Wed Jun 02, 2010 3:37 pm

Re: New install failed: "Error: Invalid server type."

Post by ddaemen »

Hi, sorry for my late reply, but i did not see your reply :)

here is the image:
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: New install failed: "Error: Invalid server type."

Post by Thorsten »

Hi,

do you see this file: inc/PMF_DB/Sqlsrv.php?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ddaemen
Posts: 9
Joined: Wed Jun 02, 2010 3:37 pm

Re: New install failed: "Error: Invalid server type."

Post by ddaemen »

Yes, i see the file:
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: New install failed: "Error: Invalid server type."

Post by Thorsten »

Hi,

one file is missing in the 2.6.6 package. Please copy the attached file to the folder install/
sqlsrv.sql.php.zip
Then re-run the setup.

bye
Thorsten
You do not have the required permissions to view the files attached to this post.
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ddaemen
Posts: 9
Joined: Wed Jun 02, 2010 3:37 pm

Re: New install failed: "Error: Invalid server type."

Post by ddaemen »

Ok, then i come a step further:

i see now a bunch of errors wich i added below:
You do not have the required permissions to view the files attached to this post.
Last edited by ddaemen on Wed Jul 21, 2010 10:06 am, edited 1 time in total.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: New install failed: "Error: Invalid server type."

Post by Thorsten »

Hi,

I don't see a your attachment...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ddaemen
Posts: 9
Joined: Wed Jun 02, 2010 3:37 pm

Re: New install failed: "Error: Invalid server type."

Post by ddaemen »

Now you see :)
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: New install failed: "Error: Invalid server type."

Post by Thorsten »

Hi,

which version of the SQL Server driver do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ddaemen
Posts: 9
Joined: Wed Jun 02, 2010 3:37 pm

Re: New install failed: "Error: Invalid server type."

Post by ddaemen »

I use the SQL Driver for PHP 2.0 vc9 nts
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: New install failed: "Error: Invalid server type."

Post by Thorsten »

Hi,

I found the issue, here's the patch: http://github.com/thorsten/phpMyFAQ/com ... ac046200ec

Could you please drop all created tables and re-run the setup?

Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ddaemen
Posts: 9
Joined: Wed Jun 02, 2010 3:37 pm

Re: New install failed: "Error: Invalid server type."

Post by ddaemen »

Hi Thorsten,

thanks, but still have some errors (like attatchement)

i looked through the sqlsrv.php file and changed 2 lines of code on line number 331:

Old:
$stmt = sqlsrv_fetch($result);
return (sqlsrv_get_field($stmt, 0) + 1);

New:
sqlsrv_fetch($result);
return (sqlsrv_get_field($result, 0) + 1);

Then i dropped the tables again, reinstalled all files and runned setup again.

This removes the errors and the main page looks normal now, but i cannot login into the admin panel. i enabled debug mode but the only thing i can see is "DEBUG INFORMATION:" but nothing more.

What can i do?
You do not have the required permissions to view the files attached to this post.
Post Reply