In this page: admin/panels/panel-page/userprofile/edit/content

When I click to add/edit content of panels, empty popup-window appears and separated error message in it's own little window. Error message says only that "An error occurred.".

Firebug says also:

missing } in XML expression
[Break on this error] #mini-panel-user_basics div.panel-row-1 div.panel-col-1 { width: 20%; }\n
content (line 7)
POST http://rihmasto.fi/kehitys/panels/ajax/add-content/1/row_1_1403 (2788ms)jquery.js (line 2)
ParamsHeadersPostResponse
Response Headers
Request Headers

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<HTML><HEAD>

<TITLE>403 Forbidden</TITLE>

</HEAD><BODY>

<H1>Forbidden</H1>

You don't have permission to access /kehitys/index.php

on this server.<P>

<HR>

<ADDRESS>Apache/1.3.33 Server at rihmasto.fi Port 80</ADDRESS>

</BODY></HTML>

So how to solve the problem? :o

toni

CommentFileSizeAuthor
#33 100317-panels-http-error.png23.81 KBJoar

Comments

michelle’s picture

Project: Advanced Profile Kit » Panels
Version: 5.x-1.0-alpha3 » 5.x-2.0-beta2

Moving this to panels. I don't know js so am not any help with panels js errors.

Michelle

sdboyer’s picture

This javascript error has reared its head in a number of circumstances, and we've yet to track down the source of it. Lemme start with the obvious, though - the root URL for the drupal site that contains the panels module is http://rihmasto.fi/kehitys, NOT http://rihmasto.fi, correct?

cnolasco’s picture

Hello I had the same problem and solved it by installing the module jquery_update .-
Greetings

anahowa’s picture

I have the same problem

installing the module jquery_update doesn't help. :(

nipsy’s picture

Title: An error occurred. » Panels Dead! "An error occurred."

Even the convoluted jQuery versioning issues with jquery_update and associated conversations haven't provided anything useful for this.

Anyone with any ideas at all? Also FYI, this was not on a secure page and it was given and ID (both of these are in the Panels2 documentation as potential issues)

:-|

merlinofchaos’s picture

volokettu: The problem you're getting looks like a misconfiguration on your server; that's apache refusing to even give access to the server. I have no idea why it would be doing that, but that doesn't appear to be something Panels can do anything about.

For the rest of you: Saying you have the same problem doesn't help debug the problem. I'm sorry you're having the issue, but if all you've got to say is a line of "I have this problem too" then you're not helping.

merlinofchaos’s picture

Title: Panels Dead! "An error occurred." » "An error occurred."
Limay’s picture

I had the same problem. It resolved when I downgraded the module Advanded Profile from Dev to Beta 3. I don´t know why happen this. Dev version of Advanced Profile shows 2 warnings: http://drupal.org/node/246191 Maybe this is related to the problem with Panels.

michelle’s picture

@Nefer: Couple things...

1) Don't use the dev version of advprofile. As the project page says, it's in the middle of a bunch of changes.

2) That error was a typo on my part and nothing to do with panels or javascript.

Michelle

barth’s picture

I also experienced this problem. I'm not a programmer, but I eventually pulled out this error:

uncaught exception: Security Error: Content at https://example.com/admin/panels/panel-page/home_page/edit/content may not load data from http://example.com/panels/ajax/add-content/3/top.

which pointed me to Secure Pages. Once I disabled secure pages on admin pages, the content window loaded fine, so perhaps this issue is related to an https/http issue?

michelle’s picture

I don't think it's an https thing as I've never used that and I've been hit by this error.

Michelle

udig’s picture

Version: 5.x-2.0-beta2 » 5.x-2.0-beta3

Guys,

Couple of observations:
1. Agree with Michelle - same phenomena on my local test environment - no https.
2. I narrowed this behavior to specific element which was causing the message to appear on any other element I tried to add/edit. Whenever I add the 'Couloir Slideshow' block on my panel this message appears (after saving the panel). Once it's out the panel goes back to it's normal behavior.
3. Tried to add another 'Couloir Slideshow' (different) block - strangely enough the panel is working o.k. meaning that it seems to be the specific instance of the first block that is causing the issue.
4. Just a thought - my site is non English site (Hebrew). Does that rings a bell to anyone?
5. Based on the above I would suggest that anyone who bumps into this issue will try to narrow down the problem to the specific content item (block?) that is causing the message to appear. Then let's cross the info...

(merlinofchaos - I hope this was not just another "I have this problem too..." whining :) )

Udi.

sdboyer’s picture

It wasn't just another whine :)

1. Yep, I've observed it without https.
2. Unfortunately, I've seen the error on the display content editing form as well as the context form, and some other spots as well, so the problem's a little bit more widespread.
3. This is helpful, though. Errors that are only quasi-repeatable are...well, special.
4. Nope. Least, I don't think so.
5. See #2.

Nevertheless, thanks for the detailed points, and it does help to at least have this up for reference when I can finally jump on it. Now that I've got my AJAX debugging server, maybe I'll actually be able to root this one out once I finish some other panels business.

moonray’s picture

Category: support » bug

I've gotten the same error. Disabling Secure Pages (and making sure you change https to http) makes panels function properly again. Re-enabling Secure Pages makes it stop working again.

The error identifies not being able to fetch data from http when the main page is on https.

nath’s picture

I started getting that message as well. I don't use https but I also don't know what change on our site was responsible. I haven't yet managed to get it to work again.

merlinofchaos’s picture

Quick notes:

udig: Your error report was useful. +1 and thank you for being informative.

If you're using 'secure pages' and that was the problem, this has been in the Known Issues text file for quite some time.

nath’s picture

I'm sorry but my problem seems to be something different. I will open a new issue.

taldrup’s picture

WORKAROUND for "An error occurred." with editing panels.

I had this problem suddenly show up after adding securepages to my site.
I understand this workaround may not work for everyone as there may be another cause for this issue.
But it worked for me so here is what I did:

1. I went to admin/settings/securepages.

2. In my secure pages config I have the radio button "Make secure only the listed pages." checked.

3. Make sure you check "Switch back to http pages when there are no matches

4. I added admin/panels/panel-page/* and admin/panels/panel-mini/* to the "Ignore pages:" textbox and the problem went away.

merlinofchaos’s picture

FYI that workaround has been in the KNOWN_ISSUES.txt file that ships with Panels for quite some time. I think a lot of people don't see this file, though.

kay.beissert’s picture

I don`t know if this will help but I found a solution in saving the pannel before editing. I `ve tried in on three installations (online and local) and it works for me.

Thank you

steveoliver’s picture

I had this same problem...until I assigned proper permissions in access control. D'oh!

agapetry’s picture

Saving prior to editing also worked for me, after all the other workarounds didn't (or didn't apply).

My usage is with Advanced Profile Kit. No Secure Pages. No permissions problems. I was getting “an error occurred while attempting to process the pane configuration modal form” on every attempt to add or edit content in the User Profile panel page. Then I clicked the "Save" button (on both Settings tab and Content tab) before the edit attempt. I only had to do that once; now I can add or edit content without issue (and couldn't reproduce the error if I wanted to).

ambereyes’s picture

Version: 5.x-2.x-dev » 5.x-2.0-beta3

Actually, I think I figured it out.

I had already successfully created panels and og_panels w/o incident till I installed og_blueprints. Og_blueprints has a known error that prints out at the top of every page.

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of uasort(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in .../sites/all/modules/og_blueprints/og_blueprints.module on line 64

Suddenly i started receiving the "An error occurred ..." message whenever I tried to add content to a mini-panel. In Firebug, the server response "seemed" right just as others have noted - namely merlinofchaos I think.

But I noticed something else in the response ... the og_blueprint warning message.

<br />

<b>Warning</b>:  Call-time pass-by-reference has been deprecated; If you would like to pass it by reference

, modify the declaration of uasort().  If you would like to enable call-time pass-by-reference, you can

 set allow_call_time_pass_reference to true in your INI file in <b>.../sites/all/modules/og_blueprints/og_blueprints.module</b> on line <b>64</b><br />

{ "output": "\x3cdiv class=\"panels-section-column\"\x3e\x3cdiv class=\"panels-section\"\x3e\x3ch3 class

=\"panels-section-title\"\x3eCustom\x3c/h3\x3e\x3cdiv class=\"panels-section-decorator\"\x3e\x3c/div

\x3e\x3cdiv class=\"panels-section-content\"\x3e\x3cdiv class=\"content-type-button clear-block\"\x3e

\x3ca href=\"/javascript%3A+void%28%29\" class=\"panels-modal-add-config\" id=\"custom_php-middle-custom_php

\"\x3e\x3cimg src=\"/sites/all/modules/panels/content_types/custom/icon_block_custom.png\" alt=\"Custom

 PHP block with access to Panels context data. ...

Hmmm, so I turned off errors to the screen ... and the message still displayed. So I turned off the module ... and Voila the problem was solved.

I had noticed that almost everyone who reported this problem also mentioned as an aside that they were experiencing other problems in addition to the "An error occurred ..." message.

So I think that what is happening is that the "fix" everyone is reporting is the fix for their real error, and once that is fixed, the panels javascript is able to parse the response properly from the server.

So maybe one way to truly solve this problem is to make panels less vulnerable to errors in other modules. I am not a ajax expert, but maybe searching for the start of the expected output instead of assuming that what you receive is always in direct response to your post. Now, I have no idea how to do any of this ... but I am hoping someone else will take this idea and run with it.

Katrina

www.ambereyes.net

sdboyer’s picture

Version: 5.x-2.0-beta3 » 5.x-2.x-dev

Wouldn't that be embarrassing, if it was one one of my modules causing an issue in one of my other modules. Although, I haven't had this problem in my blueprints sandbox. But I'll poke at it and see if I can't get it to complain.

I am starting to feel that a fair part of the problem boils down to Panels' current ajax handling being brittle.

dtabach’s picture

Version: 5.x-2.0-beta3 » 5.x-2.x-dev

I have two identical sites (same DB and files) running in the live server and in the local server. This error happens in the live server, but everything goes fine in the local server.

Live server (where the error occurs):

Drupal 5.10
Configuration file Protected
Database schema Up to date
File system Writable (public download method)
GD library bundled (2.0.28 compatible)
Job queue There are no queued jobs.
MySQL database 4.1.22
PHP 4.4.7
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Web server WebServerX
jQuery Update Installed correctly
The current installed version of jQuery is 1.2.6

Local server (Mac MAMP PRO 1.7; no errors):

Drupal 5.10
Configuration file Protected
Database schema Up to date
File system Writable (public download method)
GD library bundled (2.0.34 compatible)
Job queue There are no queued jobs.
MySQL database 5.0.41
PHP 5.2.5
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Web server Apache
jQuery Update Installed correctly
The current installed version of jQuery is 1.2.6

Panels version in both sites is 5.x-2.0-rc1a.

Saulo’s picture

Hello dtabach!

In my case, disabling the ModSecurity (mod_security) of Apache, it worked.

SecFilterEngine Off
SecFilterScanPOST Off

The above entries in the .htaccess will disable the ModSecurity (mod_security) module for the domain.

mutazmq’s picture

Version: 5.x-2.x-dev » 6.x-2.0-alpha2

Guys, I got of the problem when I commented out this line in template.php :

drupal_add_js(drupal_get_path('theme', 'plutado_blue') .'/js/jquery-1.2.6.min.js', 'theme');

I think there is conflict between the jquery files so pay attention to the modules that pay attention to use different versions of this file.

sdboyer’s picture

Version: 6.x-2.0-alpha2 » 5.x-2.x-dev

Do not change across major versions, please.

alienseer23’s picture

Saving worked for me as well using Drupal 5.12, Panels 5.x-2.0-rc1a, and APK 5.x-1.0-alpha5. I clicked "save and proceed" on all of the tabs, beginning with "settings" and then I just clicked "save" on the content tab, and now I can add and edit! Thank You for posting your work-around!

buzzlightyear’s picture

ok,
we had the same problem, and it started when we moved to a new server. I think It's basically got to do with apache.
could you please post your phpinfo here (local and live server)?
Update: it worked when I used IE instead of Mozilla FF.
try it!

lias’s picture

Yes, IE worked when Firefox wouldn't launch the window. Thanks!

esmerel’s picture

Status: Active » Closed (won't fix)

No changes to be made to 2.x code.

Joar’s picture

StatusFileSize
new23.81 KB

I have the same problem. When i go to "Content" and click the dropdown and choose "Add content" a loading popup pops up and after a few seconds i get an alert (see attachment 100317-panels-http-error.png).

A curl to the address that is requested (an ajax address with encoded colons (:) in the URI) results in this:

ilovestudenten@web:~/dev-ilovestudenten$ curl -i http://example.com/panels/ajax/add-pane/panel_context%3Apage-inbjudningskort_create%3Apage_inbjudningskort_create_panel_context/center 
curl: (52) Empty reply from server

It's the same result if i curl with unencoded colons (:)

If i remove the colons (both encoded and decoded), this is what i get:

ilovestudenten@web:~/dev-ilovestudenten$ curl -i http://example.com/panels/ajax/add-pane/panel_contextpage-inbjudningskort_createpage_inbjudningskort_create_panel_context/center 
HTTP/1.1 200 OK
Date: Wed, 17 Mar 2010 15:16:46 GMT
Server: Apache
Set-Cookie: SESS0a36f5d7a189685dc7c1430blah587e5=37244ac29b6a47cc8dah372339d150ad; expires=Fri, 09 Apr 2010 18:50:06 GMT; path=/; domain=.ils.prontodev.se
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified: Wed, 17 Mar 2010 15:16:46 GMT
Cache-Control: store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Content-Length: 2182
Content-Type: text/javascript; charset=utf-8

[ { "command": "css_files", "argument": [ { "file": "/modules/node/node.css?Y", "media": "all" }, { "file": "/modules/system/defaults.css?Y", "media": "all" }, { "file": "/modules/system/system.css?Y", "media": "all" }, { "file": "/modules/system/system-menus.css?Y", "media": "all" }, { "file": "/modules/user/user.css?Y", "media": "all" }, { "file": "/sites/all/modules/cck/theme/content-module.css?Y", "media": "all" }, { "file": "/sites/all/modules/ctools/css/ctools.css?Y", "media": "all" }, { "file": "/sites/all/modules/filefield/filefield.css?Y", "media": "all" }, { "file": "/sites/all/modules/node_gallery/node_gallery.css?Y", "media": "all" }, { "file": "/sites/all/modules/panels/css/panels.css?Y", "media": "all" }, { "file": "/sites/all/modules/thickbox/thickbox.css?Y", "media": "all" }, { "file": "/sites/all/modules/thickbox/thickbox_ie.css?Y", "media": "all" }, { "file": "/sites/all/modules/cck/modules/fieldgroup/fieldgroup.css?Y", "media": "all" } ] }, { "command": "scripts", "argument": [ "/misc/jquery.js?Y", "/misc/drupal.js?Y", "/sites/all/modules/fbconnect/fbconnect.js?Y", "/sites/all/modules/panels/js/panels.js?Y", "/sites/all/modules/thickbox/thickbox.js?Y", "/sites/all/modules/flir/flir/flir.js?Y" ] }, { "command": "settings", "argument": { "basePath": "/", "fbconnect": { "api_key": "42d7e9b5cfdd1b9dccfbae81ed335836", "xd_path": "fbconnect/receiver", "user_pictures": "allow", "language_code": "sv_SE", "featureLoader_url": "http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/sv_SE", "debug": 1, "loginout_mode": "manual", "invite_name": "I Love Studenten", "fbuid": null, "user": { "uid": 0, "fbuid": null } }, "googleanalytics": { "trackOutgoing": 1, "trackMailto": 1, "trackDownload": 1, "trackDownloadExtensions": "7z|aac|avi|csv|doc|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xml|zip" }, "thickbox": { "close": "Stäng", "next": "Nästa \x3e", "prev": "\x3c Föregående", "esc_key": "eller Esc", "next_close": "Nästa / Stäng på sista", "image_count": "Bild !current av !total" } } }, { "command": "modal_display", "title": "Fel", "output": "Ogiltig inmatning" } ]

I believe it's the colons (:).