Hello Leevi,
I sent you a PM about this as well, but I’d thought I would post about it too just in case. I’ve had similar errors to others in this thread and elsewhere. I’m not sure what is the problem, but the main error(s) I see is when I try to preview/publish the poll entry….I see this across the top of my CP:
Notice: Undefined index: 1 in /home/virtual/site131/fst/var/www/html/eebetatest7/************/cp/cp.publish.php on line 1183
Notice: Undefined index: 1 in /home/virtual/site131/fst/var/www/html/eebetatest7/************/cp/cp.publish.php on line 1188
Notice: Undefined index: 1 in /home/virtual/site131/fst/var/www/html/eebetatest7/************/cp/cp.publish.php on line 1201
Notice: Undefined index: 1 in /home/virtual/site131/fst/var/www/html/eebetatest7/************/cp/cp.publish.php on line 1201
Notice: Undefined index: 1 in /home/virtual/site131/fst/var/www/html/eebetatest7/************/cp/cp.publish.php on line 1202
Notice: Undefined index: 1 in /home/virtual/site131/fst/var/www/html/eebetatest7/************/cp/cp.publish.php on line 1202
The EE install is one folder deep in a sub folder called “eebetatest7”. There are a few other minor things I noticed, but the LG Polls install seems perfect (I checked everything). I wanted to test out the latest LG Polls on a fresh new install of EE (latest version) before continuing with development of the site. I think part of my problem might be the way I have the templates set up are keeping the polls from showing up. I followed your documentation closely, but I’m not certain I have it set correctly. Mind you, I am just altering the default pages that came with the install…so nothing fancy going on there yet. I wish I could see a working example of a series of basic templates that has this working together properly.
In any case, thanks for any help you (or anyone else) can provide in setting this up. Cheers! 😊
Hey CDM,
I’ll try and answer your queries here:
I try to preview/publish the poll entry….I see this across the top of my CP: Notice: Undefined index: 1 in /home/virtual/site131/fst/var/www/html/eebetatest7/************/cp/cp.publish.php on line 1183
This is a known issue with LG Polls and version 1.0.7 addresses this by removing the quick save and preview buttons.
The EE install is one folder deep in a sub folder called “eebetatest7”.
This should be ok… just make sure your javascript is working in the publish form.
I wanted to test out the latest LG Polls on a fresh new install of EE (latest version) before continuing with development of the site. I think part of my problem might be the way I have the templates set up are keeping the polls from showing up. I followed your documentation closely, but I’m not certain I have it set correctly. Mind you, I am just altering the default pages that came with the install…so nothing fancy going on there yet. I wish I could see a working example of a series of basic templates that has this working together properly.
The best thing to do is create a new blank template and loop through the polls weblog. Inside the weblog entries tag try and output your {title} first and then start adding the LG Poll tags… {poll_question} is the next tag I would add.
I’ll try and upload my templates today.
Cheers
Hey CDM, This is a known issue with LG Polls and version 1.0.7 addresses this by removing the quick save and preview buttons. This should be ok… just make sure your javascript is working in the publish form. The best thing to do is create a new blank template and loop through the polls weblog. Inside the weblog entries tag try and output your {title} first and then start adding the LG Poll tags… {poll_question} is the next tag I would add. I’ll try and upload my templates today. Cheers
Thanks for the reply and advice Leevi. 😊
I’ve recently purchased LG Polls (past few days) and the version I was able to install was 1.0.6. Is the 1.0.7 version available? Interim, I wouldn’t be against doing some surgery to remove the quick save and preview buttons…if need be.
I have everything set now JS-wise. Everything loads nicely in the CP. The only thing left is getting my templates in order to test out the polls properly. Thanks for the offer of posting some example templates. I look forward to those. I will continue forward and post my results here.
BTW…I liked your website very much. Nice work on everything…including this module.
Thanks again…
Weird - all of a sudden, I’m getting an undefined variable error in the CP on the LG Polls - Index page.
Notice: Undefined variable: status in Z:\something\something\something\ee\modules\lg_polls\mcp.lg_polls.php on line 306
And the error is not fatal - the page appears to work fine with some wonky styling. Now, this code controls styling of statuses in the control panel, and I have been fiddling with statuses and dates. But we don’t have any custom statuses, or anything unusual going on with the LG Poll Module, as far as I can tell. It’s a pretty vanilla setup.
Thanks, Brian.
This error is in the CP only, so there’s not really any code that’s accessible to me in any meaningful way. (Not a PHP guru, by any means) Since I haven’t changed anything in the code, I’m assuming: 1.) There’s a bug in the code -or- 2.) There’s some setting I changed or combination of changes I’ve made that have broken something. 3.) An error in my template is triggering a CP bug (seems impossible to me?)
Weird - all of a sudden, I’m getting an undefined variable error in the CP on the LG Polls - Index page.And the error is not fatal - the page appears to work fine with some wonky styling. Now, this code controls styling of statuses in the control panel, and I have been fiddling with statuses and dates. But we don’t have any custom statuses, or anything unusual going on with the LG Poll Module, as far as I can tell. It’s a pretty vanilla setup.Notice: Undefined variable: status in Z:\something\something\something\ee\modules\lg_polls\mcp.lg_polls.php on line 306
Hey Dan,
Which version of LG Polls are you using?
You are right that the code deals with the status of a poll which is really the status of the entry. All entries should have a status as that is core EE code.
Did you create the poll manually using the publish form or automate the process?
Cheer
Hi Leevi, Sorry to take so long to respond. No, I created the entries manually. The error is being triggered, I think by the fact that some of the polls have multiple statuses. Poll 292, for example, Shows both “Review” and closed.
Poll 343 shows Review Closed Closed Closed Closed Closed in the status area.
And yes, I have created this with just the EE front end - not programatically.
Neither of the “Open” polls has a problem.
Now, when I went to change them ALL to “Open” I didn’t have a problem - the error disappeared. Then I went back in and changed the ones I didn’t want open to “Closed” and Now I’ve got “Closed” x 6 for Poll 343. (See attachment)
Still getting the same error, by the way:
Notice: Undefined variable: status in E:\something\modules\lg_polls\mcp.lg_polls.php on line 306 -dhl
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.