Hi, thanks for this wonderful module.

I am getting, for some reason, 2 comment forms on in the settings. I attached the image.

Using one of them, when trying to post a comment gets me:
Fatal error: Unsupported operand types in /home2/public_html/includes/common.inc on line 1275

Using the other, the save button becomes 'loading', but the comment never actually loads. I also have Live, if that's relevant.

Thanks.

CommentFileSizeAuthor
2comments.jpg8.58 KBFlying Drupalist

Comments

Flying Drupalist’s picture

Oh, I also want to add that the comment itself has actually been posted. It's just that there are no updates to that effect. (In firefox I see: Error requesting data!)

Also, something similar happens with the userlogin form. The loading continues forever and the page doesn't redirect or refresh, even if the login is completed.

Thanks.

brendoncrawford’s picture

Assigned: Unassigned » brendoncrawford
Status: Active » Postponed (maintainer needs more info)

What version of PHP?

What version of Drupal?

What server platform (Unix, Windows)?

What is "Live"?

Thanks,
Brendon

Flying Drupalist’s picture

Hi, Live is Live Preview, which they call Live.

I'm using:
Apache 1.3.41 Linux
PHP 5.2.6
MySQLi 4.1.22
Drupal 6.6

brendoncrawford’s picture

I am not quite able to reproduce this bug. Can you do 2 things for me...

1. Enable BOTH "Comment Form" items in the Ajax Form Settings.

2. Paste the ajax response data from Firebug here. If you don't know how to do this, let me know.

Thanks

Flying Drupalist’s picture

Hi, I'm not sure how to do this. Is it in the console or the dom? Anyway I don't know what it is that's need. :)

Thanks for helping me.

brendoncrawford’s picture

After you submit the comment form, in firebug, under the "Console" tab, you should see a line that says something like:

"POST http://foo.com/bar"

Click to expand that item. Then go to the "Response" tab within the item. The response should appear. If it does not immediately appear, click "Load Response", at which point it should appear.

Copy and paste the response into the issue tracker here.

Flying Drupalist’s picture

It says this:

Firebug needs to POST to the server to get this information for url:
http://site.com/forums/main-forums/news-and-announcements/second-voting-...

This second POST can interfere with some sites. If you want to send the POST again, open a new tab in Firefox, use URL 'about:config', set boolean value 'extensions.firebug.allowDoublePost' to true
This value is reset every time you restart Firefox This problem will disappear when https://bugzilla.mozilla.org/show_bug.cgi?id=430155 is shipped.

Then I click Load Response:

ANd since it's so huge I decided to stuff it on drupalbin.
http://drupalbin.com/3951

Thanks.

Flying Drupalist’s picture

Hi, is this insufficient? I don't want to sound impatient, but I really love your module and want to use it.

brendoncrawford’s picture

Miraploy,

Drupalbin is down. Can you post the response to pastebin?

Flying Drupalist’s picture

Hi, this is what it says:

http://pastie.org/318054

*pastebin tripped the spam filter.

brendoncrawford’s picture

Well,

I Still am not able to reproduce. Try disabling all non-core modules, and try again. Let me know if that works.

Flying Drupalist’s picture

Hi I just stripped down my site.

I'm trying the same thing again, did not work, but the response is different:

{ "status": true, "updaters": [ ], "messages_error": [ ], "messages_status": [ ], "messages_warning"
: [ ], "redirect": "http://z.com/node/155#comment-90", "preview": null }

This is on POST. I don't see GET at all.

But I know it works, I can see the comments if I refresh.

BTW, where is the database? I think it's possible that's what's messed up. I can't find a checkbox for the module in the uninstall list while trying to reinstall it.

Flying Drupalist’s picture

Thinking that it was something in the database that was strange. I did a totally new install.

I'm still seeing 2 comment fields, and getting the same error as above.

{ "status": true, "updaters": [ ], "messages_error": [ ], "messages_status": [ ], "messages_warning"

: [ ], "redirect": "http://z.us/node/2#comment-6", "preview": null }

brendoncrawford’s picture

Miraploy,

For now, just enable both comment forms in the admin settings. That is an unrelated bug that I can fix later. The new message you posted appears to be a valid response, so you should be seeing the expected behaviour. What behaviour are you seeing when you get that response?

Flying Drupalist’s picture

Hi, I see the comment save button become loading, then back to save again. But nothing else has happened. No comment appears or anything of the sort. The page isn't reloaded either.

brendoncrawford’s picture

Are you getting any javascript errors?

Flying Drupalist’s picture

Hi, there are no javascript errors.

brendoncrawford’s picture

Miraploy,

I think I might know what the problem is. Try downloading the latest dev version of this module. I have made a lot of fixes since you first downloaded it. I am pretty sure that the latest dev version has addressed your problem.

Latest dev version can be found here: http://ftp.drupal.org/files/projects/ajax-6.x-1.x-dev.tar.gz

Flying Drupalist’s picture

Hi, I've actually been pretty good with keeping up with your new devs, and I'm still getting this in the latest.

I don't know why this is only happening to me. I did this on 2 servers and including a clean install. It's somewhat strange and disheartening that I'm the only one getting this. :(

brendoncrawford’s picture

Miraploy,

Unless someone else can shed some light on this, the only thing I can do is see if you would be willing to send a tarball of your Drupal install as-is (changing your passwords of course) and a tarball SQL dump of your database. Then I can mimic your install. If you are willing to go to all that trouble, you can contact me through the contact form and let me know.

Flying Drupalist’s picture

Oh I'm willing, though I'm not sure how helpful it will be. I'm testing this on a completely clean install both for the files and the database, so it confuses the heck out of me why this is happening. But I'll use the contact form to send you my install.

brendoncrawford’s picture

Miraploy,

Perhaps you could send me your php.ini file as well.

brendoncrawford’s picture

Miraploy,

Also, what browser are you using?

Flying Drupalist’s picture

Using FF/Opera/Chrome, happens on all 3.

gorlov’s picture

Are you using the "Comment Notify" notify? I am getting the same error when trying to post a comment, but I am NOT using "AJAX Forms".

Flying Drupalist’s picture

No I'm not. This only happens with ajax forms.

brendoncrawford’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Miraploy,

I have not received those files from you. I am going to close this bug. Feel free to reopen if still interested.

Sorry I couldnt be of more help.

Thanks