As of today, using most current versions of everything, fivestar 1.13, views 6.x-2.3, voting api 6.x-2.0-rc2 . I've seen posts that this was an issue in the past, not sure if it's because of the newer views version.

I also tried switching to the lastest dev versions and did not work.

This error occurs after I've set the Node -> Voting Results relationship and I'm trying to add the Field for Voting API Results -> Value. When I add the field or try to edit it I get this message as a pop up alert. "An error occurred at /admin/build/views/ajax/config-item/view_name/default/field/value"

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gunzip’s picture

same here it happens when i try to add a field "Voting API results: Value".

the error follows:

Fatal error:  Call to a member function get_handlers() on a non-object in <b>/.../sites/all/modules/views/handlers/views_handler_field.inc on line 252
markdorison’s picture

I am encountering the same issue.

dids’s picture

I also got the same problem, everything updated to latest dev.

kappaluppa’s picture

Same here. Just upgraded to 6.x-2.5
Actually, I'm not using the Voting API. This just happens with views when I try to update default configurations on anything that requires "Update" to be clicked.

ogrady’s picture

I get the same error trying to make edits to or add any view (Drupal 6.10, Views 2.5). Any request requiring ajax throws the following error:

"An error occurred at /admin/build/views/ajax/config-type/frontpage/default/argument."

seth.vincent’s picture

I'm getting this error as well.

eaton’s picture

This is a generic Views related message that is displayed whenever a handler (a field, a sort, a filter, a relationship, etc).

Please ensure that you've upgraded to the full release version of VotingAPI 2.0, as well.

eaton’s picture

Status: Active » Closed (fixed)

It appears this was an issue with a previous version of VotingAPI, not the current release, and a number of the posts are unrelated to VotingAPI. Closing the issue -- if it recurs using the latest official release of VotingAPI, please open another issue and provide more information. Thanks!

prasannah.ganeshan’s picture

Issue tags: +views 2.3
FileSize
141.47 KB

I'm getting the same error. I get a JavaScript alert when I try to do some change.

"As error occured at /admin/build/views/ajax/display/.."

Someone please advice

jwjoshuawalker’s picture

I don't think that's a VotingAPI Issue. The issue here was fixed. Yours looks like a views problem.

Try upgrading to views 2.6 first. http://drupal.org/project/views

prasannah.ganeshan’s picture

I am using the latest version of the view module.

clintcar’s picture

I was having the same error. Not sure if it will help in every case, but my solution was deactivating Devel Themer.

prasannah.ganeshan’s picture

Issue tags: +devel themer

I gave that a try. I'm still getting the same problem. Isn't there any fix for this guys.

prasannah.ganeshan’s picture

FileSize
268.56 KB

I'm having the same issue. can someone tell me what could be wrong here. I'm running Drupal 6, Views 2 on Xampp.

I can give further information if needed. Please help crack this issue.

mauro_ptt’s picture

Project: Voting API » Views (for Drupal 7)
Version: 6.x-2.0-rc2 » 6.x-2.6
Priority: Normal » Critical
Status: Closed (fixed) » Active

Guys! I'm having the same problem everytime I need to change any of the settings in the view setup. Is there any patch or something? Thanks!

mauro_ptt’s picture

Version: 6.x-2.6 » 6.x-2.x-dev

Hey I think I solved it... I don't know how do you place the codes, but try modifying the admin.inc file, placed in

.../views/includes/admin.inc

Line 1559 or:

- function views_ui_ajax_form($js, $key, &$view, $display_id) {
+ function views_ui_ajax_form($js, $key, $view, $display_id) {

just remove the ampersand (&) from view parameter, seems to work for me.

Thanks for being there, and let me know if it works for you all.

regards!

Mauro

merlinofchaos’s picture

Project: Views (for Drupal 7) » Voting API
Version: 6.x-2.x-dev » 6.x-2.0-rc2
Priority: Critical » Normal
Status: Active » Closed (fixed)

Please do not take over old issues. It is rude.

mauro_ptt’s picture

Didn't mean to change that, I'm new with these stuff :)

viralagrawal’s picture

@mauro_ptt

thanks so much..
your solution helped me as well!!
cheers

Shorin’s picture

maruo_ptt:

Your solution worked great! No issues for me either
(XAMPP & drupal 6.14)

prasannah.ganeshan’s picture

Project: Views (for Drupal 7) » Voting API
Version: 6.x-2.7 » 6.x-2.0-rc2
Status: Closed (duplicate) » Closed (fixed)

@mauro_ptt :). Thanks lots you saved my day. I was struggling with this for some days.

zuessh’s picture

Status: Closed (fixed) » Active

I am also having this issue - i tried the fix in post 16 however i am still having the same issue. are there any other fixes for this issue?

cbrody’s picture

Subscribing -- also having the same issue.

Anonymous’s picture

@mauro_ptt: Thanks, that worked perfectly.

zuessh’s picture

If post 16 is the answer, could there be something i am missing as to why it is not working in my setup? I have drupal 6.14 and the most recent version of views/votingapi/fivestar. I am on fedora linux, with apache 2.2.13, php 5.2.9 and only have the default modules enabled. Any help or support would be greatly appreciated.

drvdt’s picture

Wonderfull!
I get same error and fix as mauro_ptt. That's OK.
I also replace all &$view by $view in .../views/includes/admin.inc. And it work!!!
If replace only Line 1559 or function views_ui_ajax_form($js, $key, &$view, $display_id) {. It works too.
:-)
Many thanks to mauro_ptt.
I love Drupal.

zuessh’s picture

wow, just wow... i'm starting to feel really special because i have the only setup that the fix doesn't work on, or really stupid because i can't figure out why the fix doesn't work for me. I replaced &$view everywhere and also disabled/reenabled the modules - are there any other suggestions or ideas that anyone can think of?

joelbox-Mondial-IT’s picture

Project: Voting API » Views (for Drupal 7)

Sorry guys, i am having the same issue with a clients installation and removing the & did not help.

What did help was disabling java in the views tools menu. The interface is a lot less userfriendly, but it does solve the issue.

I hope this helps,

merlinofchaos’s picture

mod_security is another known killer of ajax in views.

If all else fails you can go into admin > build > views > tools and disable the ajax.

joshk’s picture

Version: 6.x-2.0-rc2 » 6.x-2.7

I can confirm the same issue in 2.7, and the fix from comment #15 works. This looks like a php 5.3 strictness issue to me.

joshk’s picture

Status: Active » Closed (duplicate)

So, that make sthis a duplicate of:

http://drupal.org/node/452384

prasannah.ganeshan’s picture

@zuessh I could understand your frustration. Why not try to do it on a new drupal setup. I got it working as well but I run it on a windows setup. I suggest you try the entire thing all over again.

bysv’s picture

Project: Voting API » Views (for Drupal 7)
Version: 6.x-2.0-rc2 » 6.x-2.7
Status: Closed (fixed) » Closed (duplicate)

My solution:
if you activate the module (devel) in "Development->Theme Developer" make sure it is unchecked the option "Display log theme' in Theme Developer settings

alexahumada’s picture

I encountered the same problem, and solved it without any php editing.

In my case the problem seems to be caused by replacing the core jquery 1.2.6 for a newer update (1.4), so I just put back the 1.2.6 core version and cleared all caches, all went back to normallity. If you've changed the core jquery file and none of the other solutions work, give it a try!

allisonk’s picture

Version: 6.x-2.7 » 6.x-2.8

Hi - I was having the same issue - except when I turned off Javascript, it allowed me to update the views, but the updates would not take effect. Then I discovered that when I turned off
# RewriteCond %{HTTP_HOST} ^mywebsite\.com$ [NC]
# RewriteRule ^(.*)$ http://www.mywebsite.com/beta/$1 [L,R=301]

it fixed the problem because it turns out the site wasn't able to redirect to the right page. But I'm not sure how to get it to work with the www - I need it for SEO.

justclint’s picture

Hey Guys, I've been looking for solutions on this for a while and just tried #34 of this post per projectsperminute and it worked. I started noticing that all my sites were having this problem. And I know as a fact when I set the sites up they worked fine.

All my sites get updated to the latest jquery and it seems the jquery 1.4.2 is causing some issues with views in all of my sites.

Also, in addition to views Ive noticed that all drag n drop menu bars and such have lost their ajax functionality as well. For example if I go to admin -> blocks or admin -> content type -> manage fields I can not move/sort the items with drag n drop.

From what I can tell it seems the latest version of jquery (v1.4.2) is causing site wide ajax functionality loss.

Has anyone else tested this to verify?

marcy_sss’s picture

Downgrading my jQuery version from 1.4 to 1.3 eliminated the Views & sitewide AJAX errors. YESSS!!!

-- Note: I actually had to go all the way back to 1.2.6, as 1.3 caused errors as well.

Alan.Guggenheim’s picture

Same problem here

wheelercreek’s picture

I had to drop down to jquery 1.2.6 - the version that ships with Drupal 6.16, and then still had to clear my browser cache and drupal cache... that fixed the problem. Make sure you clear the caches!

VladimirAus’s picture

Looks like www. prefix has something to do with it as well. Maybe SSL too.
I'm running latest versions of Drupal and Views and tried all of the above and it is still doesn't work.

Edit: I fixed that by removing SSL (https) from admin/* (Secure Pages module).

gscerb’s picture

I solved the problem by installing jquery_plugins: http://drupal.org/project/jquery_plugin

Aracon’s picture

Try this patch: http://drupal.org/node/618734#comment-2527326
It worked for me.

anonymous07’s picture

This is one of the strangest issues ever.

I just noticed this behavior after following Update Status module's advice and updating everything to the latest (recommended versions).

1) I installed jquery_update-6.x-2.0-alpha1
2) Same resulting behavior as stated above in Views; just could not get past the pop up error when trying to make any changes

Solution: As a previous poster noted, remove the "www" from the url and it worked fine!
(For good measure I also uninstalled jquery_update module leaving only jquery_plugin)

Thanks

Frederickweiss’s picture

the Jquery_update was the killer, damn. Thank you!!!!!!!!!!!

miss-susan’s picture

I also had the same issue with the Secure Pages module. Turning off the module while I made the Views update fixed it.

premshankar’s picture

Issue summary: View changes
Status: Closed (duplicate) » Needs review

Dear folks,

The issue was because of .htaccess file. Check your file if it is correct. Or create a new one and give 644 permissions

MustangGB’s picture

Status: Needs review » Closed (duplicate)

Restoring status.