An error occurred at /admin/build/views/ajax/config-item/view_name/default/field/value

blindside - March 29, 2009 - 19:20
Project:Views
Version:6.x-2.7
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Issue tags:devel themer, Fivestar, views, views 2.3
Description

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"

#1

gunzip - April 1, 2009 - 23:47

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

#2

mdorison - April 2, 2009 - 14:10

I am encountering the same issue.

#3

dids - April 7, 2009 - 17:11

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

#4

kappaluppa - April 27, 2009 - 21:37

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.

#5

ogrady - April 29, 2009 - 14:15

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."

#6

seth.vincent - June 25, 2009 - 17:20

I'm getting this error as well.

#7

eaton - June 25, 2009 - 17:24

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.

#8

eaton - July 8, 2009 - 16:04
Status:active» closed

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!

#9

prasannah.ganeshan - September 8, 2009 - 08:52
Issue tags:+views 2.3

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

AttachmentSize
error-messages.jpg 141.47 KB

#10

blindside - September 8, 2009 - 14:51

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

#11

prasannah.ganeshan - September 11, 2009 - 06:26

I am using the latest version of the view module.

#12

clintcar - September 17, 2009 - 18:44

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

#13

prasannah.ganeshan - September 18, 2009 - 07:07
Issue tags:+devel themer

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

#14

prasannah.ganeshan - September 28, 2009 - 09:29

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.

AttachmentSize
error-view.jpg 268.56 KB

#15

mauro_ptt - October 1, 2009 - 15:42
Project:Voting API» Views
Version:6.x-2.0-rc2» 6.x-2.6
Priority:normal» critical
Status:closed» 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!

#16

mauro_ptt - October 1, 2009 - 16:48
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

#17

merlinofchaos - October 1, 2009 - 17:05
Project:Views» Voting API
Version:6.x-2.x-dev» 6.x-2.0-rc2
Priority:critical» normal
Status:active» closed

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

#18

mauro_ptt - October 1, 2009 - 19:09

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

#19

viralagrawal - October 12, 2009 - 10:22

@mauro_ptt

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

#20

Shorin - October 24, 2009 - 19:30

maruo_ptt:

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

#21

prasannah.ganeshan - November 24, 2009 - 11:10

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

#22

zuessh - October 27, 2009 - 15:42
Status:closed» 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?

#23

cbrody - October 28, 2009 - 12:11

Subscribing -- also having the same issue.

#24

philb - October 29, 2009 - 04:46

@mauro_ptt: Thanks, that worked perfectly.

#25

zuessh - October 29, 2009 - 15:02

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.

#26

drvdt - October 30, 2009 - 07:19

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.

#27

zuessh - October 30, 2009 - 12:54

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?

#28

joel box - November 9, 2009 - 03:13
Project:Voting API» Views
Version:6.x-2.0-rc2» 6.x-2.0-rc2

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,

#29

merlinofchaos - November 9, 2009 - 20:35

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.

#30

joshk - November 24, 2009 - 00:00
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.

#31

joshk - November 24, 2009 - 00:05
Status:active» duplicate

So, that make sthis a duplicate of:

http://drupal.org/node/452384

#32

prasannah.ganeshan - November 24, 2009 - 11:09

@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.

 
 

Drupal is a registered trademark of Dries Buytaert.