Firefox PHP

Poll Module

Posted by arlo 
Re: Poll Module
March 05, 2006 10:33AM
Thx a lot amilcarpt :-)
But it dont fix my Problem :-(. I after i vote and try to view the result or vote a second time i get the errors already.
Re: Poll Module
March 05, 2006 10:36AM
What kind of errors and what kind of version yuo run>?

Sergej

------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: Poll Module
March 05, 2006 11:19AM
I run
Phorum 5.1.8RC2 -> PHP 5.0.0 -> poll version: 0.2 at my localserver
and
Phorum 5.1.8RC2 -> PHP 5.1.2 -> poll version: 0.2 at our webserver

Custom Profiles field mod_poll exist.

on both configs i get followed errors:

If a user votes a second time:

Fatal error: Cannot use string offset as an array in C:\www\phorum5\mods\poll\poll.php on line 252
( 252: $userdata["mod_poll"]["voted"][$message_id]=$vote; )

If a user votes and try to open the results:

Fatal error: Cannot use string offset as an array in C:\www\phorum5\mods\poll\poll.php on line 180
( 180: if ($PHORUM["user"]["mod_poll"]["voted"][$key] == $anskey) { )

In seems the Problem is that $PHORUM["user"]["mod_poll"]["voted"] includes an array.

I testet Phorum 5.1.8RC2 -> PHP 4.4.2 -> poll version: 0.2 at our webserverver and mod_poll ist working perfekt.
Re: Poll Module
March 05, 2006 11:22AM
Hmm could be PHP5 does something with the mod code, presuming I understand you correctly that it works on 4.4.2. It works on my server without problems but I dont run PHP5.x

Sergej

------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: Poll Module
March 05, 2006 11:23AM
Seams to be windows specific.
But try to at least update to PHP 5.0.5 because 5.0.0 has too many security issues.

--
Amilcar Lucas
www.kdevelop.org webmaster
Re: Poll Module
March 05, 2006 11:36AM
yes ist works with PHP 4.4.2

Stefan
Re: Poll Module
March 05, 2006 11:45AM
Quote
amilcarpt
Seams to be windows specific.
But try to at least update to PHP 5.0.5 because 5.0.0 has too many security issues.

I get the same errors with PHP PHP 5.1.2

Thx for your help

Stefan
Re: Poll Module
March 05, 2006 11:50AM
What with the same PHP version and Linux?

Sergej

------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: Poll Module
March 05, 2006 11:58AM
PHP 5.1.2 works on a linux server

System Linux infong 2.4 #3 SMP Mon Feb 6 14:37:49 CET 2006 i686 unknown
Build Date Feb 7 2006 15:02:52

regards

Stefan
Re: Poll Module
March 05, 2006 12:08PM
I meant do you get the errors on a Linux install like Amilcar asked?

Sergej

------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Sorry, only registered users may post in this forum.

Click here to login