We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Polls: Ready for purchase

Development and Programming

Luke Stevens's avatar
Luke Stevens
80 posts
17 years ago
Luke Stevens's avatar Luke Stevens

Sounds great Leevi! Very powerful given the polls are essentially weblog entries.

I got my client to grab a license 😉

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
Sounds great Leevi! Very powerful given the polls are essentially weblog entries. I got my client to grab a license 😉

Thanks Luke… If you have any issues installing send me a PM.

       
cdm's avatar
cdm
2 posts
17 years ago
cdm's avatar cdm

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! 😊

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

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

       
cdm's avatar
cdm
2 posts
17 years ago
cdm's avatar cdm
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…

       
Dan Lovejoy's avatar
Dan Lovejoy
115 posts
17 years ago
Dan Lovejoy's avatar Dan Lovejoy

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.

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

Usually those undefined index notices happen when you’re doing something like running a for/each loop on something when it doesn’t exist (your POST or GET data usually).

Surrounding the offending variable logic with an if statement will get rid of the errors.

       
Dan Lovejoy's avatar
Dan Lovejoy
115 posts
17 years ago
Dan Lovejoy's avatar Dan Lovejoy

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?)

       
Brian M.'s avatar
Brian M.
529 posts
17 years ago
Brian M.'s avatar Brian M.

2) shouldn’t be possible (unless 1 is true) and you’re right that 3 shouldn’t be possible either. It sure sounds like it’s in the extension itself - at least that’s something I’ve seen myself more than once when making extensions. I imagine Leevi will help you out 😊

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
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.

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

       
Wired's avatar
Wired
181 posts
17 years ago
Wired's avatar Wired

I cant seem to download the LG Polls module from your site. I was also wondering where would I find EEpoll for EE? I cant find that either.

       
Dan Lovejoy's avatar
Dan Lovejoy
115 posts
17 years ago
Dan Lovejoy's avatar Dan Lovejoy

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

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Hey Dan,

Thanks for finding this… here’s the quick fix…

Around line 300 of mod.lg_polls.php look for:



and change it to:



Or you can just remove the periods near the = in the elseif and else

I’ll add this to the next version which is currently being tested.

Cheers

       
Dan Lovejoy's avatar
Dan Lovejoy
115 posts
17 years ago
Dan Lovejoy's avatar Dan Lovejoy

Yep, that got it. But for the record, it’s mcp.lg_polls.php, not mod.lg_polls.php

Thanks! dhl

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

My bad 😊 Guess I should wait for my morning coffee before visiting the forums

       
First 4 5 6 7 8 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.