Poll Module
Posted by arlo
Re: Poll Module March 05, 2006 10:33AM |
Registered: 18 years ago Posts: 8 |
Re: Poll Module March 05, 2006 10:36AM |
Registered: 21 years ago Posts: 868 |
What kind of errors and what kind of version yuo run>?
Sergej
------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Sergej
------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: Poll Module March 05, 2006 11:19AM |
Registered: 18 years ago Posts: 8 |
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.
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 |
Registered: 21 years ago Posts: 868 |
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]
------------------------------------------
Sergej
------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: Poll Module March 05, 2006 11:23AM |
Registered: 20 years ago Posts: 126 |
Re: Poll Module March 05, 2006 11:36AM |
Registered: 18 years ago Posts: 8 |
Re: Poll Module March 05, 2006 11:45AM |
Registered: 18 years ago Posts: 8 |
Re: Poll Module March 05, 2006 11:50AM |
Registered: 21 years ago Posts: 868 |
What with the same PHP version and Linux?
Sergej
------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Sergej
------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: Poll Module March 05, 2006 11:58AM |
Registered: 18 years ago Posts: 8 |
Re: Poll Module March 05, 2006 12:08PM |
Registered: 21 years ago Posts: 868 |
I meant do you get the errors on a Linux install like Amilcar asked?
Sergej
------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Sergej
------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Sorry, only registered users may post in this forum.