Joomla 1.6 – AcePolls Component Error – Warning: Invalid argument supplied

by Elaine on February 10, 2011

My client wanted a voting section on his Joomla 1.6 website and I was playing around with the different voting Components compatible with Joomla 1.6.    I found a component called AcePolls which I installed successfully.  I’m not too sure if I’ll keep it because it’s a little buggy.  I just wanted to share with you some of the error messages I got when I was trying to get it working on his website.  I got 3 different error messages:

Acepoll error message #1:

Warning: Invalid argument supplied for foreach() in Components/com_acepolls/views/poll/view.html.php on line 90

Warning: array_unshift() [function.array-unshift]: The first argument should be an array in /Components/com_acepolls/views/poll/view.html.php on line 94

Warning: Invalid argument supplied for foreach() in libraries/Joomla/html/html/select.php on line 509

Warning: implode() [function.implode]: Invalid arguments passed in /components/com_acepolls/views/poll/view.html.php on line 171

Warning: implode() [function.implode]: Invalid arguments passed in /components/com_acepolls/views/poll/view.html.php on line 172

How did I get this error message:  I created a menu item for the component first and put the link on the site.   I realized afterwards what the cause was.  I didn’t create polls in the Acepoll component.

Resolution:  I went into the Component-AcePolls.  After I saved and published a new poll I was able to see it on my site without any error messages.

Acepoll error message #2:

An error has occurred.
The requested page cannot be found.
Search 

You may wish to search the site or visit the home page.
Search…

Home Page

403Access Forbidden
If difficulties persist, please contact the System Administrator of this site and report the error below..
com_acepolls/views/poll/view.html.php on line 172

How did I get this error message:  I unpublished the poll.
Resolution:   I published the poll again.
AcePoll error message #3:
Warning: implode() [function.implode]: Invalid arguments passed in /components/com_acepolls/views/poll/view.html.php on line 171 

Warning: implode() [function.implode]: Invalid arguments passed in /components/

How did I get this error message: I got this error message because I created a menu item and the poll id didn’t match the id in the component.
Resolution:  I used single poll item in my menu item.  So my poll id had to match the poll saved in the component, but it wasn’t.  Go to your AcePoll component and every poll you create has an ID # associated with it.  You can see it in the far right column under “ID”.  Copy this number and paste it in your Acepoll menu item under “Poll ID”.
Elaine@cmsmind.com
 Joomla 1.6   AcePolls Component Error   Warning: Invalid argument supplied

Elaine

Elaine is the founder of CmsMind, an online blog providing Joomla and Wordpress tutorials. Elaine lives in Toronto and when she is not online, she is either Marathon and Triathlon training or travelling and racing somewhere in the world. Find her also at: Save Money, Premium Themes and Templates, and at Webhosting Tips.

More Posts - Website

Leave a Comment

Captcha Captcha Reload

Older Post:

Newer Post: