vmichnowicz / vwm_polls

Free ExpressionEngine Poll Module and Fieldtype
Apache License 2.0
16 stars 8 forks source link

Can not vote if has index.php #23

Closed michalcik closed 10 years ago

michalcik commented 10 years ago

Hi, I really like your add.

And I observe one problem.

EE: 2.7.3 Problem is. When I am using index.php vote button does not work. If I use .htaccess and remove index.php, then vote button works fine and I can vote.

Pleas help.

vmichnowicz commented 10 years ago

I am unable to reproduce this issue with EE 2.7.3 and the latest version of VWM Polls. Are you seeing any JavaScript errors? What URL is the form trying to post to? Is your website in a subdirectory?

michalcik commented 10 years ago

Hi.

I installed brand new installation of EE 2.7.3 to my _sub folder and VWM Poll works fine. So I can confirm it, that on 2.7.3 it is working. Also it is working on that brand new installation with index.php or it it is removed by using .htaccess.

BUT

on our developed site it is like it is. If index.php is removed it works fine, if index.php is used, it does not work. But it does not work only VOTE button. If I an going to result page all is ok. But for sure no votes added.

So my conditions:

EE: 2.7.3 System foldred: is RENAMED and REMOVED above the public_html directory to not be accessible from internet. Only on system level. Can be that a problem? All other 3rd part add-on works fine.

Also one more question: But I will put it other ticket.

Thanks for help.

Our site:

SLovak: http://www.tckompas.sk/index.php/sk/domov

English: http://www.tckompas.sk/index.php/en/home

vmichnowicz commented 10 years ago

I would try playing with the action template parameter and see if that does the trick for you.

{exp:vwm_polls:poll entry_id="{entry_id}" field_id="{poll:field_id}" redirect="index" action="index.php/en/home"}

I would also try just /index.php.

michalcik commented 10 years ago

Victor, that trick works :) I used index.php only. Thanks very much