Joomla · Joomla Components · Joomla Errors

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha Captcha Reload